Skip to content

Commit

Permalink
scanAttributeName doesn't need to check for "is" content attribute
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=270066

Reviewed by Chris Dumez and Yusuke Suzuki.

Since we don't support "is" content attribute, we don't need to check for its presence.

* Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp:
(WebCore::HTMLFastPathParser::scanAttributeName):

Canonical link: https://commits.webkit.org/275331@main
  • Loading branch information
rniwa committed Feb 26, 2024
1 parent e67ff44 commit 5590366
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -585,8 +585,6 @@ class HTMLFastPathParser {
// fails. For example, an image's onload event.
return nullQName();
}
if (attributeName.size() == 2 && compareCharacters(attributeName.data(), 'i', 's'))
return nullQName();
return HTMLNameCache::makeAttributeQualifiedName(attributeName);
}

Expand Down

0 comments on commit 5590366

Please sign in to comment.