[Webkit-unassigned] [Bug 12249] FCKeditor: <hr>, <ul> and <ol> have id="undefined"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Mar 10 15:12:52 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=12249





------- Comment #12 from fredck at fredck.com  2007-03-10 15:12 PDT -------
The FCKeditor implementation could be reduced to something like this:

----

function ExecCommand( command, commandParam )
{
    document.execCommand( command, false, commandParam ) ;
}

ExecCommand('InsertHorizontalRule') ;

----

Obviously the implementation is much more complex than that, but the essence is
that we have a generic ExecCommand that is called for all execCommand needs.

In the above case, commandParam is "undefined". By ECMA definition, "undefined
== null". Calling back the execCommand definition for InsertHorizontalRule, the
second and third parameters may be omitted or *set to null*.

I believe this is the way IE understands it, as it doesn't produce a
id="undefined", and I think it would be the right approach to not behave
differently.


-- 
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