-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Fix #358: Use DOMTokenList exclusively #361
Merged
Merged
Conversation
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
annevk
added
the
do not merge yet
Pull request must not be merged per rationale in comment
label
Nov 26, 2015
This was referenced Dec 3, 2015
zcorpan
added a commit
to web-platform-tests/wpt
that referenced
this pull request
Jan 28, 2016
In whatwg/dom#120 the DOM spec merged DOMSettableTokenList into DOMTokenList. Switch to DOMTokenList with [PutForwards=value] for all instances that used DOMTokenList or DOMSettableTokenList. Simplify the reflecting attributes prose involving DOMTokenList.
annevk
force-pushed
the
use-domtokenlist
branch
from
January 28, 2016 22:51
139f788
to
98183f9
Compare
Do we want to use PutForwards even when there is an attribute you can use to set the string instead? E.g., with rel/relList does the latter really need PutForwards? |
I think so, for consistency. You can just teach people relList and forget about rel. |
Alrighty then. |
kisg
pushed a commit
to paul99/webkit-mips
that referenced
this pull request
Feb 4, 2016
https://bugs.webkit.org/show_bug.cgi?id=153677 <rdar://problem/24419675> Reviewed by Sam Weinig. LayoutTests/imported/w3c: Rebaseline several W3C tests now that more checks are passing. * web-platform-tests/dom/historical-expected.txt: * web-platform-tests/dom/interfaces-expected.txt: * web-platform-tests/dom/nodes/Element-classlist-expected.txt: * web-platform-tests/html/dom/interfaces-expected.txt: * web-platform-tests/html/dom/interfaces.html: Update HTMLAreaElement.relList to match the specification. Source/WebCore: Merge DOMTokenList and DOMSettableTokenList, as per a recent specification change: - whatwg/dom#120 - whatwg/html#361 No new tests, already covered by existing tests. * CMakeLists.txt: * DerivedSources.cpp: * WebCore.vcxproj/WebCore.vcxproj: * WebCore.vcxproj/WebCore.vcxproj.filters: * WebCore.xcodeproj/project.pbxproj: * dom/Element.idl: * dom/Node.h: * dom/NodeRareData.h: * html/AttributeDOMTokenList.h: * html/DOMSettableTokenList.cpp: Removed. * html/DOMSettableTokenList.h: * html/DOMSettableTokenList.idl: * html/DOMTokenList.cpp: (WebCore::DOMTokenList::setValue): * html/DOMTokenList.h: * html/DOMTokenList.idl: * html/HTMLAnchorElement.idl: * html/HTMLAreaElement.idl: * html/HTMLElement.cpp: * html/HTMLElement.idl: * html/HTMLIFrameElement.cpp: (WebCore::HTMLIFrameElement::sandbox): * html/HTMLIFrameElement.h: * html/HTMLIFrameElement.idl: * html/HTMLLinkElement.cpp: (WebCore::HTMLLinkElement::sizes): * html/HTMLLinkElement.h: * html/HTMLLinkElement.idl: * html/HTMLOutputElement.cpp: (WebCore::HTMLOutputElement::htmlFor): * html/HTMLOutputElement.h: * html/HTMLOutputElement.idl: * html/HTMLTableCellElement.idl: * page/DOMWindow.cpp: * page/DOMWindow.idl: LayoutTests: Update / rebaseline several tests now that relList attributes use [PutForward=value]. * fast/dom/HTMLElement/class-list-expected.txt: * fast/dom/HTMLElement/class-list-quirks-expected.txt: * fast/dom/HTMLElement/script-tests/class-list.js: * fast/dom/rel-list-expected.txt: * fast/dom/rel-list.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@196123 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ryanhaddad
pushed a commit
to WebKit/WebKit
that referenced
this pull request
Dec 22, 2020
https://bugs.webkit.org/show_bug.cgi?id=153677 <rdar://problem/24419675> Reviewed by Sam Weinig. LayoutTests/imported/w3c: Rebaseline several W3C tests now that more checks are passing. * web-platform-tests/dom/historical-expected.txt: * web-platform-tests/dom/interfaces-expected.txt: * web-platform-tests/dom/nodes/Element-classlist-expected.txt: * web-platform-tests/html/dom/interfaces-expected.txt: * web-platform-tests/html/dom/interfaces.html: Update HTMLAreaElement.relList to match the specification. Source/WebCore: Merge DOMTokenList and DOMSettableTokenList, as per a recent specification change: - whatwg/dom#120 - whatwg/html#361 No new tests, already covered by existing tests. * CMakeLists.txt: * DerivedSources.cpp: * WebCore.vcxproj/WebCore.vcxproj: * WebCore.vcxproj/WebCore.vcxproj.filters: * WebCore.xcodeproj/project.pbxproj: * dom/Element.idl: * dom/Node.h: * dom/NodeRareData.h: * html/AttributeDOMTokenList.h: * html/DOMSettableTokenList.cpp: Removed. * html/DOMSettableTokenList.h: * html/DOMSettableTokenList.idl: * html/DOMTokenList.cpp: (WebCore::DOMTokenList::setValue): * html/DOMTokenList.h: * html/DOMTokenList.idl: * html/HTMLAnchorElement.idl: * html/HTMLAreaElement.idl: * html/HTMLElement.cpp: * html/HTMLElement.idl: * html/HTMLIFrameElement.cpp: (WebCore::HTMLIFrameElement::sandbox): * html/HTMLIFrameElement.h: * html/HTMLIFrameElement.idl: * html/HTMLLinkElement.cpp: (WebCore::HTMLLinkElement::sizes): * html/HTMLLinkElement.h: * html/HTMLLinkElement.idl: * html/HTMLOutputElement.cpp: (WebCore::HTMLOutputElement::htmlFor): * html/HTMLOutputElement.h: * html/HTMLOutputElement.idl: * html/HTMLTableCellElement.idl: * page/DOMWindow.cpp: * page/DOMWindow.idl: LayoutTests: Update / rebaseline several tests now that relList attributes use [PutForward=value]. * fast/dom/HTMLElement/class-list-expected.txt: * fast/dom/HTMLElement/class-list-quirks-expected.txt: * fast/dom/HTMLElement/script-tests/class-list.js: * fast/dom/rel-list-expected.txt: * fast/dom/rel-list.html: Canonical link: https://commits.webkit.org/171969@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@196123 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In whatwg/dom#120 the DOM spec merged DOMSettableTokenList into
DOMTokenList. Switch to DOMTokenList with [PutForwards=value]
for all instances that used DOMTokenList or DOMSettableTokenList.
Simplify the reflecting attributes prose involving DOMTokenList.
Issue: #358