1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 13:25:08 +00:00

LibWeb: Avoid copy of local_name in HTMLParser::create_element_for

This commit is contained in:
Shannon Booth 2023-10-04 17:50:52 +13:00 committed by Sam Atkins
parent 19ca6f68ba
commit fcde808308

View file

@ -658,7 +658,7 @@ JS::NonnullGCPtr<DOM::Element> HTMLParser::create_element_for(HTMLToken const& t
JS::NonnullGCPtr<DOM::Document> document = intended_parent.document();
// 4. Let local name be the tag name of the token.
auto local_name = token.tag_name();
auto const& local_name = token.tag_name();
// 5. Let is be the value of the "is" attribute in the given token, if such an attribute exists, or null otherwise.
auto is_value_deprecated_string = token.attribute(AttributeNames::is);