Changeset 286898 in webkit
- Timestamp:
- Dec 10, 2021, 7:02:38 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/dom/event-handler-attributes-expected.txt (modified) (6 diffs)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/selection/textcontrols (added)
-
LayoutTests/imported/w3c/web-platform-tests/selection/textcontrols/onselectionchange-content-attribute-expected.txt (added)
-
LayoutTests/imported/w3c/web-platform-tests/selection/textcontrols/onselectionchange-content-attribute.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/HTMLElement.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r286897 r286898 1 2021-12-10 Alexey Shvayka <[email protected]> 2 3 Setting "onselectionchange" content attribute should add an event listener 4 https://bugs.webkit.org/show_bug.cgi?id=234167 5 6 Reviewed by Darin Adler. 7 8 * fast/dom/event-handler-attributes-expected.txt: 9 1 10 2021-12-10 Joonghun Park <[email protected]> 2 11 -
trunk/LayoutTests/fast/dom/event-handler-attributes-expected.txt
r268745 r286898 253 253 PASS testElementAttribute(element, "seeking") is "target" 254 254 PASS testElementAttribute(element, "select") is "target" 255 FAIL testElementAttribute(element, "selectionchange") should be target. Was script: target; content: none. 255 PASS testElementAttribute(element, "selectionchange") is "target" 256 256 PASS testElementAttribute(element, "selectstart") is "target" 257 257 PASS testElementAttribute(element, "stalled") is "target" … … 346 346 PASS testElementAttribute(inputElement, "seeking") is "target" 347 347 PASS testElementAttribute(inputElement, "select") is "target" 348 FAIL testElementAttribute(inputElement, "selectionchange") should be target. Was script: target; content: none. 348 PASS testElementAttribute(inputElement, "selectionchange") is "target" 349 349 PASS testElementAttribute(inputElement, "selectstart") is "target" 350 350 PASS testElementAttribute(inputElement, "stalled") is "target" … … 439 439 PASS testElementAttribute(audioElement, "seeking") is "target" 440 440 PASS testElementAttribute(audioElement, "select") is "target" 441 FAIL testElementAttribute(audioElement, "selectionchange") should be target. Was script: target; content: none. 441 PASS testElementAttribute(audioElement, "selectionchange") is "target" 442 442 PASS testElementAttribute(audioElement, "selectstart") is "target" 443 443 PASS testElementAttribute(audioElement, "stalled") is "target" … … 532 532 PASS testElementAttribute(videoElement, "seeking") is "target" 533 533 PASS testElementAttribute(videoElement, "select") is "target" 534 FAIL testElementAttribute(videoElement, "selectionchange") should be target. Was script: target; content: none. 534 PASS testElementAttribute(videoElement, "selectionchange") is "target" 535 535 PASS testElementAttribute(videoElement, "selectstart") is "target" 536 536 PASS testElementAttribute(videoElement, "stalled") is "target" … … 683 683 Event names we expect to be forwarded from <frameset> element to document) 684 684 685 FAIL testElementAttribute(framesetElement, "selectionchange") should be document. Was script: target; content: none.685 FAIL testElementAttribute(framesetElement, "selectionchange") should be document. Was target. 686 686 687 687 Non-forwarded event names on <frameset> element … … 823 823 PASS testElementAttribute(rectElement, "seeking") is "target" 824 824 PASS testElementAttribute(rectElement, "select") is "target" 825 FAIL testElementAttribute(rectElement, "selectionchange") should be target. Was script: target; content: none. 825 PASS testElementAttribute(rectElement, "selectionchange") is "target" 826 826 PASS testElementAttribute(rectElement, "selectstart") is "target" 827 827 PASS testElementAttribute(rectElement, "stalled") is "target" -
trunk/LayoutTests/imported/w3c/ChangeLog
r286897 r286898 1 2021-12-10 Alexey Shvayka <[email protected]> 2 3 Setting "onselectionchange" content attribute should add an event listener 4 https://bugs.webkit.org/show_bug.cgi?id=234167 5 6 Reviewed by Darin Adler. 7 8 Import WPT tests from https://github.com/web-platform-tests/wpt/pull/32013. 9 10 * web-platform-tests/selection/textcontrols: Added. 11 * web-platform-tests/selection/textcontrols/onselectionchange-content-attribute-expected.txt: Added. 12 * web-platform-tests/selection/textcontrols/onselectionchange-content-attribute.html: Added. 13 1 14 2021-12-10 Joonghun Park <[email protected]> 2 15 -
trunk/Source/WebCore/ChangeLog
r286897 r286898 1 2021-12-10 Alexey Shvayka <[email protected]> 2 3 Setting "onselectionchange" content attribute should add an event listener 4 https://bugs.webkit.org/show_bug.cgi?id=234167 5 6 Reviewed by Darin Adler. 7 8 This patch implements full support for "onselectionchange" content attribute, 9 enabling it to add an event listener on any element, which fixes regression 10 introduced in r268745 and aligns "onselectionchange" with "onselectstart". 11 12 Aligns WebKit with Gecko and the spec [1]. 13 14 [1] https://w3c.github.io/selection-api/#extensions-to-globaleventhandlers-interface 15 16 Tests: fast/dom/event-handler-attributes.html 17 imported/w3c/web-platform-tests/selection/textcontrols/onselectionchange-content-attribute.html 18 19 * html/HTMLElement.cpp: 20 (WebCore::HTMLElement::createEventHandlerNameMap): 21 1 22 2021-12-10 Joonghun Park <[email protected]> 2 23 -
trunk/Source/WebCore/html/HTMLElement.cpp
r286223 r286898 328 328 &onseekingAttr.get(), 329 329 &onselectAttr.get(), 330 &onselectionchangeAttr.get(), 330 331 &onselectstartAttr.get(), 331 332 &onslotchangeAttr.get(),
Note:
See TracChangeset
for help on using the changeset viewer.