Windows 10 Qt6, no add-ons, 24.10 beta2. This issue does not occur in beta1.
There appears to be a regression with the Editor’s “Remove Formatting” (Ctrl + R). All HTML tags inside the ones currently being removed are also removed, even when they shouldn’t be.
For example:
<b>this is an <a href="foo">example</a></b>is changed toexample(not expected).- While
this is an <a href="foo"><b>example</b></a>becomesthis is an <a href="foo">example</a>(as expected).
The same happens when styling is removed using the specific button or shortcut. For example, using Ctrl+A → Ctrl+B → Ctrl+B (applying and then removing the <b></b> tag) on HTML like this is a <a href="foo">test string</a> results in this is a test string.
Curiously, tags that have a class attribute seem to be unaffected, while all other attributes I’ve tested do not seem to provide any “protection”.
For example:
<b><a href="foo" class="myClass">Some Text</a></b>changes to<a href="foo" class="myClass">Some Text</a>.- While
<b><a href="foo" id="myId">Some Text</a></b>becomesSome Text.
(I only included <a></a> tags in my examples, but the same behavior occurs with all other tags I’ve tested.)