[Webkit-unassigned] [Bug 13240] World of Warcraft site fails because it expects an implicit <tbody> as the first child of a <table>

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 30 23:21:19 PDT 2007


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


darin at apple.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|<table> nodes get <tbody>   |World of Warcraft site fails
                   |added automatically if      |because it expects an
                   |omitted (in IE)             |implicit <tbody> as the
                   |                            |first child of a <table>




------- Comment #2 from darin at apple.com  2007-03-30 23:21 PDT -------
Further, if there's whitespace at the start of the table, the <tbody> replaces
it instead of being added after it. So the <tbody> is the first child of the
table. That's what the code on the website depends on. It gets the table and
then calls childNodes[0].appendChild to add a row to the table. This relies on
the table body being node 0. But the markup has whitespace, something like
this:

    <table>
    <tr></tr>
    </table>

IE adds the <tbody> and seems to discard the whitespace! I'm not sure what we
can do to be compatible with a site like this.


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