aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/AbstractRange.webidl
diff options
context:
space:
mode:
authorcathiechen <cathiechen@igalia.com>2024-03-22 16:02:01 +0100
committerGitHub <noreply@github.com>2024-03-22 15:02:01 +0000
commitcb275e086c215b6da741c7918cd9683a134eb24f (patch)
tree173f32008068d06f27b3d1a8af1a855dfa6174da /components/script/dom/webidls/AbstractRange.webidl
parentbae77671f85481503ab563c20ed488cf883436fa (diff)
downloadservo-cb275e086c215b6da741c7918cd9683a134eb24f.tar.gz
servo-cb275e086c215b6da741c7918cd9683a134eb24f.zip
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>
Diffstat (limited to 'components/script/dom/webidls/AbstractRange.webidl')
-rw-r--r--components/script/dom/webidls/AbstractRange.webidl21
1 files changed, 21 insertions, 0 deletions
diff --git a/components/script/dom/webidls/AbstractRange.webidl b/components/script/dom/webidls/AbstractRange.webidl
new file mode 100644
index 00000000000..4472d27fc20
--- /dev/null
+++ b/components/script/dom/webidls/AbstractRange.webidl
@@ -0,0 +1,21 @@
+/* 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-abstractrange
+ */
+
+[Exposed=Window]
+interface AbstractRange {
+ [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;
+};