Add `nsINode::IsInDesignMode()`
Categories
(Core :: DOM: Core & HTML, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox95 | --- | fixed |
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
Attachments
(1 file)
There are a lot of check of Document
's editable state with comments. This means that it's unclear for developers that only Document
node is editable in design mode.
Additionally, there are some points which use composed document rather than uncomposed document even though the raw level API uses uncomposed document. I'm not sure using uncomposed document is right or not, but we should do same check everywhere.
Therefore, nsINode
should have a method to check whether it's in design mode or not.
Assignee | ||
Comment 1•2 years ago
|
||
There are a lot of check of Document
's editable state with comments. This
means that it's unclear for developers that only Document
node is editable in
design mode.
Additionally, there are some points which use composed document rather than
uncomposed document even though the raw level API uses uncomposed document. I'm
not sure using uncomposed document is right or not, but we should do same check
everywhere at least.
Therefore, nsINode
should have a method to check whether it's in design mode
or not.
Updated•2 years ago
|
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/680ebfd6ee37 Add `nsINode::IsInDesignMode()` to check whether the node is directly in design mode r=smaug
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/31198 for changes under testing/web-platform/tests
Comment 4•2 years ago
|
||
bugherder |
Upstream PR merged by moz-wptsync-bot
Description
•