Reproduced with trunk build 20021023 and NS7.0 1. launch Composer 2. type aaabbbbcccc 3. select all the "c" characters 4. create a link, target "c" 5. then select all the "b" characters 6. create a link, target "b" Expected result: aaa<a href="b">bbbb</a><a href="c">cccc</a> Actual result: aaa<a href="c"><a href="b">bbbb</a>cccc</a> Hint: the HTML4 content model for A excludes A (section 12.2 of spec) <!ELEMENT A - - (%inline;)* -(A) -- anchor -->
Created attachment 103968 [details] [diff] [review] Joe, is this simple patch the correct way to fix this bug ?
I've discussed this with Daniel. I'm worried this fix will disable merging of like styles in some cases. I think the core issue is that we are putting in the <a> tags before we have the href. Offhand I can't think of any good reason for that. So I suggest we look into changing that, which should have the effect of fixing this bug.
EDITORBASE+ topembed+ normalization
Daniel can you take a look.