mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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:
parent
bae77671f8
commit
cb275e086c
15 changed files with 530 additions and 506 deletions
|
@ -9,19 +9,9 @@
|
|||
*/
|
||||
|
||||
[Exposed=Window]
|
||||
interface Range {
|
||||
interface Range : AbstractRange {
|
||||
[Throws] constructor();
|
||||
[Pure]
|
||||
readonly attribute Node startContainer;
|
||||
[Pure]
|
||||
readonly attribute unsigned long startOffset;
|
||||
[Pure]
|
||||
readonly attribute Node endContainer;
|
||||
[Pure]
|
||||
readonly attribute unsigned long endOffset;
|
||||
[Pure]
|
||||
readonly attribute boolean collapsed;
|
||||
[Pure]
|
||||
readonly attribute Node commonAncestorContainer;
|
||||
|
||||
[Throws]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue