[Webkit-unassigned] [Bug 152455] New: [GTK] W3C CSS2.1 anonymous table tests are failing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 18 18:04:30 PST 2015


            Bug ID: 152455
           Summary: [GTK] W3C CSS2.1 anonymous table tests are failing
    Classification: Unclassified
           Product: WebKit
           Version: Other
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Gtk
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mcatanzaro at igalia.com
                CC: bugs-noreply at webkitgtk.org

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 '<'
CONSOLE MESSAGE: line 20: ReferenceError: Can't find variable: doTest

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

    <script type="text/javascript"><![CDATA[
      function doTest() {
        var s = document.getElementById("s");
        s.disabled = true;
        document.documentElement.className = "";

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.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151219/86b65631/attachment.html>

More information about the webkit-unassigned mailing list