diff options
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"); +} |