prosemirror-view 1.23.8 → 1.23.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prosemirror-view",
3
- "version": "1.23.8",
3
+ "version": "1.23.9",
4
4
  "description": "ProseMirror's view component",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
package/src/index.js CHANGED
@@ -428,6 +428,7 @@ function updateCursorWrapper(view) {
428
428
  let dom = document.createElement("img")
429
429
  dom.className = "ProseMirror-separator"
430
430
  dom.setAttribute("mark-placeholder", "true")
431
+ dom.setAttribute("alt", "")
431
432
  view.cursorWrapper = {dom, deco: Decoration.widget(view.state.selection.head, dom, {raw: true, marks: view.markCursor})}
432
433
  } else {
433
434
  view.cursorWrapper = null
package/src/viewdesc.js CHANGED
@@ -1267,7 +1267,10 @@ class ViewTreeUpdater {
1267
1267
  this.index++
1268
1268
  } else {
1269
1269
  let dom = document.createElement(nodeName)
1270
- if (nodeName == "IMG") dom.className = "ProseMirror-separator"
1270
+ if (nodeName == "IMG") {
1271
+ dom.className = "ProseMirror-separator"
1272
+ dom.alt = ""
1273
+ }
1271
1274
  if (nodeName == "BR") dom.className = "ProseMirror-trailingBreak"
1272
1275
  this.top.children.splice(this.index++, 0, new TrailingHackViewDesc(this.top, nothing, dom, null))
1273
1276
  this.changed = true