-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Custom elements: Add element.attachInternals() and ElementInternals interface #4324
Conversation
@domenic Would you review this please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good with some nits! Unsure when we should land, as adding a no-op interface to the spec feels a bit silly, but let me know what you think.
I also feel it's silly, however I'd like to merge this PR with the empty interface. It makes writing the next PR easier and makes the next PR smaller. |
@tkent-google you can create a new PR that contains these commits as well as the new commit. You'd have to rebase once this is merged and force push. |
bd1a53b
to
5c962da
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I would be OK merging this now as long as we added a warning to the ElementInternals section saying "for now this interface has no functionality; follow [tracking bug] to watch progress on adding it." Or, we could do the dependent PRs, like @annevk said.
…res'. This change is for whatwg/html#4324, and a follow-up of #15123 Bug: crbug.com/905922 Change-Id: I3eceb5d21ab555c23ed877ded17d359fe004e2aa
so that it matches to a specification PR; whatwg/html#4324 - Check 'is value' for customized built-in elements - Throws NotSupportedError instead of InvalidStateError in some cases - Remove the upstreamed test Bug: 905922 Change-Id: Ibe8db0ecde129f09a70c273cdc526f578ace1c33 Reviewed-on: https://chromium-review.googlesource.com/c/1482272 Auto-Submit: Kent Tamura <tkent@chromium.org> Commit-Queue: Hayato Ito <hayato@chromium.org> Reviewed-by: Hayato Ito <hayato@chromium.org> Cr-Commit-Position: refs/heads/master@{#635024}
…res'. This change is for whatwg/html#4324, and a follow-up of #15123 Bug: crbug.com/905922 Change-Id: I3eceb5d21ab555c23ed877ded17d359fe004e2aa Reviewed-on: https://chromium-review.googlesource.com/c/1482361 Auto-Submit: Kent Tamura <tkent@chromium.org> Reviewed-by: Hayato Ito <hayato@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#635380}
…res'. This change is for whatwg/html#4324, and a follow-up of web-platform-tests/wpt#15123 Bug: crbug.com/905922 Change-Id: I3eceb5d21ab555c23ed877ded17d359fe004e2aa Reviewed-on: https://chromium-review.googlesource.com/c/1482361 Auto-Submit: Kent Tamura <tkent@chromium.org> Reviewed-by: Hayato Ito <hayato@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#635380}
…res'. This change is for whatwg/html#4324, and a follow-up of #15123 Bug: crbug.com/905922 Change-Id: I3eceb5d21ab555c23ed877ded17d359fe004e2aa Reviewed-on: https://chromium-review.googlesource.com/c/1482361 Auto-Submit: Kent Tamura <tkent@chromium.org> Reviewed-by: Hayato Ito <hayato@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#635380}
…Element.attachInternals(), a=testonly Automatic update from web-platform-tests html,custom-elements: Add tests for HTMLElement.attachInternals() (#15123) Specification PR: whatwg/html#4324 -- wpt-commits: 4c70b5a6f3169400dc809ba540b8e4e425396b2d wpt-pr: 15123
…istry.html for 'disabledFeatures'., a=testonly Automatic update from web-platform-tests custom-elements: Update CustomElementRegistry.html for 'disabledFeatures'. This change is for whatwg/html#4324, and a follow-up of web-platform-tests/wpt#15123 Bug: crbug.com/905922 Change-Id: I3eceb5d21ab555c23ed877ded17d359fe004e2aa Reviewed-on: https://chromium-review.googlesource.com/c/1482361 Auto-Submit: Kent Tamura <tkent@chromium.org> Reviewed-by: Hayato Ito <hayato@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#635380} -- wpt-commits: 1aa5413b0c0a03d3c93e07d18bf8cc78e19ca611 wpt-pr: 15516
|
||
<li><p>If <var>definition</var>'s <span | ||
data-x="concept-custom-element-definition-disable-internals">disable internals</span> is true, | ||
then throw a <span>"<code>NotSupportedError</code>"</span> <code>DOMException</code>.</p></li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As with attachShadow()
, I don't think we should expose whether it's disabled or previously used. The same exception should be used for both.
Follows latest developments in whatwg/html#4324.
(Post edited since the original.) Running to-do list:
|
Follows latest developments in whatwg/html#4324.
This was discussed as part of WICG/webcomponents#758, and integrates with whatwg/html#4324.
Bugs for ElementInternals/attachInternals/disabledFeatures: I'll let tkent determine whether we want any more tracking bugs on the Blink side. |
…ls(), a=testonly Automatic update from web-platform-tests Update error type test for attachInternals() (#16856) Follows latest developments in whatwg/html#4324. -- wp5At-commits: dc4519e0a9b6a0b5f53e622a31b420cb22d3a100 wpt-pr: 16856
…ls(), a=testonly Automatic update from web-platform-tests Update error type test for attachInternals() (#16856) Follows latest developments in whatwg/html#4324. -- wp5At-commits: dc4519e0a9b6a0b5f53e622a31b420cb22d3a100 wpt-pr: 16856
…res'. This change is for whatwg/html#4324, and a follow-up of #15123 Bug: crbug.com/905922 Change-Id: I3eceb5d21ab555c23ed877ded17d359fe004e2aa Reviewed-on: https://chromium-review.googlesource.com/c/1482361 Auto-Submit: Kent Tamura <tkent@chromium.org> Reviewed-by: Hayato Ito <hayato@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#635380}
Follows latest developments in whatwg/html#4324.
…Element.attachInternals(), a=testonly Automatic update from web-platform-tests html,custom-elements: Add tests for HTMLElement.attachInternals() (#15123) Specification PR: whatwg/html#4324 -- wpt-commits: 4c70b5a6f3169400dc809ba540b8e4e425396b2d wpt-pr: 15123 UltraBlame original commit: 2f7275c284b18453bbbbfc0eb474542588bcb65e
…istry.html for 'disabledFeatures'., a=testonly Automatic update from web-platform-tests custom-elements: Update CustomElementRegistry.html for 'disabledFeatures'. This change is for whatwg/html#4324, and a follow-up of web-platform-tests/wpt#15123 Bug: crbug.com/905922 Change-Id: I3eceb5d21ab555c23ed877ded17d359fe004e2aa Reviewed-on: https://chromium-review.googlesource.com/c/1482361 Auto-Submit: Kent Tamura <tkentchromium.org> Reviewed-by: Hayato Ito <hayatochromium.org> Commit-Queue: Kent Tamura <tkentchromium.org> Cr-Commit-Position: refs/heads/master{#635380} -- wpt-commits: 1aa5413b0c0a03d3c93e07d18bf8cc78e19ca611 wpt-pr: 15516 UltraBlame original commit: 91b75e0e8324befa1731b448285c8bcc9411d410
…Element.attachInternals(), a=testonly Automatic update from web-platform-tests html,custom-elements: Add tests for HTMLElement.attachInternals() (#15123) Specification PR: whatwg/html#4324 -- wpt-commits: 4c70b5a6f3169400dc809ba540b8e4e425396b2d wpt-pr: 15123 UltraBlame original commit: fd7d7f58d4afb2159a5d7d55d94169932e464326
…istry.html for 'disabledFeatures'., a=testonly Automatic update from web-platform-tests custom-elements: Update CustomElementRegistry.html for 'disabledFeatures'. This change is for whatwg/html#4324, and a follow-up of web-platform-tests/wpt#15123 Bug: crbug.com/905922 Change-Id: I3eceb5d21ab555c23ed877ded17d359fe004e2aa Reviewed-on: https://chromium-review.googlesource.com/c/1482361 Auto-Submit: Kent Tamura <tkentchromium.org> Reviewed-by: Hayato Ito <hayatochromium.org> Commit-Queue: Kent Tamura <tkentchromium.org> Cr-Commit-Position: refs/heads/master{#635380} -- wpt-commits: 1aa5413b0c0a03d3c93e07d18bf8cc78e19ca611 wpt-pr: 15516 UltraBlame original commit: e89bf41687f50e862ace8bb7077aaa06e2f6a8b9
…ls(), a=testonly Automatic update from web-platform-tests Update error type test for attachInternals() (#16856) Follows latest developments in whatwg/html#4324. -- wp5At-commits: dc4519e0a9b6a0b5f53e622a31b420cb22d3a100 wpt-pr: 16856 UltraBlame original commit: a29b743876db0cb6b71a0b169456d98409803000
…Element.attachInternals(), a=testonly Automatic update from web-platform-tests html,custom-elements: Add tests for HTMLElement.attachInternals() (#15123) Specification PR: whatwg/html#4324 -- wpt-commits: 4c70b5a6f3169400dc809ba540b8e4e425396b2d wpt-pr: 15123 UltraBlame original commit: 2f7275c284b18453bbbbfc0eb474542588bcb65e
…istry.html for 'disabledFeatures'., a=testonly Automatic update from web-platform-tests custom-elements: Update CustomElementRegistry.html for 'disabledFeatures'. This change is for whatwg/html#4324, and a follow-up of web-platform-tests/wpt#15123 Bug: crbug.com/905922 Change-Id: I3eceb5d21ab555c23ed877ded17d359fe004e2aa Reviewed-on: https://chromium-review.googlesource.com/c/1482361 Auto-Submit: Kent Tamura <tkentchromium.org> Reviewed-by: Hayato Ito <hayatochromium.org> Commit-Queue: Kent Tamura <tkentchromium.org> Cr-Commit-Position: refs/heads/master{#635380} -- wpt-commits: 1aa5413b0c0a03d3c93e07d18bf8cc78e19ca611 wpt-pr: 15516 UltraBlame original commit: 91b75e0e8324befa1731b448285c8bcc9411d410
…Element.attachInternals(), a=testonly Automatic update from web-platform-tests html,custom-elements: Add tests for HTMLElement.attachInternals() (#15123) Specification PR: whatwg/html#4324 -- wpt-commits: 4c70b5a6f3169400dc809ba540b8e4e425396b2d wpt-pr: 15123 UltraBlame original commit: fd7d7f58d4afb2159a5d7d55d94169932e464326
…istry.html for 'disabledFeatures'., a=testonly Automatic update from web-platform-tests custom-elements: Update CustomElementRegistry.html for 'disabledFeatures'. This change is for whatwg/html#4324, and a follow-up of web-platform-tests/wpt#15123 Bug: crbug.com/905922 Change-Id: I3eceb5d21ab555c23ed877ded17d359fe004e2aa Reviewed-on: https://chromium-review.googlesource.com/c/1482361 Auto-Submit: Kent Tamura <tkentchromium.org> Reviewed-by: Hayato Ito <hayatochromium.org> Commit-Queue: Kent Tamura <tkentchromium.org> Cr-Commit-Position: refs/heads/master{#635380} -- wpt-commits: 1aa5413b0c0a03d3c93e07d18bf8cc78e19ca611 wpt-pr: 15516 UltraBlame original commit: e89bf41687f50e862ace8bb7077aaa06e2f6a8b9
…Element.attachInternals(), a=testonly Automatic update from web-platform-tests html,custom-elements: Add tests for HTMLElement.attachInternals() (#15123) Specification PR: whatwg/html#4324 -- wpt-commits: 4c70b5a6f3169400dc809ba540b8e4e425396b2d wpt-pr: 15123 UltraBlame original commit: 2f7275c284b18453bbbbfc0eb474542588bcb65e
…istry.html for 'disabledFeatures'., a=testonly Automatic update from web-platform-tests custom-elements: Update CustomElementRegistry.html for 'disabledFeatures'. This change is for whatwg/html#4324, and a follow-up of web-platform-tests/wpt#15123 Bug: crbug.com/905922 Change-Id: I3eceb5d21ab555c23ed877ded17d359fe004e2aa Reviewed-on: https://chromium-review.googlesource.com/c/1482361 Auto-Submit: Kent Tamura <tkentchromium.org> Reviewed-by: Hayato Ito <hayatochromium.org> Commit-Queue: Kent Tamura <tkentchromium.org> Cr-Commit-Position: refs/heads/master{#635380} -- wpt-commits: 1aa5413b0c0a03d3c93e07d18bf8cc78e19ca611 wpt-pr: 15516 UltraBlame original commit: 91b75e0e8324befa1731b448285c8bcc9411d410
…Element.attachInternals(), a=testonly Automatic update from web-platform-tests html,custom-elements: Add tests for HTMLElement.attachInternals() (#15123) Specification PR: whatwg/html#4324 -- wpt-commits: 4c70b5a6f3169400dc809ba540b8e4e425396b2d wpt-pr: 15123 UltraBlame original commit: fd7d7f58d4afb2159a5d7d55d94169932e464326
…istry.html for 'disabledFeatures'., a=testonly Automatic update from web-platform-tests custom-elements: Update CustomElementRegistry.html for 'disabledFeatures'. This change is for whatwg/html#4324, and a follow-up of web-platform-tests/wpt#15123 Bug: crbug.com/905922 Change-Id: I3eceb5d21ab555c23ed877ded17d359fe004e2aa Reviewed-on: https://chromium-review.googlesource.com/c/1482361 Auto-Submit: Kent Tamura <tkentchromium.org> Reviewed-by: Hayato Ito <hayatochromium.org> Commit-Queue: Kent Tamura <tkentchromium.org> Cr-Commit-Position: refs/heads/master{#635380} -- wpt-commits: 1aa5413b0c0a03d3c93e07d18bf8cc78e19ca611 wpt-pr: 15516 UltraBlame original commit: e89bf41687f50e862ace8bb7077aaa06e2f6a8b9
…ls(), a=testonly Automatic update from web-platform-tests Update error type test for attachInternals() (#16856) Follows latest developments in whatwg/html#4324. -- wp5At-commits: dc4519e0a9b6a0b5f53e622a31b420cb22d3a100 wpt-pr: 16856 UltraBlame original commit: a29b743876db0cb6b71a0b169456d98409803000
…ls(), a=testonly Automatic update from web-platform-tests Update error type test for attachInternals() (#16856) Follows latest developments in whatwg/html#4324. -- wp5At-commits: dc4519e0a9b6a0b5f53e622a31b420cb22d3a100 wpt-pr: 16856 UltraBlame original commit: a29b743876db0cb6b71a0b169456d98409803000
This fixes WICG/webcomponents#758
WPT: web-platform-tests/wpt#15123
WPT: web-platform-tests/wpt#15516
/custom-elements.html ( diff )
/dom.html ( diff )
/index.html ( diff )
/infrastructure.html ( diff )