Skip to content
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: Should throw exception when Element.editContext is set to specific elements? #14

Closed
masayuki-nakano opened this issue Sep 28, 2021 · 2 comments

Comments

@masayuki-nakano
Copy link

I wonder, accepting EditContext with void elements like <br> and text control elements like <input> and <textarea> makes things complicated. Perhaps, setting editContext of such elements should throw exception?

@alexkeng
Copy link
Contributor

alexkeng commented Sep 30, 2021

That's good point. We'll work out a list of supported elements and add it in spec

@travisleithead travisleithead transferred this issue from w3c/editing Apr 21, 2022
@dandclark
Copy link
Contributor

I believe this was resolved in these issues: #19 #40. In https://w3c.github.io/edit-context/#extensions-to-the-htmlelement-interface we'll throw if the element isn't one of the supported ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants