[whatwg/dom] Add StaticRange constructor (#778)

Adding a constructor to the StaticRange interface. The shape of the constructor is based on how it is defined here: https://w3c.github.io/staticrange/index.html#interface-staticrange, and the construction algorithm is written based on the discussions here: #590 .

Also adding a section mentioning the high cost of maintaining ranges, and that static ranges are not subject to this cost because they do not update when the DOM tree mutates.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/dom/pull/778

-- Commit Summary --

  * Add StaticRange constructor
  * Add section explaining the high cost of maintaining Ranges, and that StaticRanges are not subject to the same cost.

-- File Changes --

    M dom.bs (41)

-- Patch Links --

https://github.com/whatwg/dom/pull/778.patch
https://github.com/whatwg/dom/pull/778.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/778

Received on Thursday, 22 August 2019 21:33:51 UTC