diff options
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r-- | components/layout/construct.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs index 05231a091e4..163aa338b47 100644 --- a/components/layout/construct.rs +++ b/components/layout/construct.rs @@ -57,6 +57,7 @@ use script::dom::node::{CommentNodeTypeId, DoctypeNodeTypeId, DocumentFragmentNo use script::dom::node::{DocumentNodeTypeId, ElementNodeTypeId, ProcessingInstructionNodeTypeId}; use script::dom::node::{TextNodeTypeId}; use script::dom::htmlobjectelement::is_image_data; +use servo_util::atom::Atom; use servo_util::namespace; use std::mem; use std::sync::atomics::Relaxed; @@ -1047,7 +1048,8 @@ trait ObjectElement { impl<'ln> ObjectElement for ThreadSafeLayoutNode<'ln> { fn get_type_and_data(&self) -> (Option<&'static str>, Option<&'static str>) { let elem = self.as_element(); - (elem.get_attr(&namespace::Null, "type"), elem.get_attr(&namespace::Null, "data")) + (elem.get_attr(&namespace::Null, &satom!("type")), + elem.get_attr(&namespace::Null, &satom!("data"))) } fn has_object_data(&self) -> bool { |