[Webkit-unassigned] [Bug 81102] blur() on shadow host should work when a shadow host contains a focused element in its shadow DOM subtrees.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 16 06:26:01 PDT 2012


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





--- Comment #24 from Kaustubh Atrawalkar <kaustubh at motorola.com>  2012-03-16 06:26:01 PST ---
(In reply to comment #23)
> (From update of attachment 132261 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=132261&action=review
> 
> > Source/WebCore/dom/Element.cpp:1595
> > +    if (treeScope()->activeElement() == this) {
> 
> You can not use the result of activeElement() 'as is' since it may return document.body if there is no focused node.
> 
> Could you check whether we can call document.body.blur() and it work correctly or not?

document.body.blur() does not give any error. but body.blur will result in nothing as body's focus can not be unset. Tried that without the change in blur(). 
Steps -
Focus an element. 
call blur on body. 
Focus still remains on the element.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list