<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] W3C CSS2.1 anonymous table tests are failing"
   href="https://bugs.webkit.org/show_bug.cgi?id=152455">152455</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[GTK] W3C CSS2.1 anonymous table tests are failing
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>WebKit Gtk
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mcatanzaro&#64;igalia.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>bugs-noreply&#64;webkitgtk.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>We need to add GTK expectations for the W3C CSS2.1 anonymous table tests added in r190893, but all the tests are currently failing. It is expected that no red text appear, but there is lots of red text. The problem is probably related to this nasty problem (output taken from table-anonymous-objects-015.xht):

CONSOLE MESSAGE: line 12: SyntaxError: Unexpected token '&lt;'
CONSOLE MESSAGE: line 20: ReferenceError: Can't find variable: doTest

i.e. the GTK port is choking on this section of the test:

    &lt;script type=&quot;text/javascript&quot;&gt;&lt;![CDATA[
      function doTest() {
        var s = document.getElementById(&quot;s&quot;);
        s.disabled = true;
        document.documentElement.className = &quot;&quot;;
      }
    ]]&gt;&lt;/script&gt;

I had not seen CDATA before today, but I guess the problem is that the GTK port is trying to handle this as an HTML document instead of as an XHTML document. It is probably relevant that shared-mime-info detects the MIME type of the test file as text/html (check with the file properties dialog in nautilus), whereas for our other XHTML layout tests it detects the MIME type as application/xhtml+xml. So maybe the test is not valid XHTML for some reason, but I think more likely we are misdetecting the MIME type. (Do we use shared-mime-info for that?)

Hey Carlos Lopez, what is your preferred way to handle this situation? I hesitate to add expectations now as that would make the tests pass incorrectly.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>