mirror of
https://github.com/servo/servo.git
synced 2025-06-10 17:43:16 +00:00
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:
commit
350a35428a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue