﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2493	Issues with styles in version 2.6.3	flavertu@cybergeneration.com		"I've been encountering very odd behaviour with styles. I created this simple file:

    
{{{
    <Styles>
      <Style name=""Image popup"" element=""a"">
        <Attribute name=""class"" value=""lightbox"" />
      </Style>
    </Styles>
}}}

In 2.6.3, the style is shown even on simple text, without selected area. Trying to apply with no selection doesn't change anything, of course. Selecting text, creating a link out of it, then trying to apply the style doesn't do anything either, which is more annoying. However, after creating this test style:



{{{
    <Style name=""Test"" element=""h2"">
      <Attribute name=""class"" value=""test"" />
    </Style>
}}}



I could do this: select few words, apply the style ""Test"". The whole line became surrounded by the tag h2 class=""test"", which seems rather logical. Then, selecting the ""Image popup"" style creates the a class=""lightbox"" tag nested into h2 !?

Test: Windows XP, IE6, IE7, Firefox 3.0.1, Safari 3.1.2
Regards,
"	Bug	closed	Normal		General		duplicate		flavertu@…
