Implement HTMLQuoteElement "cite" attribute (#33307)

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
Simon Wülker 2024-09-04 13:29:59 +02:00 committed by GitHub
parent febb4f24c4
commit fc5f8e9237
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 12 additions and 299 deletions

View file

@ -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");
}