auto merge of #5448 : frewsxcv/servo/fix-assert, r=Ms2ger

We should ensure the parameter is lowercased. Right now, the assert will
always return true.

Discussed in #5445

Introduced in ee2ccc4f87
This commit is contained in:
bors-servo 2015-03-29 20:31:01 -06:00
commit 350a35428a

View file

@ -798,7 +798,7 @@ impl<'a> AttributeHandlers for JSRef<'a, Element> {
}
fn set_atomic_attribute(self, name: &Atom, value: DOMString) {
assert!(name.eq_ignore_ascii_case(name));
assert!(name.as_slice() == name.to_ascii_lowercase());
let value = AttrValue::from_atomic(value);
self.set_attribute(name, value);
}