mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
auto merge of #2067 : saneyuki/servo/id, r=Ms2ger
Follow up #1917 (Derived from #2066)
This commit is contained in:
commit
b9a7949ce4
2 changed files with 1 additions and 3 deletions
|
@ -675,8 +675,6 @@ impl Document {
|
||||||
node.is_in_doc()
|
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
|
// FIXME https://github.com/mozilla/rust/issues/13195
|
||||||
// Use mangle() when it exists again.
|
// Use mangle() when it exists again.
|
||||||
match self.idmap.find_mut(&id) {
|
match self.idmap.find_mut(&id) {
|
||||||
|
|
|
@ -76,9 +76,9 @@
|
||||||
is(document.getElementById("should-not-exist"), e, "test 4-1");
|
is(document.getElementById("should-not-exist"), e, "test 4-1");
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO:
|
|
||||||
// test5: "in tree order, within the context object's tree"
|
// test5: "in tree order, within the context object's tree"
|
||||||
// http://dom.spec.whatwg.org/#dom-document-getelementbyid.
|
// http://dom.spec.whatwg.org/#dom-document-getelementbyid.
|
||||||
|
// we test this in test_document_getElementById_tree_order.html
|
||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
// test6: innerHTML
|
// test6: innerHTML
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue