aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmldocument.rs
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2013-12-23 10:49:05 -0800
committerbors-servo <release+servo@mozilla.com>2013-12-23 10:49:05 -0800
commitcb336a18317195512a276971856081cb8ef86b0e (patch)
treec0825aaf562a02471d15d9193840ea15870b5eed /src/components/script/dom/htmldocument.rs
parentacdc0e1afa166db978c36236c94fa139b3ca9a88 (diff)
parent95913d1fed59df431e584b66d2770664b383caab (diff)
downloadservo-cb336a18317195512a276971856081cb8ef86b0e.tar.gz
servo-cb336a18317195512a276971856081cb8ef86b0e.zip
auto merge of #1438 : Ms2ger/servo/cleanup-get_attribute, r=jdm
Passing these around as strings is an anti-pattern, IMO.
Diffstat (limited to 'src/components/script/dom/htmldocument.rs')
-rw-r--r--src/components/script/dom/htmldocument.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/script/dom/htmldocument.rs b/src/components/script/dom/htmldocument.rs
index 6fb84620ab0..8e92a4b41db 100644
--- a/src/components/script/dom/htmldocument.rs
+++ b/src/components/script/dom/htmldocument.rs
@@ -7,6 +7,7 @@ use dom::bindings::utils::{Reflectable, Reflector, Traceable};
use dom::document::{AbstractDocument, Document, HTML};
use dom::element::HTMLHeadElementTypeId;
use dom::htmlcollection::HTMLCollection;
+use dom::namespace::Null;
use dom::node::{AbstractNode, ElementNodeTypeId};
use dom::window::Window;
@@ -56,7 +57,7 @@ impl HTMLDocument {
pub fn Links(&self) -> @mut HTMLCollection {
self.parent.createHTMLCollection(|elem|
(eq_slice(elem.tag_name, "a") || eq_slice(elem.tag_name, "area"))
- && elem.get_attr(None, "href").is_some())
+ && elem.get_attr(Null, "href").is_some())
}
pub fn Forms(&self) -> @mut HTMLCollection {
@@ -69,7 +70,7 @@ impl HTMLDocument {
pub fn Anchors(&self) -> @mut HTMLCollection {
self.parent.createHTMLCollection(|elem|
- eq_slice(elem.tag_name, "a") && elem.get_attr(None, "name").is_some())
+ eq_slice(elem.tag_name, "a") && elem.get_attr(Null, "name").is_some())
}
pub fn Applets(&self) -> @mut HTMLCollection {