mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Make Namespace::to_str() return a string.
This commit is contained in:
parent
e9ece24de9
commit
5ae7aad6e2
2 changed files with 13 additions and 10 deletions
|
@ -89,7 +89,10 @@ impl Attr {
|
|||
}
|
||||
|
||||
pub fn GetNamespaceURI(&self) -> Option<DOMString> {
|
||||
self.namespace.to_str().map(|s| s.to_owned())
|
||||
match self.namespace.to_str() {
|
||||
"" => None,
|
||||
url => Some(url.to_owned()),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn GetPrefix(&self) -> Option<DOMString> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue