Closed regiskuckaertz closed 9 years ago
element
scribe
rootDoc
compareDocumentPosition
scribe.el
createMaker
insertMarker
Element.offsetParent
document.contains
placeMarker
isEmtpyInlineElement
scribe.node
scribe.element
Looks good to me but I think I'd like a second-pair of eyes :+1:
Looks good :+1:
element
(already available inscribe
)rootDoc
selection out of the constructor so that it is executed only once (per Scribe instance)compareDocumentPosition
to detect ifscribe.el
is in a fragment, and only then look for that fragmentcreateMaker
andinsertMarker
Element.offsetParent
test withdocument.contains
, more accurateplaceMarker
implementation will less transient variablesisEmtpyInlineElement
(moved to node.js for consistency)scribe.node
andscribe.element
up in the prototype chain so they're assigned at parse time