RESOLVED FIXED 180721
is<HTMLTextFormControlElement> reports the input type.
https://bugs.webkit.org/show_bug.cgi?id=180721
Summary is<HTMLTextFormControlElement> reports the input type.
zalan
Reported 2017-12-12 14:44:12 PST
but it is expected to report the class type.
Attachments
Patch (18.18 KB, patch)
2017-12-12 14:48 PST, zalan
no flags
Patch (18.49 KB, patch)
2017-12-12 15:08 PST, zalan
no flags
Archive of layout-test-results from ews103 for mac-elcapitan (2.41 MB, application/zip)
2017-12-12 16:05 PST, EWS Watchlist
no flags
Patch (19.12 KB, patch)
2017-12-12 19:12 PST, zalan
no flags
Radar WebKit Bug Importer
Comment 1 2017-12-12 14:44:53 PST
zalan
Comment 2 2017-12-12 14:48:28 PST
Ryosuke Niwa
Comment 3 2017-12-12 14:55:28 PST
Comment on attachment 329162 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=329162&action=review > Source/WebCore/editing/Editor.cpp:247 > + if (is<Element>(event->target()) && downcast<Element>(*event->target()).isTextField()) { > auto& target = downcast<HTMLTextFormControlElement>(*event->target()); Here, we should probably check both is<HTMLTextFormControlElement>(event->target()) and downcast<Element>(*event->target()).isTextField() so that downcast & is match. > Source/WebCore/editing/Editor.cpp:1724 > - if (is<HTMLTextFormControlElement>(focusedElement)) { > + if (focusedElement && focusedElement->isTextField()) { Ditto.
zalan
Comment 4 2017-12-12 15:08:02 PST
EWS Watchlist
Comment 5 2017-12-12 16:05:41 PST
Comment on attachment 329163 [details] Patch Attachment 329163 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/5637053 New failing tests: fast/selectors/placeholder-shown-style-update.html
EWS Watchlist
Comment 6 2017-12-12 16:05:42 PST
Created attachment 329173 [details] Archive of layout-test-results from ews103 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-elcapitan Platform: Mac OS X 10.11.6
WebKit Commit Bot
Comment 7 2017-12-12 16:13:03 PST
The commit-queue encountered the following flaky tests while processing attachment 329163 [details]: The commit-queue is continuing to process your patch.
zalan
Comment 8 2017-12-12 19:12:35 PST
WebKit Commit Bot
Comment 9 2017-12-12 20:05:38 PST
Comment on attachment 329193 [details] Patch Clearing flags on attachment: 329193 Committed r225837: <https://trac.webkit.org/changeset/225837>
WebKit Commit Bot
Comment 10 2017-12-12 20:05:39 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.