Make Element::prefix return an Option<&DOMString>

This commit is contained in:
Anthony Ramine 2016-11-30 13:45:10 +01:00
parent 2fcb908daa
commit a377caa7e9
4 changed files with 10 additions and 10 deletions

View file

@ -714,8 +714,8 @@ impl Element {
&self.namespace
}
pub fn prefix(&self) -> &Option<DOMString> {
&self.prefix
pub fn prefix(&self) -> Option<&DOMString> {
self.prefix.as_ref()
}
pub fn attrs(&self) -> Ref<[JS<Attr>]> {