mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
auto merge of #983 : saneyuki/servo/getid, r=jdm
This has not implemented these features yet: * Update hashmap which is used for `getElementById()` when updating element attributes. * Keep node order in tree. However, this has the quality of that we can use this method for testcases.
This commit is contained in:
commit
90baad3fff
5 changed files with 134 additions and 6 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