diff options
author | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2014-04-09 02:30:26 +0900 |
---|---|---|
committer | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2014-04-09 03:20:47 +0900 |
commit | 25e6366efcf4c3c7480b8bc13899a115466b4c6e (patch) | |
tree | c66141fc5d20632d002f9d8c79eeb1f6774632ac | |
parent | aa36ae62cd8f881e901f3657cb228dc2e4480e1f (diff) | |
download | servo-25e6366efcf4c3c7480b8bc13899a115466b4c6e.tar.gz servo-25e6366efcf4c3c7480b8bc13899a115466b4c6e.zip |
Remove the needless comment for document.getElementById.
-rw-r--r-- | src/components/script/dom/document.rs | 2 | ||||
-rw-r--r-- | src/test/content/test_document_getElementById.html | 2 |
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 |