Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use interface mixins instead of [NoInterfaceObject] #545

Merged
merged 1 commit into from
Dec 19, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 21 additions & 32 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2598,13 +2598,11 @@ with an optional <i>suppress observers flag</i>, run these steps:
method from being exposed on <a for="/">elements</a> (and therefore on {{ParentNode}}).

<pre class=idl>
[NoInterfaceObject,
Exposed=Window]
interface NonElementParentNode {
interface mixin NonElementParentNode {
Element? getElementById(DOMString elementId);
};
Document implements NonElementParentNode;
DocumentFragment implements NonElementParentNode;
Document includes NonElementParentNode;
DocumentFragment includes NonElementParentNode;
</pre>

<dl class=domintro>
Expand All @@ -2622,12 +2620,10 @@ null if there is no such <a for="/">element</a> otherwise.
<h4 id=mixin-documentorshadowroot>Mixin {{DocumentOrShadowRoot}}</h4>

<pre class=idl>
[NoInterfaceObject,
Exposed=Window]
interface DocumentOrShadowRoot {
interface mixin DocumentOrShadowRoot {
};
Document implements DocumentOrShadowRoot;
ShadowRoot implements DocumentOrShadowRoot;
Document includes DocumentOrShadowRoot;
ShadowRoot includes DocumentOrShadowRoot;
</pre>

<p class="note no-backref">The {{DocumentOrShadowRoot}} mixin is expected to be used by other
Expand Down Expand Up @@ -2658,9 +2654,7 @@ To <dfn export lt="converting nodes into a node">convert nodes into a node</dfn>
</ol>

<pre class=idl>
[NoInterfaceObject,
Exposed=Window]
interface ParentNode {
interface mixin ParentNode {
[SameObject] readonly attribute HTMLCollection children;
readonly attribute Element? firstElementChild;
readonly attribute Element? lastElementChild;
Expand All @@ -2672,9 +2666,9 @@ interface ParentNode {
Element? querySelector(DOMString selectors);
[NewObject] NodeList querySelectorAll(DOMString selectors);
};
Document implements ParentNode;
DocumentFragment implements ParentNode;
Element implements ParentNode;
Document includes ParentNode;
DocumentFragment includes ParentNode;
Element includes ParentNode;
</pre>
<!--
[Unscopable] Element? query(DOMString relativeSelectors);
Expand Down Expand Up @@ -2803,14 +2797,12 @@ method, when invoked, must return the <a lt="static collection">static</a> resul
{{ChildNode}}).

<pre class=idl>
[NoInterfaceObject,
Exposed=Window]
interface NonDocumentTypeChildNode {
interface mixin NonDocumentTypeChildNode {
readonly attribute Element? previousElementSibling;
readonly attribute Element? nextElementSibling;
};
Element implements NonDocumentTypeChildNode;
CharacterData implements NonDocumentTypeChildNode;
Element includes NonDocumentTypeChildNode;
CharacterData includes NonDocumentTypeChildNode;
</pre>

<dl class=domintro>
Expand Down Expand Up @@ -2839,17 +2831,15 @@ getter must return the first <a>following</a> <a for=tree>sibling</a> that is an
<h4 id=interface-childnode>Mixin {{ChildNode}}</h4>

<pre class=idl>
[NoInterfaceObject,
Exposed=Window]
interface ChildNode {
interface mixin ChildNode {
[CEReactions, Unscopable] void before((Node or DOMString)... nodes);
[CEReactions, Unscopable] void after((Node or DOMString)... nodes);
[CEReactions, Unscopable] void replaceWith((Node or DOMString)... nodes);
[CEReactions, Unscopable] void remove();
};
DocumentType implements ChildNode;
Element implements ChildNode;
CharacterData implements ChildNode;
DocumentType includes ChildNode;
Element includes ChildNode;
CharacterData includes ChildNode;
</pre>

<dl class=domintro>
Expand Down Expand Up @@ -2965,13 +2955,11 @@ steps:
<h4 id=mixin-slotable>Mixin {{Slotable}}</h4>

<pre class=idl>
[NoInterfaceObject,
Exposed=Window]
interface Slotable {
interface mixin Slotable {
readonly attribute HTMLSlotElement? assignedSlot;
};
Element implements Slotable;
Text implements Slotable;
Element includes Slotable;
Text includes Slotable;
</pre>

<p>The <dfn attribute for=Slotable><code>assignedSlot</code></dfn> attribute's getter must return
Expand Down Expand Up @@ -10095,6 +10083,7 @@ James Robinson,
Jeffrey Yasskin,
Jens Lindström,
Jesse McCarthy,
Jinho Bang,
João Eiras,
Joe Kesselman,
John Atkins,
Expand Down