﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2013	Nested lists inherit their parents attributes (including id)	simonbun		"Best explained with an example:


{{{
<ul id=""foo"" class=""bar"">
  <li>Item1</li>
  <li>Item2</li>
</ul>
}}}

When increasing the indent on Item2 so it becomes a sublist of Item1, it somehow inherits the original list's id & class...like so:


{{{
<ul id=""foo"" class=""bar"">
  <li>Item1
    <ul id=""foo"" class=""bar"">
      <li>Item2</li>
    </ul>
  </li>
</ul>
}}}

Which is pretty bad, especially for the id.


On a related note: adding an item to the list below causes the item's class to be copied. In this case the id is not copied, luckily.

{{{
<ul>
  <li id=""foo"" class=""bar"">Item1</li>
</ul>
}}}

{{{
<ul>
  <li id=""foo"" class=""bar"">Item1</li>
  <li class=""bar"">Item2</li>
</ul>
}}}


I'm not sure I understand the reasoning behind copying attributes of parents / siblings. It seems to me that it should at least be configurable behavior. Then again, there might be a catch that I'm missing.

regards,
Simon"	Bug	closed	Normal		Core : Lists	FCKeditor 2.6 RC	worksforme		fck@…
