[Webkit-unassigned] [Bug 153887] New: iOS "clickable elements" concept/restriction not compatible with UI Events spec

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 4 12:55:13 PST 2016


https://bugs.webkit.org/show_bug.cgi?id=153887

            Bug ID: 153887
           Summary: iOS "clickable elements" concept/restriction not
                    compatible with UI Events spec
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: iOS
                OS: iOS 9.3
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Events
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: webkit at chrisrebert.com

I presume there must be some existing "Why isn't my <div> clickable?" bug of which this will be a duplicate,
but my search-fu wasn't able to turn up anything and there's now an actual web-platform-test for this, so...

https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html states
that elements only fire `click` events in certain circumstances (e.g. is a <button>, has an `onclick`, is styled as `cursor: pointer;`, etc.).
However, the W3C spec that defines the `click` event doesn't place any such special preconditions on which elements fire `click` events.

Quoting from relevant portions of the spec:

https://www.w3.org/TR/uievents/#event-type-click
> The click event type must be dispatched on the topmost event target indicated by the pointer,
> when the user presses down and releases the primary pointer button,
> or otherwise activates the pointer in a manner that simulates such an action.

https://www.w3.org/TR/uievents/#glossary-topmost-event-target
> topmost event target
>     The *topmost event target* must be the element highest in the rendering order which is capable of being an event target.
>     In graphical user interfaces this is the element under the user's pointing device. [...]

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160204/8036014c/attachment-0001.html>


More information about the webkit-unassigned mailing list