mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
script: Add longdesc reflection to HTMLIFrameElement and HTMLFrameElement (#43518)
script: Add longdesc reflection to HTMLIFrameElement and HTMLFrameElement Also corrects the reflection for HTMLImageElement to use USVString. Testing: Covered by WPTs Signed-off-by: Luke Warlow <lwarlow@igalia.com>
This commit is contained in:
@@ -5,8 +5,10 @@
|
||||
use dom_struct::dom_struct;
|
||||
use html5ever::{LocalName, Prefix};
|
||||
use js::rust::HandleObject;
|
||||
use script_bindings::codegen::GenericBindings::HTMLFrameElementBinding::HTMLFrameElement_Binding::HTMLFrameElementMethods;
|
||||
|
||||
use crate::dom::bindings::root::DomRoot;
|
||||
use crate::dom::bindings::str::USVString;
|
||||
use crate::dom::document::Document;
|
||||
use crate::dom::html::htmlelement::HTMLElement;
|
||||
use crate::dom::node::Node;
|
||||
@@ -45,3 +47,11 @@ impl HTMLFrameElement {
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
impl HTMLFrameElementMethods<crate::DomTypeHolder> for HTMLFrameElement {
|
||||
// https://html.spec.whatwg.org/multipage/#dom-frame-longdesc
|
||||
make_url_getter!(LongDesc, "longdesc");
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-frame-longdesc
|
||||
make_url_setter!(SetLongDesc, "longdesc");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user