Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
data-x-2="" not represented in dataset
https://bugs.webkit.org/show_bug.cgi?id=123890 Reviewed by Brent Fulgham. The bug was caused by propertyNameMatchesAttributeName implementing comparison incorrectly. Fixed the bug by eliminating this function and reusing convertAttributeNameToPropertyName when there is exactly one attribute. While the new code does allocate a String object, it's still faster than creating a AtomString. * LayoutTests/fast/dom/dataset-expected.txt: * LayoutTests/fast/dom/dataset.html: Added a test case. * Source/WebCore/dom/DatasetDOMStringMap.cpp: (WebCore::propertyNameMatchesAttributeName): Deleted. (WebCore::DatasetDOMStringMap::isSupportedPropertyName const): (WebCore::DatasetDOMStringMap::item const): Canonical link: https://commits.webkit.org/253625@main
- Loading branch information
Showing
3 changed files
with
12 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters