[webkit-dev] [forms][MouseEvent]Mouse event For disabled Form element is disabled but not for asscociated shadow dom node

santosh mahto santoshbit2007 at gmail.com
Mon May 27 21:05:19 PDT 2013


Hi  All

Currently We disable mouse event for   Disabled Form Element  But  its
associated dom node still receives the Mouse event



Disabling of Mouse event is disabled  before  Dispatching the event at Dom
Node as:

bool MouseEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher)
const

{

                   if (isDisabledFormControl(dispatcher->node()))

                                  return false;

}

But  Shadow Dom Node associated with form element  still receives and
handles the DOM Mouse Events.



e.g  <input type=text disabled >

   here HTMLInputElement   will not receive any event but  its associated
dom node (spinbuttonelement, innerTextControlElement)

still receives and handles the mouse event.



I think if  element (shadow host) is disabled to receive the mouse event
then all itsassociated  shadow node also should be disabled for receiving
Mouse events



Bugs :https://bugs.webkit.org/show_bug.cgi?id=102841    -->good testcase to
show behavior

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

  are related to this.



what should be the correct behavior ??



 Thanks

Santosh Mahto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20130528/6bdcad69/attachment.html>


More information about the webkit-dev mailing list