#2013: Nested lists inherit their parents attributes (including id)
----------------------+-----------------------------------------------------
Reporter: simonbun | Type: Bug
Status: new | Priority: Normal
Milestone: | Component: Core : Lists
Version: | Keywords: nested, attributes, class, id
----------------------+-----------------------------------------------------
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
--
Ticket URL: <http://dev.fckeditor.net/ticket/2013>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac