Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Commit

Permalink
add customElements to Window object
Browse files Browse the repository at this point in the history
fix #1274

Substantive. This attribute is supported by Gecko/Blink, as determined by manual testing for it.
  • Loading branch information
chaals committed Apr 1, 2018
1 parent e16298d commit 652b797
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
18 changes: 11 additions & 7 deletions sections/browsers.include
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,7 @@
attribute DOMString name;
[PutForwards=href, Unforgeable] readonly attribute Location location;
readonly attribute History history;
readonly attribute CustomElementRegistry customElements;
[Replaceable] readonly attribute BarProp locationbar;
[Replaceable] readonly attribute BarProp menubar;
[Replaceable] readonly attribute BarProp personalbar;
Expand Down Expand Up @@ -1072,7 +1073,7 @@

<dd>

Returns the <code>Window</code> object of the <a>active document</a>.
Returns the {{Window}} object of the <a>active document</a>.

</dd>

Expand All @@ -1096,6 +1097,9 @@
interface must return the {{Document}}'s <a>browsing context</a>'s {{WindowProxy}} object, if
there is one, or null otherwise.

The <dfn attribute for="Window"><code>customElements</code></dfn> attribute returns the
{{CustomElementRegistry}} associated with that {{Window}} object.

<hr />

For historical reasons, {{Window}} objects must also have a writable, configurable,
Expand Down Expand Up @@ -2008,12 +2012,12 @@
do the same thing) to access each other. (Can't be set in sandboxed <{iframe}>s.)
</dd>
</dl>
A string <var>hostSuffixString</var>

A string <var>hostSuffixString</var>
<dfn data-lt="is a registrable domain suffix of or is equal to|
is not a registrable domain suffix of and is not equal to">is a registrable domain suffix of, or is equal to</dfn> a
is not a registrable domain suffix of and is not equal to">is a registrable domain suffix of, or is equal to</dfn> a
<a data-lt="origin host">host</a> <var>originalHost</var> if the following algorithm returns <code>true</code>:

1. If <var>hostSuffixString</var> is the empty string, then return <code>false</code>.
1. Let <var>host</var> be the result of <span data-x="host parser">parsing</span> <var>hostSuffixString</var>.
1. If <var>host</var> is failure, then return <code>false</code>.
Expand Down Expand Up @@ -2047,7 +2051,7 @@
1. If this {{Document}} object's <a>active sandboxing flag set</a> has its
<a>sandboxed <code>document.domain</code> browsing context flag</a> set, then throw a
"{{SecurityError}}" {{DOMException}}.
1. Let <var>effectiveDomain</var> be this {{Document}}'s [=concept/origin=]'s
1. Let <var>effectiveDomain</var> be this {{Document}}'s [=concept/origin=]'s
<a>effective domain</a>.
1. If <var>effectiveDomain</var> is null, then throw a "{{SecurityError}}" {{DOMException}}.
1. If the given value <span data-x="is a registrable domain suffix of or is equal to">is not
Expand Down Expand Up @@ -2422,7 +2426,7 @@
<a>StructuredDeserialize</a>) serialized state.</p>

Pages can <a method for="History" lt="pushState()">add</a> <a>serialized state</a> to the
session history. These are then <a>deserialized</a> and
session history. These are then <a>deserialized</a> and
<a attribute for="WindowEventHandlers" lt="onpopstate">returned to the script</a> when the
user (or script) goes back in the history, thus enabling authors to use the
"navigation" metaphor even in one-page applications.
Expand Down
2 changes: 2 additions & 0 deletions sections/changes.include
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
FileAPI is better defined in <a href="https://w3c.github.io/FileAPI/">FileApi spec</a>.
Fixed <a href="https://github.com/w3c/html/issues/1217">issue 1217</a>
</dd>
<dt><a href="">Added <code>customElements</code> IDL attribute</a> to the {{Window}} object</dt>
<dd>Fixes #1274. Substantive change matching new implementation of Custom Elements in Blink / Gecko.</dd>
<dt><a href="https://github.com/w3c/html/pull/1220">Other Pragma Directives removed.</a></dt>
<dd>Change to match reality. Fixed <a href="https://github.com/w3c/html/issues/1212">issue 1212</a></dd>
<dt><a href="https://github.com/w3c/html/pull/1204">Caption end tag can be ommitted.</a></dt>
Expand Down

0 comments on commit 652b797

Please sign in to comment.