mirror of
https://github.com/servo/servo.git
synced 2025-10-10 05:20:19 +01:00
Pass a Namespace to Element::get_attr.
This commit is contained in:
parent
e64ee3557e
commit
95913d1fed
8 changed files with 24 additions and 17 deletions
|
@ -7,6 +7,7 @@ use dom::bindings::utils::{DOMString, ErrorResult};
|
|||
use dom::document::AbstractDocument;
|
||||
use dom::element::HTMLScriptElementTypeId;
|
||||
use dom::htmlelement::HTMLElement;
|
||||
use dom::namespace::Null;
|
||||
use dom::node::{AbstractNode, Node};
|
||||
use style::TElement;
|
||||
|
||||
|
@ -29,7 +30,7 @@ impl HTMLScriptElement {
|
|||
|
||||
impl HTMLScriptElement {
|
||||
pub fn Src(&self) -> DOMString {
|
||||
match self.htmlelement.element.get_attr(None, "src") {
|
||||
match self.htmlelement.element.get_attr(Null, "src") {
|
||||
Some(s) => s.to_owned(),
|
||||
None => ~""
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue