aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlcollection.rs
diff options
context:
space:
mode:
authorConnor Brewster <connor.brewster@eagles.oc.edu>2017-06-23 14:21:50 -0600
committerConnor Brewster <connor.brewster@eagles.oc.edu>2017-06-23 21:10:01 -0600
commit37e8b89377302e9e981e1268eab97e7bbebbfdb6 (patch)
tree46420ab8c9ce13249fbbe1564ac5e05b393480af /components/script/dom/htmlcollection.rs
parentdd9bb0550b947de90e80d2750445ec6cc888df5e (diff)
downloadservo-37e8b89377302e9e981e1268eab97e7bbebbfdb6.tar.gz
servo-37e8b89377302e9e981e1268eab97e7bbebbfdb6.zip
Allow element prefix to be set
Implements step 6.1.10 of https://dom.spec.whatwg.org/#concept-create-element
Diffstat (limited to 'components/script/dom/htmlcollection.rs')
-rw-r--r--components/script/dom/htmlcollection.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlcollection.rs b/components/script/dom/htmlcollection.rs
index 814ea766f53..f5c1a6816c1 100644
--- a/components/script/dom/htmlcollection.rs
+++ b/components/script/dom/htmlcollection.rs
@@ -152,7 +152,7 @@ impl HTMLCollection {
}
fn match_element(elem: &Element, qualified_name: &LocalName) -> bool {
- match elem.prefix() {
+ match elem.prefix().as_ref() {
None => elem.local_name() == qualified_name,
Some(prefix) => qualified_name.starts_with(&**prefix) &&
qualified_name.find(":") == Some(prefix.len()) &&