Implement StaticRange (#31809)

* Add DOM interface for AbstractRange

* Add DOM interface for StaticRange

* Update WPT tests for StaticRange-constructor.html

* Fix formatting

* Add AbstractRange & StaticRange in interfaces.html

* rebased the code and fixed the failures

Signed-off-by: Cathie Chen <cathiechen@igalia.com>

* update the expected result in idlharness.window.js.ini file

* Addressed the code review comments

* updae the test result of legacy layout

---------

Signed-off-by: Cathie Chen <cathiechen@igalia.com>
Co-authored-by: Nipun Garg <nipung271@gmail.com>
This commit is contained in:
cathiechen 2024-03-22 16:02:01 +01:00 committed by GitHub
parent bae77671f8
commit cb275e086c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 530 additions and 506 deletions

View file

@ -1,51 +0,0 @@
[StaticRange-constructor.html]
[Construct static range with Element container]
expected: FAIL
[Construct static range with Text container]
expected: FAIL
[Construct static range with Element startContainer and Text endContainer]
expected: FAIL
[Construct static range with Text startContainer and Element endContainer]
expected: FAIL
[Construct static range with ProcessingInstruction container]
expected: FAIL
[Construct static range with Comment container]
expected: FAIL
[Construct static range with CDATASection container]
expected: FAIL
[Construct static range with Document container]
expected: FAIL
[Construct static range with DocumentFragment container]
expected: FAIL
[Construct collapsed static range]
expected: FAIL
[Construct inverted static range]
expected: FAIL
[Construct static range with offset greater than length]
expected: FAIL
[Construct static range with standalone Node container]
expected: FAIL
[Construct static range with endpoints in disconnected trees]
expected: FAIL
[Construct static range with endpoints in disconnected documents]
expected: FAIL
[Throw on DocumentType or Attr container]
expected: FAIL
[Throw on missing or invalid arguments]
expected: FAIL