script: Implement removeFormat command - #44710
Conversation
|
🔨 Triggering try run (#25309727310) for Linux (WPT) |
|
Test results for linux-wpt from try job (#25309727310): Flaky unexpected result (27)
Stable unexpected results that are known to be intermittent (16)
Stable unexpected results (1)
|
|
|
1cce8a4 to
2cc2af6
Compare
|
Decided to defer the other fix to a separate PR, as to not muck with this one. Investigating now what's going on with that. |
|
|
||
| /// <https://w3c.github.io/editing/docs/execCommand/#removeformat-candidate> | ||
| fn is_remove_format_candidate(element: &Element) -> bool { | ||
| // > A removeFormat candidate is an editable HTML element with local name |
There was a problem hiding this comment.
Are we checking the editable condition anywhere?
There was a problem hiding this comment.
It's implied by for_each_effectively_contained_child. I am actually going to update that logic in a future PR to change these to asserts, since they are implied by all the logic surrounding. That should speed up things, as we are currently checking the same invariants over and over, which isn't necessary for runtime.
This is the last inline formatting command. It also fixes an issue with effectively contained nodes not including the parents of a fully selected text node. The result is that now more correct HTML is generated, but several query results now are wrong as the selection is incorrectly updated. I need to investigate further why that is happening. Part of servo#25005 Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
56e917e to
4cb67b7
Compare
https://github.com/servo/servo/actions/runs/25383651088/job/74440354414 |
This is the last inline formatting command. It also fixes an issue with effectively contained nodes not including the parents of a fully selected text node.
The result is that now more correct HTML is generated, but several query results now are wrong as the selection is incorrectly updated. I need to investigate further why that is happening.
Part of #25005
Testing: WPT