Skip to content

Commit

Permalink
Use [LegacyUnenumerableNamedProperties]
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Feb 27, 2016
1 parent 20f97a2 commit 07f6c7f
Showing 1 changed file with 10 additions and 19 deletions.
29 changes: 10 additions & 19 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -6959,7 +6959,8 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
collection</span> of an <code>HTMLAllCollection</code> object consist of all the descendant
elements of the root <code>Document</code>.</p>

<pre class="idl">interface <dfn>HTMLAllCollection</dfn> {
<pre class="idl">[LegacyUnenumerableNamedProperties]
interface <dfn>HTMLAllCollection</dfn> {
readonly attribute unsigned long <span data-x="dom-HTMLAllCollection-length">length</span>;
getter <span>Element</span>? <span data-x="dom-HTMLAllCollection-item">item</span>(unsigned long index);
(<span>HTMLCollection</span> or <span>Element</span>)? <span data-x="dom-HTMLAllCollection-item-string">item</span>(DOMString name);
Expand Down Expand Up @@ -7032,8 +7033,6 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
an element preceding its <code data-x="">name</code> if it contributes both, they differ from each
other, and neither is the duplicate of an earlier entry.</p>

<p>The properties exposed in this way must be <span>unenumerable</span>.</p>

<p>On getting, the <dfn><code data-x="dom-HTMLAllCollection-length">length</code></dfn>
attribute must return the number of nodes <span>represented by the collection</span>.</p>

Expand Down Expand Up @@ -7135,8 +7134,6 @@ interface <dfn>RadioNodeList</dfn> : <span>NodeList</span> {
data-x="attr-fe-name">name</code> if it contributes both, they differ from each other, and neither is the
duplicate of an earlier entry.</p>

<p>The properties exposed in this way must be <span>unenumerable</span>.</p>

<p>The <dfn><code data-x="dom-HTMLFormControlsCollection-namedItem">namedItem(<var>name</var>)</code></dfn> method must act according to the following algorithm:</p>

<ol>
Expand Down Expand Up @@ -7320,8 +7317,6 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
data-x="attr-option-name">name</code> if it contributes both, they differ from each other, and neither is
the duplicate of an earlier entry.</p>

<p>The properties exposed in this way must be <span>unenumerable</span>.</p>

<p>When the user agent is to <dfn data-x="dom-HTMLOptionsCollection-setter">set the value of a new
indexed property or set the value of an existing indexed property</dfn> for a given property index
<var>index</var> to a new value <var>value</var>, it must run the following
Expand Down Expand Up @@ -40981,7 +40976,7 @@ the cell that corresponds to the values of the two dice.
<dd><code data-x="attr-fs-target">target</code></dd>
<dt><span data-x="concept-element-dom">DOM interface</span>:</dt><!--TOPIC:DOM APIs-->
<dd>
<pre class="idl">[OverrideBuiltins]
<pre class="idl">[OverrideBuiltins, LegacyUnenumerableNamedProperties]
interface <dfn>HTMLFormElement</dfn> : <span>HTMLElement</span> {
attribute DOMString <span data-x="dom-form-acceptCharset">acceptCharset</span>;
attribute DOMString <span data-x="dom-fs-action">action</span>;
Expand Down Expand Up @@ -41273,8 +41268,6 @@ interface <dfn>HTMLFormElement</dfn> : <span>HTMLElement</span> {

</ol>

<p>The properties exposed in this way must be <span>unenumerable</span>.</p>

<p>When a <code>form</code> element is <dfn data-x="dom-form-namedItem">indexed for named property
retrieval</dfn>, the user agent must run the following steps:</p>

Expand Down Expand Up @@ -76995,7 +76988,7 @@ dictionary <dfn>DragEventInit</dfn> : <span>MouseEventInit</span> {

<h3>The <code>Window</code> object</h3>

<pre class="idl">[PrimaryGlobal] <!-- Exposed=Window is implied because it's the primary global -->
<pre class="idl">[PrimaryGlobal, LegacyUnenumerableNamedProperties] <!-- Exposed=Window is implied because it's the primary global -->
/*sealed*/ interface <dfn>Window</dfn> : <span>EventTarget</span> {
// the current browsing context
[Unforgeable] readonly attribute <span>WindowProxy</span> <span data-x="dom-window">window</span>;
Expand Down Expand Up @@ -77446,8 +77439,6 @@ callback <dfn>FrameRequestCallback</dfn> = void (<span>DOMHighResTimeStamp</span

</ul>

<p>The properties exposed in this way must be <span>unenumerable</span>.</p>

<p>To <span>determine the value of a named property</span> <var>name</var> when <dfn
data-x="dom-window-namedItem">the <code>Window</code> object is indexed for property
retrieval</dfn>, the user agent must return the value obtained using the following steps:</p>
Expand Down Expand Up @@ -89443,19 +89434,22 @@ interface <dfn>NavigatorPlugins</dfn> {
boolean <span data-x="dom-navigator-javaEnabled">javaEnabled()</span>;
};

[LegacyUnenumerableNamedProperties]
interface <dfn>PluginArray</dfn> {
void <span data-x="dom-PluginArray-refresh">refresh</span>(optional boolean reload = false);
readonly attribute unsigned long <span data-x="dom-PluginArray-length">length</span>;
getter <span data-x="dom-Plugin">Plugin</span>? <span data-x="dom-PluginArray-item">item</span>(unsigned long index);
getter <span data-x="dom-Plugin">Plugin</span>? <span data-x="dom-PluginArray-namedItem">namedItem</span>(DOMString name);
};

[LegacyUnenumerableNamedProperties]
interface <dfn>MimeTypeArray</dfn> {
readonly attribute unsigned long <span data-x="dom-MimeTypeArray-length">length</span>;
getter <span>MimeType</span>? <span data-x="dom-MimeTypeArray-item">item</span>(unsigned long index);
getter <span>MimeType</span>? <span data-x="dom-MimeTypeArray-namedItem">namedItem</span>(DOMString name);
};

[LegacyUnenumerableNamedProperties]
interface <dfn data-x="dom-Plugin">Plugin</dfn> {
readonly attribute DOMString <span data-x="dom-Plugin-name">name</span>;
readonly attribute DOMString <span data-x="dom-Plugin-description">description</span>;
Expand Down Expand Up @@ -89653,8 +89647,7 @@ interface <dfn>MimeType</dfn> {

<p>The <span>supported property names</span> of a <code>PluginArray</code> object are the values
of the <code data-x="dom-Plugin-name">name</code> attributes of all the <code
data-x="dom-Plugin">Plugin</code> objects represented by the <code>PluginArray</code> object. The
properties exposed in this way must be <span>unenumerable</span>.
data-x="dom-Plugin">Plugin</code> objects represented by the <code>PluginArray</code> object.
<!--INSERT FINGERPRINT-->
</p>

Expand Down Expand Up @@ -89735,8 +89728,7 @@ interface <dfn>MimeType</dfn> {

<p>The <span>supported property names</span> of a <code>MimeTypeArray</code> object are the values
of the <code data-x="dom-MimeType-type">type</code> attributes of all the <code>MimeType</code>
objects represented by the <code>MimeTypeArray</code> object. The properties exposed in this way
must be <span>unenumerable</span>.
objects represented by the <code>MimeTypeArray</code> object.
<!--INSERT FINGERPRINT-->
</p>

Expand Down Expand Up @@ -89797,8 +89789,7 @@ interface <dfn>MimeType</dfn> {

<p>The <span>supported property names</span> of a <code data-x="dom-Plugin">Plugin</code> object
are the values of the <code data-x="dom-MimeType-type">type</code> attributes of the
<code>MimeType</code> objects representing the <span>reported MIME types</span>. The properties
exposed in this way must be <span>unenumerable</span>.
<code>MimeType</code> objects representing the <span>reported MIME types</span>.
<!--INSERT FINGERPRINT-->
</p>

Expand Down

0 comments on commit 07f6c7f

Please sign in to comment.