-
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
Inheritance with shadow DOM for spellcheck
attribute
#10050
Comments
So Firefox follows the current spec - root element in shadow DOM doesn't have a parent element. What would be the use case to inherit? |
This was discussed during a WHATNOT call in the context of #9065. One use case for inheritance is to allow authors to turn off spellcheck for the whole document by setting the attribute to |
@smaug---- @emilio If we were to update the spec to allow inheritance across shadow boundaries, would Firefox be able to adopt that behavior? |
Based on https://searchfox.org/wubkat/commit/6e1c9b06a562ecfc8363f93f0eb36d9bcd8f2631 this seems like a 13yo bug. As @rniwa pointed out to me not inheriting |
The use cases for some of these attributes (ex. Could you also share more context into why the choice was made to disallow |
The spec for the
spellcheck
attribute does not explicitly define whether the attribute should inherit across shadow boundaries. Unfortunately, browsers also don't seem to be interoperable in this aspect - Chromium/WebKit do allow thespellcheck
attribute to inherit across shadow boundaries while Mozilla does not.Filing this issue to explore whether interoperability can be achieved and whether a spec update can be made to clarify this behavior.
cc: @mfreed7 @domenic @marcoscaceres @smaug----
The text was updated successfully, but these errors were encountered: