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

Remove slottable mixin #2216

Merged
merged 8 commits into from
Feb 10, 2021
Merged
Show file tree
Hide file tree
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
13 changes: 7 additions & 6 deletions files/en-us/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@
/en-US/docs/DOM/DOM_Reference/Preface /en-US/docs/Web/API/Document_Object_Model
/en-US/docs/DOM/DOM_Reference/document /en-US/docs/Web/API/Document
/en-US/docs/DOM/DOM_Reference/document.evaluate /en-US/docs/Web/API/Document/evaluate
/en-US/docs/DOM/DOM_Reference/element /en-US/docs/Web/API/element
/en-US/docs/DOM/DOM_Reference/element /en-US/docs/Web/API/Element
/en-US/docs/DOM/DOM_Reference/event /en-US/docs/Web/API/Event
/en-US/docs/DOM/DOM_Reference/style /en-US/docs/Web/API/HTMLStyleElement
/en-US/docs/DOM/DOM_Reference/window /en-US/docs/Web/API/Window
Expand Down Expand Up @@ -1972,7 +1972,7 @@
/en-US/docs/DOM/document.writeln /en-US/docs/Web/API/Document/writeln
/en-US/docs/DOM/document.xmlVersion /en-US/docs/Web/API/Document/xmlVersion
/en-US/docs/DOM/document/createRange /en-US/docs/Web/API/Document/createRange
/en-US/docs/DOM/element /en-US/docs/Web/API/element
/en-US/docs/DOM/element /en-US/docs/Web/API/Element
/en-US/docs/DOM/element.accessKey /en-US/docs/Web/API/HTMLElement/accessKey
/en-US/docs/DOM/element.addEventListener /en-US/docs/Web/API/EventTarget/addEventListener
/en-US/docs/DOM/element.appendChild /en-US/docs/Web/API/Node/appendChild
Expand Down Expand Up @@ -2488,7 +2488,7 @@
/en-US/docs/DOM:document.write /en-US/docs/Web/API/Document/write
/en-US/docs/DOM:document.writeln /en-US/docs/Web/API/Document/writeln
/en-US/docs/DOM:document.xmlVersion /en-US/docs/Web/API/Document/xmlVersion
/en-US/docs/DOM:element /en-US/docs/Web/API/element
/en-US/docs/DOM:element /en-US/docs/Web/API/Element
/en-US/docs/DOM:element.addEventListener /en-US/docs/Web/API/EventTarget/addEventListener
/en-US/docs/DOM:element.appendChild /en-US/docs/Web/API/Node/appendChild
/en-US/docs/DOM:element.attributes /en-US/docs/Web/API/Element/attributes
Expand Down Expand Up @@ -7623,7 +7623,6 @@
/en-US/docs/Web/API/Element/animationend_event /en-US/docs/Web/API/HTMLElement/animationend_event
/en-US/docs/Web/API/Element/animationiteration_event /en-US/docs/Web/API/HTMLElement/animationiteration_event
/en-US/docs/Web/API/Element/animationstart_event /en-US/docs/Web/API/HTMLElement/animationstart_event
/en-US/docs/Web/API/Element/assignedSlot /en-US/docs/Web/API/Slottable/assignedSlot
/en-US/docs/Web/API/Element/cancel_event /en-US/docs/Web/API/HTMLDialogElement/cancel_event
/en-US/docs/Web/API/Element/childElementCount /en-US/docs/Web/API/ParentNode/childElementCount
/en-US/docs/Web/API/Element/children /en-US/docs/Web/API/ParentNode/children
Expand Down Expand Up @@ -8798,8 +8797,10 @@
/en-US/docs/Web/API/SharedWorkerGlobalScope.applicationCache /en-US/docs/Web/API/SharedWorkerGlobalScope/applicationCache
/en-US/docs/Web/API/SharedWorkerGlobalScope.name /en-US/docs/Web/API/SharedWorkerGlobalScope/name
/en-US/docs/Web/API/SharedWorkerGlobalScope.onconnect /en-US/docs/Web/API/SharedWorkerGlobalScope/onconnect
/en-US/docs/Web/API/Slotable /en-US/docs/Web/API/Slottable
/en-US/docs/Web/API/Slotable/assignedSlot /en-US/docs/Web/API/Slottable/assignedSlot
/en-US/docs/Web/API/Slotable /en-US/docs/Web/API/Element
/en-US/docs/Web/API/Slotable/assignedSlot /en-US/docs/Web/API/Element/assignedSlot
/en-US/docs/Web/API/Slottable /en-US/docs/Web/API/Element
/en-US/docs/Web/API/Slottable/assignedSlot /en-US/docs/Web/API/Element/assignedSlot
/en-US/docs/Web/API/SpeechRecognition/SpeechRecognition.serviceURI /en-US/docs/Web/API/SpeechRecognition/serviceURI
/en-US/docs/Web/API/SpeechRecognition/start() /en-US/docs/Web/API/SpeechRecognition/start
/en-US/docs/Web/API/SpeechRecognitionEvent/SpeechRecognitionEvent.resultIndex /en-US/docs/Web/API/SpeechRecognitionEvent/resultIndex
Expand Down
20 changes: 7 additions & 13 deletions files/en-us/_wikihistory.json
Original file line number Diff line number Diff line change
Expand Up @@ -83660,18 +83660,6 @@
"kscarfone"
]
},
"Web/API/Slottable": {
"modified": "2020-10-15T22:30:52.066Z",
"contributors": [
"sideshowbarker"
]
},
"Web/API/Slottable/assignedSlot": {
"modified": "2020-10-15T22:30:57.859Z",
"contributors": [
"sideshowbarker"
]
},
"Web/API/SourceBuffer": {
"modified": "2020-10-15T21:39:07.283Z",
"contributors": [
Expand Down Expand Up @@ -165935,5 +165923,11 @@
"stephaniehobson",
"groovecoder"
]
},
"Web/API/Element/assignedSlot": {
"modified": "2020-10-15T22:30:57.859Z",
"contributors": [
"sideshowbarker"
]
}
}
}
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
title: 'Slottable: assignedSlot'
slug: Web/API/Slottable/assignedSlot
title: 'Element: assignedSlot'
slug: Web/API/Element/assignedSlot
tags:
- API
- Property
- Reference
- Slottable
- Web Components
- assignedSlot
- shadow dom
- API
- Property
- Reference
- Slottable
- Web Components
- assignedSlot
- shadow dom
---
<p>{{APIRef("Shadow DOM")}}</p>

