Clarify the panic in get_uint_attribute.

This commit is contained in:
Ms2ger 2014-12-06 10:18:07 +01:00
parent 33836715a8
commit 6322b0bfab

View file

@ -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,