diff options
Diffstat (limited to 'src/components/script/dom/htmlquoteelement.rs')
-rw-r--r-- | src/components/script/dom/htmlquoteelement.rs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/components/script/dom/htmlquoteelement.rs b/src/components/script/dom/htmlquoteelement.rs index 9c67c2ac2f4..db7edcbede4 100644 --- a/src/components/script/dom/htmlquoteelement.rs +++ b/src/components/script/dom/htmlquoteelement.rs @@ -40,12 +40,18 @@ impl HTMLQuoteElement { } } -impl HTMLQuoteElement { - pub fn Cite(&self) -> DOMString { +pub trait HTMLQuoteElementMethods { + fn Cite(&self) -> DOMString; + fn SetCite(&self, _cite: DOMString) -> ErrorResult; +} + +impl<'a> HTMLQuoteElementMethods for JSRef<'a, HTMLQuoteElement> { + fn Cite(&self) -> DOMString { ~"" } - pub fn SetCite(&self, _cite: DOMString) -> ErrorResult { + fn SetCite(&self, _cite: DOMString) -> ErrorResult { Ok(()) } } + |