mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Implement HTMLQuoteElement "cite" attribute (#33307)
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
febb4f24c4
commit
fc5f8e9237
8 changed files with 12 additions and 299 deletions
|
@ -6,7 +6,9 @@ use dom_struct::dom_struct;
|
|||
use html5ever::{LocalName, Prefix};
|
||||
use js::rust::HandleObject;
|
||||
|
||||
use crate::dom::bindings::codegen::Bindings::HTMLQuoteElementBinding::HTMLQuoteElementMethods;
|
||||
use crate::dom::bindings::root::DomRoot;
|
||||
use crate::dom::bindings::str::USVString;
|
||||
use crate::dom::document::Document;
|
||||
use crate::dom::htmlelement::HTMLElement;
|
||||
use crate::dom::node::Node;
|
||||
|
@ -43,3 +45,11 @@ impl HTMLQuoteElement {
|
|||
)
|
||||
}
|
||||
}
|
||||
|
||||
impl HTMLQuoteElementMethods for HTMLQuoteElement {
|
||||
// https://html.spec.whatwg.org/multipage/#dom-quote-cite
|
||||
make_url_getter!(Cite, "cite");
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-quote-cite
|
||||
make_url_setter!(SetCite, "cite");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue