mirror of
https://github.com/servo/servo.git
synced 2025-06-12 18:34:39 +00:00
* 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>
19 lines
577 B
Text
19 lines
577 B
Text
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
/*
|
|
* The origin of this IDL file is
|
|
* https://dom.spec.whatwg.org/#interface-staticrange
|
|
*/
|
|
|
|
dictionary StaticRangeInit {
|
|
required Node startContainer;
|
|
required unsigned long startOffset;
|
|
required Node endContainer;
|
|
required unsigned long endOffset;
|
|
};
|
|
|
|
[Exposed=Window]
|
|
interface StaticRange : AbstractRange {
|
|
[Throws] constructor(StaticRangeInit init);
|
|
};
|