javascript - HIghlight words in DOM without injecting additional Nodes -


i want specific text (ranges/nodes) in dom highlighted (spellchecking) without inserting additional nodes dom. unfortunately, solutions (i found spellchecking) exist out there rely on modifying dom (adding additional spans wrap text ranges).

would absolute positioning of divs lower z-order text range has highlighted (for example, black text on top of yellow background/rectangle) work? of course, might problematic whenever window/container size changes.

do know of other solutions work?


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -