-
Notifications
You must be signed in to change notification settings - Fork 10
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
EditContext: supported element list seems somewhat arbitrary #19
Comments
I asked the spec editors about this and it sounds like it was basically a placeholder, hand-picked from the flow content elements where any elements that were seen as tricky (e.g. So we need to better formalize this. At a minimum we need to support I'm having a hard time finding an existing element list in the HTML spec that fits our needs. The list of We could name this list in the DOM spec, and then from the EditContext spec state that EditContext works with the "attachShadow list" + But thinking about this made me realize we have a further issue, where the spec doesn't say what happens when someone tries to assign to So I see 3 options to consider: I don't like option (C) because it could lead to some strange interactions: how should EditContext work for an Option (B) looks better than (A) if the list of elements we want to support is on the smaller side. Feedback on all the above would be very helpful, cc @alexkeng @snianu @chrishtr @annevk @masayuki-nakano I'd also like to raise this on Thursday's meeting if there's time. |
Why is the association API on the element instance and not the (A seems reasonable to me, especially if we follow |
There’s no interface more derived than |
The current design parallels
Yeah, for this option we'd need to either add property API to each element interface individually, or define a mixin that they could all pull in. |
The interface used for those I listed is (Similarly, * I don’t think it could be backwards compatible. Consider |
Oops, you're right. I agree that option is probably off the table then. The API will have to be either on |
In today's EditingWG meeting we resolved to adopt the "shadow root elements" list plus I will prepare a PR to the DOM spec to refactor the shadow root element list into something we can reference from the EditContext spec. There is still an open question of what happens when someone tries to use an unsupported element.
|
@dandclark will custom elements be permitted as edit context “hosts” too, as with shadow roots? |
That's my expectation, yes. |
Pasting the notes from the 5/11/2023 Editing WG meeting, where we resolved to go with the
I'll submit a DOM spec PR to make the |
In w3c/edit-context#19 the Editing WG resolved that EditContext would support the same element types as shadow root, plus `<canvas>`. Update the implementation accordingly. See also the updated spec at [2]. [1] w3c/edit-context#19 [2] https://w3c.github.io/edit-context/#extensions-to-the-htmlelement-interface Bug: 999184 Change-Id: I2a8a040a279e14e9b98ece3370acdbdd8c3597ab
In w3c/edit-context#19 the Editing WG resolved that EditContext would support the same element types as shadow root, plus `<canvas>`. Update the implementation accordingly. See also the updated spec at [2]. [1] w3c/edit-context#19 [2] https://w3c.github.io/edit-context/#extensions-to-the-htmlelement-interface Bug: 999184 Change-Id: I2a8a040a279e14e9b98ece3370acdbdd8c3597ab
In w3c/edit-context#19 the Editing WG resolved that EditContext would support the same element types as shadow root, plus `<canvas>`. Update the implementation accordingly. See also the updated spec at [2]. [1] w3c/edit-context#19 [2] https://w3c.github.io/edit-context/#extensions-to-the-htmlelement-interface Bug: 999184 Change-Id: I2a8a040a279e14e9b98ece3370acdbdd8c3597ab Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4617146 Reviewed-by: Koji Ishii <[email protected]> Reviewed-by: Alex Keng <[email protected]> Commit-Queue: Dan Clark <[email protected]> Cr-Commit-Position: refs/heads/main@{#1158908}
In w3c/edit-context#19 the Editing WG resolved that EditContext would support the same element types as shadow root, plus `<canvas>`. Update the implementation accordingly. See also the updated spec at [2]. [1] w3c/edit-context#19 [2] https://w3c.github.io/edit-context/#extensions-to-the-htmlelement-interface Bug: 999184 Change-Id: I2a8a040a279e14e9b98ece3370acdbdd8c3597ab Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4617146 Reviewed-by: Koji Ishii <[email protected]> Reviewed-by: Alex Keng <[email protected]> Commit-Queue: Dan Clark <[email protected]> Cr-Commit-Position: refs/heads/main@{#1158908}
In w3c/edit-context#19 the Editing WG resolved that EditContext would support the same element types as shadow root, plus `<canvas>`. Update the implementation accordingly. See also the updated spec at [2]. [1] w3c/edit-context#19 [2] https://w3c.github.io/edit-context/#extensions-to-the-htmlelement-interface Bug: 999184 Change-Id: I2a8a040a279e14e9b98ece3370acdbdd8c3597ab Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4617146 Reviewed-by: Koji Ishii <[email protected]> Reviewed-by: Alex Keng <[email protected]> Commit-Queue: Dan Clark <[email protected]> Cr-Commit-Position: refs/heads/main@{#1158908}
…es, a=testonly Automatic update from web-platform-tests [EditContext] Limit to valid element types In w3c/edit-context#19 the Editing WG resolved that EditContext would support the same element types as shadow root, plus `<canvas>`. Update the implementation accordingly. See also the updated spec at [2]. [1] w3c/edit-context#19 [2] https://w3c.github.io/edit-context/#extensions-to-the-htmlelement-interface Bug: 999184 Change-Id: I2a8a040a279e14e9b98ece3370acdbdd8c3597ab Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4617146 Reviewed-by: Koji Ishii <[email protected]> Reviewed-by: Alex Keng <[email protected]> Commit-Queue: Dan Clark <[email protected]> Cr-Commit-Position: refs/heads/main@{#1158908} -- wpt-commits: 6388bf5fd752f0735e9bfc71196115c082e2b75e wpt-pr: 40558
…es, a=testonly Automatic update from web-platform-tests [EditContext] Limit to valid element types In w3c/edit-context#19 the Editing WG resolved that EditContext would support the same element types as shadow root, plus `<canvas>`. Update the implementation accordingly. See also the updated spec at [2]. [1] w3c/edit-context#19 [2] https://w3c.github.io/edit-context/#extensions-to-the-htmlelement-interface Bug: 999184 Change-Id: I2a8a040a279e14e9b98ece3370acdbdd8c3597ab Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4617146 Reviewed-by: Koji Ishii <[email protected]> Reviewed-by: Alex Keng <[email protected]> Commit-Queue: Dan Clark <[email protected]> Cr-Commit-Position: refs/heads/main@{#1158908} -- wpt-commits: 6388bf5fd752f0735e9bfc71196115c082e2b75e wpt-pr: 40558
Could you please explain what this list is based on? I think that ideally we reduce the number of "magic" HTML element lists.
cc @domenic
The text was updated successfully, but these errors were encountered: