mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Basic Implementation of document.getElementById(), #740
This commit is contained in:
parent
f9be872e61
commit
db3b5c3c4c
4 changed files with 126 additions and 4 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue