Bug 131079 - Move focus management API from HTMLDocument to Document
Summary: Move focus management API from HTMLDocument to Document
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Daniel Bates
Keywords: BlinkMergeCandidate, InRadar
Depends on:
Reported: 2014-04-01 16:44 PDT by Daniel Bates
Modified: 2014-04-02 14:40 PDT (History)
9 users (show)

See Also:

Patch and layout test (15.94 KB, patch)
2014-04-01 16:54 PDT, Daniel Bates
timothy: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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
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>