MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / mark

Function mark

lib/helper/extras/richTextEditor.js:18–22  ·  view source on GitHub ↗
(kind, target)

Source from the content-addressed store, hash-verified

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

Callers 1

detectAndMarkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected