Bug 131079

Summary: Move focus management API from HTMLDocument to Document
Product: WebKit Reporter: Daniel Bates <dbates>
Component: WebCore Misc.Assignee: Daniel Bates <dbates>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, commit-queue, ddkilzer, esprehn+autocc, gyuyoung.kim, kangil.han, kondapallykalyan, rniwa, timothy
Priority: P2 Keywords: BlinkMergeCandidate, InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch and layout test timothy: review+

Description Daniel Bates 2014-04-01 16:44:07 PDT
We should move hasFocus() and attribute activeElement from interface HTMLDocument to DOMDocument as per section Focus management APIs of the HTML5 standard: <http://www.whatwg.org/specs/web-apps/current-work/#focus-management-apis> (1 April 2014). Then hasFocus() and attribute activeElement can be used within an XML document.
Comment 2 Daniel Bates 2014-04-01 16:44:27 PDT
<rdar://problem/16220103>
Comment 3 Daniel Bates 2014-04-01 16:54:51 PDT
Created attachment 228339 [details]
Patch and layout test
Comment 4 WebKit Commit Bot 2014-04-01 16:57:38 PDT
Please wait for approval from timothy@apple.com (or another member of the Apple Safari Team) before submitting because this patch contains changes to the Apple Mac WebKit.framework public API.
Comment 5 Daniel Bates 2014-04-01 16:59:36 PDT
I used the patch for <https://bugs.webkit.org/show_bug.cgi?id=67651> as example of moving a versioned public API from derived interface to its base interface. Let me know if we should handle this differently.
Comment 6 Daniel Bates 2014-04-02 14:40:57 PDT
Committed r166668: <http://trac.webkit.org/changeset/166668>