[Webkit-unassigned] [Bug 138494] collapse api in DOMSelection IDL does not match as per specification
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Aug 11 14:05:52 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=138494
Ahmad Saleem <zlip.792 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zlip.792 at gmail.com
--- Comment #8 from Ahmad Saleem <zlip.792 at gmail.com> ---
I took the test case from the patch and changed it into JSFiddle:
Link - https://jsfiddle.net/xs17np58/show
and these are results across all browsers:
*** Safari 15.6 on macOS 12.5 ***
PASS selection.rangeCount is 1
PASS selection.collapse() threw exception TypeError: Not enough arguments.
PASS selection.rangeCount is 1
PASS selection.rangeCount is 1
PASS selection.rangeCount is 0
FAIL successfullyParsed should be true. Was false.
Some tests failed.
TEST COMPLETE
*** Chrome Canary 105 ***
PASS selection.rangeCount is 1
FAIL selection.collapse() should throw TypeError: Not enough arguments. Threw exception TypeError: Failed to execute 'collapse' on 'Selection': 1 argument required, but only 0 present..
PASS selection.rangeCount is 1
PASS selection.rangeCount is 1
PASS selection.rangeCount is 0
FAIL successfullyParsed should be true. Was false.
Some tests failed.
*** Firefox Nightly 105 ***
PASS selection.rangeCount is 1
FAIL selection.collapse() should throw TypeError: Not enough arguments. Threw exception TypeError: Selection.collapse: At least 1 argument required, but only 0 passed.
PASS selection.rangeCount is 1
PASS selection.rangeCount is 1
PASS selection.rangeCount is 0
FAIL successfullyParsed should be true. Was false.
Some tests failed.
TEST COMPLETE
_______________
As can be seen from the test results, all fail on "successfulyParsed" but Chrome Canary 106 and Firefox Nightly also fail on "selection.collapse()" compared to Safari, I don't know whether it is intentional to align with web-spec or not but just wanted to share updated status.
Please mark this bug accordingly. Thank!
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220811/ce3baf1d/attachment-0001.htm>
More information about the webkit-unassigned
mailing list