[whatwg/dom] Specify [LegacyWindowAlias=HTMLDocument] on Document (#551)

In https://html.spec.whatwg.org/multipage/window-object.html#the-window-object there is:

> For historical reasons, [`Window`](https://html.spec.whatwg.org/multipage/window-object.html#window) objects must also have a writable, configurable, non-enumerable property named **`HTMLDocument`** whose value is the [`Document`](https://html.spec.whatwg.org/multipage/dom.html#document) [interface object](https://heycam.github.io/webidl/#dfn-interface-object).

I'd like to get rid of that using the still relatively new [[`LegacyWindowAlias`](https://heycam.github.io/webidl/#LegacyWindowAlias)] extended attribute. However, Web IDL forbids that extended attribute from being used on partial interface definitions, and thus I had to open the PR here rather than as HTML. As much as I hate putting more HTML-specific things in DOM, I think this is minor enough to be okay.

/cc @tobie
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/dom/pull/551

-- Commit Summary --

  * Specify [LegacyWindowAlias=HTMLDocument] on Document

-- File Changes --

    M dom.bs (3)

-- Patch Links --

https://github.com/whatwg/dom/pull/551.patch
https://github.com/whatwg/dom/pull/551.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/551

Received on Monday, 25 December 2017 12:18:04 UTC