On Dec 5, 2005, at 9:53 AM, qvx wrote:

This is the code that I try inside interactive window on MochiKit site:

  t=TABLE(null, TR(null, map(partial(TD,null), ["hello!", "how are
you?", "fine"])))
  writeln(t)

It works in firefox but not in IE 6.0.
And also, toHTML(t) return clean HTML inside Firefox, and lots of extra
table attributes inside IE.

Welcome to Internet Explorer! Guess what, it sucks. This is normal IE behavior.

You need to use THEAD/TFOOT/TBODY when creating DOM tables with IE. IE also pulls default DOM attributes out of its ass, so that's why all that stuff shows up in toHTML. MochiKit currently only works around the dumb default attributes that appear in all tags.

-bob

Reply via email to