Skip to content

Miscellaneous Custom Elements #231

Closed

Description

@josepharhar

This was split from #181

Description

This is a bunch of WPTs in the custom-elements directory that are failing. I don’t think they correspond to any particular big feature, they were just made from random one-off bugs.

Rationale

Basic custom elements behavior should be interoperable.

Callbacks

Tests:

Custom Element Registry

Tests:

Construction

Tests:

:defined Pseudo Selector

Tests:
https://wpt.fyi/results/custom-elements/pseudo-class-defined-print.html
Spec: https://html.spec.whatwg.org/multipage/semantics-other.html#selector-defined

Activity

  1. moved this to Proposed in Interop 2023on Oct 21, 2022
  2. gsnedders commented on Oct 25, 2022

    @gsnedders
    Member
  3. josepharhar commented on Oct 25, 2022

    @josepharhar
    Author

    Thanks for looking at those, should I move them to #234 then?

  4. gsnedders commented on Oct 25, 2022

    @gsnedders
    Member

    Probably?

  5. josepharhar commented on Oct 25, 2022

    @josepharhar
    Author

    Ok, I moved pseudo-class-defined.html and custom-elements/parser/ to the other issue.
    I kept pseudo-class-defined-print.html here because I don't see anything related to custom builtins, let me know if I missed anything.

  6. hsinyi commented on Nov 1, 2022

    @hsinyi

    Based on the discussion with @jcsteh , we'd like to exclude https://wpt.fyi/results/custom-elements/reactions/AriaMixin-element-attributes.html i.e. exclude ARIA idref attributes.

    We are interested in keeping https://wpt.fyi/results/custom-elements/reactions/AriaMixin-string-attributes.html
    , i.e. ARIA non-idref part in the scope. However, there appear to be open spec issues for this part :
    w3c/aria#1110
    w3c/aria#1239

    How likely is it that we can get consensus on the spec issues before the start of the Interop period?

  7. josepharhar commented on Nov 1, 2022

    @josepharhar
    Author

    I am happy to drop AriaMixin-element-attributes.html if needed. I don't have context on those aria issues and I don't know how likely they are to be resolved before the start of the interop period.

  8. gsnedders commented on Nov 9, 2022

    @gsnedders
    Member

    Looking at this again, a lot of the tests seem to be testing things only observable in combination with #234.

    e.g.,

    % rg '(createElement.*is\s*:|\sis\s*=|define.*extends\s*:)' custom-elements  --files-with-matches | sort -f
    custom-elements/builtin-coverage.html
    custom-elements/custom-element-registry/define.html
    custom-elements/customized-built-in-constructor-exceptions.html
    custom-elements/Document-createElement-svg.svg
    custom-elements/Document-createElement.html
    custom-elements/Document-createElementNS.html
    custom-elements/htmlconstructor/newtarget.html
    custom-elements/HTMLElement-attachInternals.html
    custom-elements/HTMLElement-constructor.html
    custom-elements/parser/parser-constructs-custom-elements-with-is.html
    custom-elements/parser/parser-uses-create-an-element-for-a-token-svg.svg
    custom-elements/parser/serializing-html-fragments.html
    custom-elements/pseudo-class-defined.html
    custom-elements/reactions/HTMLInputElement.html
    custom-elements/reactions/HTMLMetaElement.html
    custom-elements/reactions/HTMLSourceElement.html
    custom-elements/reactions/resources/reactions.js
    custom-elements/resources/custom-elements-helpers.js
    custom-elements/scoped-registry/CustomElementRegistry-constructor.tentative.html
    custom-elements/upgrading/Document-importNode.html
    custom-elements/upgrading/Node-cloneNode.html
    

    The closer I look, the more of these seem to just be customised built-ins (#234).

    I think we need to closely review all the failing tests to see how many should just be part of #234, and whether that leaves much left here. Not sure what that means for the proposal v. test review periods, given accepting this and then removing (almost?) everything seems silly.

  9. foolip commented on Nov 11, 2022

    @foolip
    Member

    In the MDN short survey on APIs & JavaScript, "Web Components (custom elements, Shadow DOM, etc.)" was the most popular choice by a fairly wide margin, selected by ~39% of survey takers.

    Web Components was split into many granular proposals, and the survey results don't tell us which aspects web developers want the most, but it's fair to say that something about Web Components is important. (I'm posting this comment on each of the split proposals.)

  10. josepharhar commented on Nov 17, 2022

    @josepharhar
    Author

    I investigated each test and these are my findings for whether each test relies on custom builtins. Checkmark means no custom builtins, cross means it has custom builtins:

    I'll move all the custom builtin ones to the custom builtins proposal.

    Not sure what that means for the proposal v. test review periods, given accepting this and then removing (almost?) everything seems silly

    If you don't think the remaining tests here are enough, then perhaps we could move them to the misc. shadowdom proposal: #230

  11. gsnedders commented on Nov 19, 2022

    @gsnedders
    Member

    Not sure what that means for the proposal v. test review periods, given accepting this and then removing (almost?) everything seems silly

    If you don't think the remaining tests here are enough, then perhaps we could move them to the misc. shadowdom proposal: #230

    I don't think it's necessarily an issue—and we have other very small proposals—but it's something we may well want to deal with somehow through grouping.

    And FWIW, I believe these are all of the included tests based on the above list.

  12. added
    accepted
    on Feb 1, 2023
  13. nairnandu commented on Feb 1, 2023

    @nairnandu
    Contributor

    Thank you for proposing Miscellaneous Custom Elements for inclusion in Interop 2023.

    We are pleased to let you know that this proposal was accepted as part of the Web Components focus area. You can follow the progress of this Focus Area on the Interop 2023 dashboard.

    For an overview of our process, see the proposal selection summary. Thank you for contributing to Interop 2023!

    Posted on behalf of the Interop team.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedfocus-area-proposal

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions