Basic Implementation of document.getElementById(), #740

This commit is contained in:
Tetsuharu OHZEKI 2013-09-16 23:00:18 +09:00
parent f9be872e61
commit db3b5c3c4c
4 changed files with 126 additions and 4 deletions

View file

@ -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() {