mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Make Element::prefix return an Option<&DOMString>
This commit is contained in:
parent
2fcb908daa
commit
a377caa7e9
4 changed files with 10 additions and 10 deletions
|
@ -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>]> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue