Skip to content

Commit

Permalink
Add AbstractRange and StaticRange
Browse files Browse the repository at this point in the history
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: web-platform-tests/wpt#9967.

See also w3c/staticrange#1.
  • Loading branch information
annevk authored Mar 16, 2018
1 parent 0283565 commit 5f4249f
Showing 1 changed file with 494 additions and 636 deletions.
Loading

0 comments on commit 5f4249f

Please sign in to comment.