aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/document.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r--components/script/dom/document.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs
index 7441a14bcae..fb85cdb980b 100644
--- a/components/script/dom/document.rs
+++ b/components/script/dom/document.rs
@@ -1762,10 +1762,10 @@ impl DocumentMethods for Document {
match html_elem_type {
HTMLElementTypeId::HTMLAppletElement => {
match elem.get_attribute(&ns!(""), &atom!("name")) {
- Some(ref attr) if attr.r().value().atom() == Some(name) => true,
+ Some(ref attr) if attr.r().value().as_atom() == name => true,
_ => {
match elem.get_attribute(&ns!(""), &atom!("id")) {
- Some(ref attr) => attr.r().value().atom() == Some(name),
+ Some(ref attr) => attr.r().value().as_atom() == name,
None => false,
}
},
@@ -1773,18 +1773,18 @@ impl DocumentMethods for Document {
},
HTMLElementTypeId::HTMLFormElement => {
match elem.get_attribute(&ns!(""), &atom!("name")) {
- Some(ref attr) => attr.r().value().atom() == Some(name),
+ Some(ref attr) => attr.r().value().as_atom() == name,
None => false,
}
},
HTMLElementTypeId::HTMLImageElement => {
match elem.get_attribute(&ns!(""), &atom!("name")) {
Some(ref attr) => {
- if attr.r().value().atom() == Some(name) {
+ if attr.r().value().as_atom() == name {
true
} else {
match elem.get_attribute(&ns!(""), &atom!("id")) {
- Some(ref attr) => attr.r().value().atom() == Some(name),
+ Some(ref attr) => attr.r().value().as_atom() == name,
None => false,
}
}