mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Initial implementation of ownPropertyKeys proxy handler
Generates `SupportedPropertyNames` on DOM structs that should implement it. Most of them are unimplemented now (which can be implemented in later PRs), with the exception of `HTMLCollection`. Also added a couple relevant WPT tests. Closes #6390 Closes #2215
This commit is contained in:
parent
a5fbb2f2a6
commit
b11be4d253
13 changed files with 237 additions and 21 deletions
|
@ -16,7 +16,8 @@ pub struct TestBindingProxy {
|
|||
}
|
||||
|
||||
impl<'a> TestBindingProxyMethods for &'a TestBindingProxy {
|
||||
|
||||
fn Length(self) -> u32 {0}
|
||||
fn SupportedPropertyNames(self) -> Vec<DOMString> {vec![]}
|
||||
fn GetNamedItem(self, _: DOMString) -> DOMString {"".to_owned()}
|
||||
fn SetNamedItem(self, _: DOMString, _: DOMString) -> () {}
|
||||
fn GetItem(self, _: u32) -> DOMString {"".to_owned()}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue