Skip to content

Add a flag for elements which cannot have shadow trees #85

Closed

Description

@domenic

See WICG/webcomponents#110 (comment)

What should this flag be called? "Cannot have shadow trees"? "Has complex rendering"?

What should the text look like and where in the element descriptions should it be placed?

Should it be a new kind of content ? That seems like a nice way to categorize, and would allow us to avoid having a sentence in each element, instead just adding it to the non-normative header and then maintaining the central list in https://html.spec.whatwg.org/#kinds-of-content.

Activity

  1. added
    addition/proposal
    on Sep 2, 2015
  2. annevk commented on Sep 2, 2015

    @annevk
    Member

    "Private shadow tree content"? Bit long.

  3. domenic commented on Sep 2, 2015

    @domenic
    MemberAuthor

    What do you think of flag vs. kind of content? I kind of like the latter now that I look at it.

  4. annevk commented on Sep 2, 2015

    @annevk
    Member

    I wonder why element groups such as "form-associated elements" or "Submittable elements" are not part of that. It seems "kind of content" is perhaps mostly about document conformance?

  5. domenic commented on Sep 2, 2015

    @domenic
    MemberAuthor

    I think you are right. Looking at https://html.spec.whatwg.org/#content-models in more detail it's largely about that.

    Hmm. Do you have any idea besides adding a sentence like "xxx elements have private shadow tree content" to all the relevant elements? A centralized list seems nicer, like the ones you mention, but I am not sure what section it would belong in.

  6. annevk commented on Sep 2, 2015

    @annevk
    Member

    Probably either a new section nested in "Common DOM interfaces" (2.7) or "Elements" (3.2).

  7. foolip commented on Sep 3, 2015

    @foolip
    Member

    FWIW, the flag (virtual function actually) is called areAuthorShadowsAllowed() in Blink. So I guess the "allow shadow root flag" or similar?

  8. self-assigned this
    on Sep 10, 2015
  9. added a commit that references this issue on Sep 10, 2015
    0155199
  10. foolip commented on Sep 21, 2015

    @foolip
    Member

    Media elements (<audio> and <video>) should also be excluded.

  11. annevk commented on Feb 29, 2016

    @annevk
    Member

    Closing this per the PR. For now the relevant method in Shadow DOM will simply have a safelist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

addition/proposal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions