(kind, target)
| 16 | const CE = '[contenteditable="true"], [contenteditable=""]' |
| 17 | |
| 18 | function mark(kind, target) { |
| 19 | document.querySelectorAll('[' + marker + ']').forEach(n => n.removeAttribute(marker)) |
| 20 | if (target && target.nodeType === 1) target.setAttribute(marker, '1') |
| 21 | return kind |
| 22 | } |
| 23 | |
| 24 | if (!el || el.nodeType !== 1) return mark(kinds.STANDARD, el) |
| 25 |