Ticket #1341 (new defect)
Opened 4 years ago
Stylist produces bad markup and leaves a trail of empty tags
|Reported by:||nicholasbs||Owned by:|
Select a few words and apply a style. Then (additionally) select a few more adjacent words and apply the same style. Ideally, this would apply the style just once, as Stylist would be smart enough to combine elements, remove redundant or unnecessary markup, etc.
For example, Stylist produces the following code (FF3) after applying the "bluetext" style to the selection "This is" and then applying the same style to the entire string "This is a test"
<span class="bluetext"></span><span class="bluetext"><span class="bluetext">This is</span> a test</span>
It would be much nicer if Stylist simply produced this:
<span class="bluetext">This is a test</span>
Not sure how much of this is browser-dependent.