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:
parent
19ca6f68ba
commit
fcde808308
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue