[EMAIL PROTECTED] wrote:
> I've noticed a problem with IE.
> Given the following DOM js:
>
> var td=TD({'align':'center','colspan':'4'}, .... );
>
> The td element does not render correctly with a colspan of 4. This is
> because the html created in IE uses mixed case attributes as follows:
>
> >toHTML(td);
> <td align="center" colSpan="" colspan="4" bgColor="" ... etc>
>
> IE uses the 1st colSpan attr instead of the 2nd colspan. This can of
> course be fixed by changing the code to be:
>
> var td=TD({'align':'center','colSpan':'4'},....);
>
> Should the programmer be in charge of doing that though?
Probably not, and MochiKit already has a section of code that works
around this IE retardedness. Plus, if you just rename your colspan
attribute to be the camelCased version (i.e. "colSpan") then Firefox
and Safari will break on your code.
A really cheesy workaround is to specify both attributes, like this:
var td = TD({'align':'center','colspan':'4','colSpan':'4'},....);
It's worth noting that IE 7.0 is just as broken as IE 6.0 in this
regard.
--sgp
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---