[Webkit-unassigned] [Bug 16309] List elements created in contentEditable gets an incorrect id attribute
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Dec 11 00:15:14 PST 2007
http://bugs.webkit.org/show_bug.cgi?id=16309
------- Comment #2 from justin.garcia at apple.com 2007-12-11 00:15 PDT -------
The originator wrote: "When you create list elements in a contentEditable area
the id of the new list will have the value false. The result is: <ol
id="false">... when it should be a normal list like <ol>...."
The test case does:
document.execCommand('InsertUnorderedList', false, false);
The third argument for this command is "optional and specifies an id attribute
for the unordered list. [It] may be set to null or omitted" according to the
MSDN documentation. The boolean false as a string is "false" so it makes since
to me that you would see a list with id="false". If you want an id-less list
you should omit the third argument or pass null for it.
I sent an email to Johan about this. I'll leave this open until I hear back
from him.
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list