Implement DOMStringMap::SupportedPropertyNames and NamedNodeMap::SupportedPropertyNames

This commit is contained in:
Nova Fallen 2015-10-25 13:05:22 -04:00
parent f6e3146de2
commit 73c4af626a
7 changed files with 145 additions and 12 deletions

View file

@ -85,8 +85,10 @@ impl NamedNodeMapMethods for NamedNodeMap {
item
}
// https://heycam.github.io/webidl/#dfn-supported-property-names
fn SupportedPropertyNames(&self) -> Vec<DOMString> {
// FIXME: unimplemented (https://github.com/servo/servo/issues/7273)
vec![]
self.owner.attrs().iter().map(JS::root).map(|attr| {
(**attr.name()).to_owned()
}).collect()
}
}