-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
What is the issue with the Quirks Mode Standard?
According to the HTML specification (but not the quirks mode specification), a table cell's rowspan of 0 in quirks mode is treated as 1.
From https://html.spec.whatwg.org/multipage/tables.html#algorithm-for-processing-rows step 10:
If rowspan is zero and the table element's node document is not set to quirks mode, then let cell grows downward be true, and set rowspan to 1. Otherwise, let cell grows downward be false.
In the following test case:
<body>
<table>
<tr>
<td id="foo" rowspan="0">hello</td>
</tr>
</table>
</body>
<script>
console.log(document.getElementById('foo').rowSpan);
</script>
Chrome outputs 0, while Firefox outputs 1. The specification doesn't explicitly comment on how this value should be reflected in script. From my reading, it seems like the value of the rowSpan
should be 0 as the specification only indicates that the temporary value rowspan
should be changed.
Metadata
Metadata
Assignees
Labels
No labels