New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
data-x-2="" not represented in dataset #3498
Conversation
EWS run on previous version of this PR (hash ed7f537) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a functional improvement, and a possible performance improvement!
It's worse in terms of perf but at least it's more correct. |
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
26defca
to
8a40482
Compare
Committed 253625@main (8a40482): https://commits.webkit.org/253625@main Reviewed commits have been landed. Closing PR #3498 and removing active labels. |
8a40482
26defca
π§ͺ api-mac