Skip to content

Clarify that Element.slot reflects the attribute - #44687

Open
cdoublev wants to merge 2 commits into
mdn:mainfrom
cdoublev:patch-1
Open

Clarify that Element.slot reflects the attribute#44687
cdoublev wants to merge 2 commits into
mdn:mainfrom
cdoublev:patch-1

Conversation

@cdoublev

Copy link
Copy Markdown
Contributor

Description

This change defines that Element.slot reflects the slot global attribute, even if the element is not actually slotted.

Motivation

I was misled by the current definition, which led me to think that the property represents the name of the slot where the element is actually placed.

Additional details

Related issues and pull requests

@cdoublev
cdoublev requested a review from a team as a code owner July 12, 2026 07:43
@cdoublev
cdoublev requested review from chrisdavidmills and removed request for a team July 12, 2026 07:43
@github-actions github-actions Bot added Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed labels Jul 12, 2026
@github-actions

github-actions Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Preview URLs (1 page)

(comment last updated: 2026-07-13 10:54:33)

@chrisdavidmills chrisdavidmills left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thanks @cdoublev. I just had a couple of minor text suggestions for you to consider.

Comment thread files/en-us/web/api/element/slot/index.md
Comment thread files/en-us/web/api/element/slot/index.md Outdated
Co-authored-by: Chris Mills <chrisdavidmills@gmail.com>
@cdoublev
cdoublev requested a review from chrisdavidmills July 28, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants