0

I came across this answer here as well as a few others on SO, that run a .createTextRange() method of a DOM element object. The closest reputable documentation to it that I could find was on Document.createRange() over at MDN, but that's definitely not it.

Could anyone explain this method? Such as what it returns? I would love to be pointed towards some documentation.

Cloud
  • 774
  • 1
  • 6
  • 21
  • 1
    According to [this answer](https://stackoverflow.com/a/41743191/774078), this method is a Microsoft specific answer, so it likely is not a good solution. It suggests using `createRange` which returns a Range object. – Sterling Archer Jan 31 '20 at 15:08

1 Answers1

-1

You entering the DOM .... the source to render it as a page and javacript

You get a range on selection events : selection, there is the current target then the selection... for à read it can help retrieve all selected elements in event data, after manipulating it ?...

At that level you will need the specification...

Ranges (are sub tree within the dom) It’s abstract definition show the tree of nodes address/structure appearing https://dom.spec.whatwg.org/#interface-abstractrange

And other related : https://dom.spec.whatwg.org/#ranges [DOM-Level-2-Traversal-Range] Joseph Kesselman; et al. Document Object Model (DOM) Level 2 Traversal and Range Specification. 13 November 2000. REC. URL: https://www.w3.org/TR/DOM-Level-2-Traversal-Range/

That’s it ?