Names should now be consistently atoms

This commit is contained in:
Patrick Shaughnessy 2020-01-21 11:06:31 -05:00
parent 9c135f0e95
commit 4b750ca0d0
2 changed files with 0 additions and 2 deletions

View file

@ -1426,7 +1426,6 @@ impl Element {
.iter() .iter()
.find(|a| a.name() == name) .find(|a| a.name() == name)
.map(|js| DomRoot::from_ref(&**js)); .map(|js| DomRoot::from_ref(&**js));
fn id_and_name_must_be_atoms(name: &LocalName, maybe_attr: &Option<DomRoot<Attr>>) -> bool { fn id_and_name_must_be_atoms(name: &LocalName, maybe_attr: &Option<DomRoot<Attr>>) -> bool {
if *name == local_name!("id") || *name == local_name!("name") { if *name == local_name!("id") || *name == local_name!("name") {
match maybe_attr { match maybe_attr {

View file

@ -8,4 +8,3 @@
[Trying to set an expando that would shadow an already-existing named property] [Trying to set an expando that would shadow an already-existing named property]
expected: FAIL expected: FAIL