Opened 9 years ago

#1341 new defect

Stylist produces bad markup and leaves a trail of empty tags

Reported by: nicholasbs Owned by:
Priority: normal Milestone: Version 1.0
Component: Plugins Version: trunk
Severity: normal Keywords:


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.

Change History (0)

Note: See TracTickets for help on using tickets.