Comments (5)
The use cases for some of these attributes (ex. spellcheck
, writingsuggestions
, translate
) inheriting across shadow boundaries seem more compelling than for contenteditable
, so I'm not sure if aligning with contenteditable
's behavior for all of them is the right choice.
Could you also share more context into why the choice was made to disallow contenteditable
from inheriting across shadow boundaries?
from html.
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?
from html.
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 false
on the document element. As currently spec'ed, if authors want to also turn off the feature in shadow trees, they would have to explicitly set the spellcheck
attribute inside each shadow tree. If inheritance worked across shadow boundaries, they would be able to realize this intent more simply.
from html.
@smaug---- @emilio If we were to update the spec to allow inheritance across shadow boundaries, would Firefox be able to adopt that behavior?
from html.
Based on https://searchfox.org/wubkat/commit/6e1c9b06a562ecfc8363f93f0eb36d9bcd8f2631 this seems like a 13yo bug.
As @rniwa pointed out to me not inheriting contenteditable
across tree boundaries was a deliberate choice. These attributes should follow that. I suggest we add tests for spellcheck
and get this fixed.
from html.
Related Issues (20)
- Should dir=auto with no strong characters inherit directionality from parent or be ltr? HOT 10
- Navigation: DocumentState request referrer is not set for about:srcdoc
- `<callout>` element for callouts/alerts/admonitions HOT 35
- Proposal: HTML Attribute to state non-consent when scraping for training datasets HOT 1
- Can a task throw exceptions? HOT 2
- "run a classic script" returns completion records and throws HOT 1
- Session history step of top level navigable when child navigables traverse history HOT 1
- Should there be an opt-out for declarative shadow roots having `clonable=true`? HOT 27
- Should `<a target="_blank">` and `window.open` consume the transient activation? HOT 2
- `<img sizes="auto, 100px" loading="eager">`: `auto` equates to `100wv` but should ideally be ignored
- Constrain OffscreenCanvas with a placeholder canvas element HOT 8
- A way to run code before the next frame HOT 8
- New attribute for avoiding to autocapitalize text input fields HOT 1
- Autocomplete attribute value to indicate form input is third-party data
- Improve API of `insertAdjacent*()` methods HOT 2
- Why does popover hide when the popover attribute changed HOT 4
- Read-only state for buttons? HOT 6
- Upcoming WHATNOT meeting on 2/22/2024 HOT 5
- attribute change steps for popover may fire events synchronously HOT 6
- Update UA stylesheet rules to use `:any-link` instead of `:visited` or `:link` HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html.