Skip to content

Investigate failing math-element tree-construction tests #33

@sideshowbarker

Description

@sideshowbarker

We’re failing four test cases in https://github.com/html5lib/html5lib-tests/blob/master/tree-construction/math.dat (see below). I don’t understand why the Java parser is failing these but the Firefox parser isn’t.

These seem related to whatwg/html@8cf34ad “Handle foster-parenting of and elements”, which as far as I can see, we maybe never implemented support for in the Java sources — in which case, it would be expected to see the tests failing just as I’ve observed them to be.

But if so, it’s again a mystery to me why these tests would be passing in Firefox but not when run with the Java parser.

Data:
<math><tr><td><mo><tr>
Expected:
| <math math>
|   <math tr>
|     <math td>
|       <math mo>
Got:
| <math math>
|   <math tr>
|     <math td>
|       <math mo>
|   <math tr>
Expected errors:
Actual errors:
6: Start tag “math” seen in “table”.
22: End of file seen and there were open elements.
22: Unclosed element “tr”.
6: Unclosed element “math”.
-----------------------------------------
Data:
<math><thead><mo><tbody>
Expected:
| <math math>
|   <math thead>
|     <math mo>
Got:
| <math math>
|   <math thead>
|     <math mo>
|   <math tbody>
Expected errors:
Actual errors:
6: Start tag “math” seen in “table”.
24: End of file seen and there were open elements.
24: Unclosed element “tbody”.
6: Unclosed element “math”.
-----------------------------------------
Data:
<math><tfoot><mo><tbody>
Expected:
| <math math>
|   <math tfoot>
|     <math mo>
Got:
| <math math>
|   <math tfoot>
|     <math mo>
|   <math tbody>
Expected errors:
Actual errors:
6: Start tag “math” seen in “table”.
24: End of file seen and there were open elements.
24: Unclosed element “tbody”.
6: Unclosed element “math”.
-----------------------------------------
Data:
<math><tbody><mo><tfoot>
Expected:
| <math math>
|   <math tbody>
|     <math mo>
Got:
| <math math>
|   <math tbody>
|     <math mo>
|   <math tfoot>
Expected errors:
Actual errors:
6: Start tag “math” seen in “table”.
24: End of file seen and there were open elements.
24: Unclosed element “tfoot”.
6: Unclosed element “math”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions