Bug 81097

Summary: ShadowRoot.activeElement should be null if it does not contain a focused element.
Product: WebKit Reporter: Hayato Ito <hayato>
Component: DOMAssignee: Hayato Ito <hayato>
Status: RESOLVED FIXED    
Severity: Normal CC: dglazkov, dominicc, kaustubh.ra, morrita, rniwa, rolandsteiner, shinyak, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 63601    
Attachments:
Description Flags
Return null none

Description Hayato Ito 2012-03-14 05:58:59 PDT
Although I've just filed a bug for the Shadow DOM spec (see the bellow), I think shadowRoot.activeElement should be null if it does not contain a focused element.

http://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#active-element
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16365

The current implementation of ShadowRoot.activeElement may return a focused element which is outside of ShadowRoot.
Comment 1 Hayato Ito 2012-03-14 06:15:29 PDT
Created attachment 131833 [details]
Return null
Comment 2 WebKit Review Bot 2012-03-14 20:07:06 PDT
Comment on attachment 131833 [details]
Return null

Clearing flags on attachment: 131833

Committed r110810: <http://trac.webkit.org/changeset/110810>
Comment 3 WebKit Review Bot 2012-03-14 20:07:11 PDT
All reviewed patches have been landed.  Closing bug.