aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/script/dom/document.rs2
-rw-r--r--src/test/content/test_document_getElementById.html2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/components/script/dom/document.rs b/src/components/script/dom/document.rs
index a3a95277cc1..a88fc3a0366 100644
--- a/src/components/script/dom/document.rs
+++ b/src/components/script/dom/document.rs
@@ -675,8 +675,6 @@ impl Document {
node.is_in_doc()
});
- // TODO: support the case if multiple elements
- // which haves same id are in the same document.
// FIXME https://github.com/mozilla/rust/issues/13195
// Use mangle() when it exists again.
match self.idmap.find_mut(&id) {
diff --git a/src/test/content/test_document_getElementById.html b/src/test/content/test_document_getElementById.html
index 9d066137ef3..97b506f58af 100644
--- a/src/test/content/test_document_getElementById.html
+++ b/src/test/content/test_document_getElementById.html
@@ -76,9 +76,9 @@
is(document.getElementById("should-not-exist"), e, "test 4-1");
}
- // TODO:
// test5: "in tree order, within the context object's tree"
// http://dom.spec.whatwg.org/#dom-document-getelementbyid.
+ // we test this in test_document_getElementById_tree_order.html
// TODO:
// test6: innerHTML