<p><span class="seoSummary">The <strong><code>assignedSlot</code></strong> read-only
property of the {{domxref("Slottable")}} interface returns an
property of the {{domxref("Element")}} interface returns an
{{domxref("HTMLSlotElement")}} representing the {{htmlelement("slot")}} element the
node is inserted in.</span></p>

Expand Down Expand Up @@ -74,4 +74,4 @@ <h2 id="Specifications">Specifications</h2>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<p>{{Compat("api.Slottable.assignedSlot")}}</p>
<p>{{Compat("api.Element.assignedSlot")}}</p>
11 changes: 2 additions & 9 deletions files/en-us/web/api/element/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ <h2 id="Properties">Properties</h2>
<p><em>Inherits properties from its parent interface, {{DOMxRef("Node")}}, and by extension that interface's parent, {{DOMxRef("EventTarget")}}. It implements the properties of {{DOMxRef("ParentNode")}}, {{DOMxRef("ChildNode")}}, {{DOMxRef("NonDocumentTypeChildNode")}},</em> and {{DOMxRef("Animatable")}}.</p>

<dl>
<dt>{{DOMxRef("Element.assignedSlot")}}{{readonlyInline}}</dt>
<dd>Returns a {{DOMxRef("HTMLSlotElement")}} representing the {{htmlelement("slot")}} the node is inserted in.</dd>
<dt>{{DOMxRef("Element.attributes")}} {{readOnlyInline}}</dt>
<dd>Returns a {{DOMxRef("NamedNodeMap")}} object containing the assigned attributes of the corresponding HTML element.</dd>
<dt>{{DOMxRef("Element.classList")}} {{readOnlyInline}}</dt>
Expand Down Expand Up @@ -97,15 +99,6 @@ <h2 id="Properties">Properties</h2>
<p>This change is implemented in Chrome since version 46.0 and Firefox since version 48.0.</p>
</div>

<h3 id="Properties_included_from_Slotable">Properties included from Slotable</h3>

<p><em>The <code>Element</code> interface includes the following property, defined on the {{DOMxRef("Slotable")}} mixin.</em></p>

<dl>
<dt>{{DOMxRef("Slotable.assignedSlot")}}{{readonlyInline}}</dt>
<dd>Returns a {{DOMxRef("HTMLSlotElement")}} representing the {{htmlelement("slot")}} the node is inserted in.</dd>
</dl>

<h3 id="Handlers">Event handlers</h3>

<dl>
Expand Down
46 changes: 0 additions & 46 deletions files/en-us/web/api/slottable/index.html

This file was deleted.

4 changes: 2 additions & 2 deletions files/en-us/web/api/text/assignedslot/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: HTMLSlotElement.assignedSlot
title: Text.assignedSlot
slug: Web/API/Text/assignedSlot
tags:
- API
Expand All @@ -9,7 +9,7 @@
- assignedSlot
- shadow dom
---
<p>{{SeeCompatTable}}{{APIRef("Shadow DOM")}}</p>
<p>{{{APIRef("Shadow DOM")}}</p>

<p><span class="seoSummary">The <strong><code>assignedSlot</code></strong> property of the
{{domxref("Text")}} interface returns the {{domxref("HTMLSlotElement")}} object
Expand Down
11 changes: 2 additions & 9 deletions files/en-us/web/api/text/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ <h2 id="Properties">Properties</h2>
<p><em>Inherits properties from its parent, {{domxref("CharacterData")}}.</em></p>

<dl>
<dt>{{domxref("Text.assignedSlot")}} {{readonlyInline}}</dt>
<dd>Returns a {{domxref("HTMLSlotElement")}} representing the {{htmlelement("slot")}} the node is inserted in.</dd>
<dt>{{domxref("Text.isElementContentWhitespace")}} {{readonlyInline}}{{ obsolete_inline() }}</dt>
<dd>
<p>Returns a {{domxref("Boolean")}} flag indicating whether or not the text node contains only whitespace.</p>
Expand All @@ -39,15 +41,6 @@ <h2 id="Properties">Properties</h2>
<dd>Returns the {{domxref("HTMLSlotElement")}} object associated with the element.</dd>
</dl>

<h3 id="Properties_included_from_Slotable">Properties included from Slotable</h3>

<p><em>The <code>Text</code> interface includes the following property, defined on the {{domxref("Slotable")}} mixin.</em></p>

<dl>
<dt>{{domxref("Slotable.assignedSlot")}} {{readonlyInline}}</dt>
<dd>Returns a {{domxref("HTMLSlotElement")}} representing the {{htmlelement("slot")}} the node is inserted in.</dd>
</dl>

<h2 id="Methods_2">Methods</h2>

<p><em>Inherits methods from its parent, {{domxref("CharacterData")}}.</em></p>
Expand Down