Bug 1823757 - use parsed atoms for popovertarget attribute, r=emilio

Use parsed atoms to store popovertarget attributes as more effective mechanism to search for ID match in attr associated elements implementation. Followup from D173337.

Differential Revision: https://phabricator.services.mozilla.com/D174786
This commit is contained in:
Alexander Surkov
2023-04-11 00:53:28 +00:00
parent 3485544236
commit be39f08c40
9 changed files with 46 additions and 24 deletions

View File

@@ -389,8 +389,8 @@ bool HTMLTextAreaElement::ParseAttribute(int32_t aNamespaceID,
return true;
}
}
return nsGenericHTMLElement::ParseAttribute(aNamespaceID, aAttribute, aValue,
aMaybeScriptedPrincipal, aResult);
return TextControlElement::ParseAttribute(aNamespaceID, aAttribute, aValue,
aMaybeScriptedPrincipal, aResult);
}
void HTMLTextAreaElement::MapAttributesIntoRule(