diff --git a/components/script/dom/element.rs b/components/script/dom/element.rs index d3b5b1946aa..36ce1102eb5 100644 --- a/components/script/dom/element.rs +++ b/components/script/dom/element.rs @@ -639,7 +639,8 @@ impl<'a> AttributeHandlers for JSRef<'a, Element> { Some(attribute) => { match *attribute.value() { UIntAttrValue(_, value) => value, - _ => panic!("Expected a UIntAttrValue"), + _ => panic!("Expected a UIntAttrValue: \ + implement parse_plain_attribute"), } } None => 0,