aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/element.rs
diff options
context:
space:
mode:
authorTetsuharu OHZEKI <saneyuki.snyk@gmail.com>2013-09-16 23:00:18 +0900
committerTetsuharu OHZEKI <saneyuki.snyk@gmail.com>2013-10-15 00:21:13 +0900
commitdb3b5c3c4cc10225d221b6579b82a13048adb35f (patch)
tree02bcceddd3e275f10969fb938111983f7684cd70 /src/components/script/dom/element.rs
parentf9be872e614cc2ecf0487eb8878fedfd44525c53 (diff)
downloadservo-db3b5c3c4cc10225d221b6579b82a13048adb35f.tar.gz
servo-db3b5c3c4cc10225d221b6579b82a13048adb35f.zip
Basic Implementation of document.getElementById(), #740
Diffstat (limited to 'src/components/script/dom/element.rs')
-rw-r--r--src/components/script/dom/element.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/script/dom/element.rs b/src/components/script/dom/element.rs
index 51d7c609c98..4c4238ca5d6 100644
--- a/src/components/script/dom/element.rs
+++ b/src/components/script/dom/element.rs
@@ -170,6 +170,9 @@ impl<'self> Element {
null_str_as_empty_ref(raw_value)));
}
+ // TODO: update owner document's id hashmap for `document.getElementById()`
+ // if `name` == "id".
+
//XXXjdm We really need something like a vtable so we can call AfterSetAttr.
// This hardcoding is awful.
match abstract_self.type_id() {