[whatwg/dom] Add AbstractRange and StaticRange (#589)

This refactors large parts of the DOM Standard to reclassify Range
objects as "live ranges" rather than "ranges". The bits shared
between StaticRange and Range objects are put on a shared superclass
named AbstractRange.

This also introduces a "collapsed" definition and uses it throughout.

It does not contain everything from
https://w3c.github.io/staticrange/. I based this draft on the IDL
present in implementations, coupled with the desire for a superclass.
Extensions beyond this seem best addressed as follow-ups.

Tests: ...
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Add AbstractRange and StaticRange

-- File Changes --

    M dom.bs (1101)

-- Patch Links --

https://github.com/whatwg/dom/pull/589.patch
https://github.com/whatwg/dom/pull/589.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/589

Received on Monday, 12 March 2018 10:05:24 UTC