diff options
author | Simon Wülker <simon.wuelker@arcor.de> | 2024-09-04 13:29:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-04 11:29:59 +0000 |
commit | fc5f8e9237f95153b642846f8d89682cc4061573 (patch) | |
tree | 9094fe1dfb9bf68546614908981d709b329cf40f /components/script/dom/htmlquoteelement.rs | |
parent | febb4f24c444dd5c85ca2ed41b633ddadbf24eb5 (diff) | |
download | servo-fc5f8e9237f95153b642846f8d89682cc4061573.tar.gz servo-fc5f8e9237f95153b642846f8d89682cc4061573.zip |
Implement HTMLQuoteElement "cite" attribute (#33307)
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
Diffstat (limited to 'components/script/dom/htmlquoteelement.rs')
-rw-r--r-- | components/script/dom/htmlquoteelement.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/components/script/dom/htmlquoteelement.rs b/components/script/dom/htmlquoteelement.rs index 3254ca5b7e7..e8fc6f30407 100644 --- a/components/script/dom/htmlquoteelement.rs +++ b/components/script/dom/htmlquoteelement.rs @@ -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"); +} |