Form in Form / Nested Forms (2)
bearbeitet von ursus contionabundo> Zeig mir bitte konkret eine Stelle in der Spec, die dem Parser die Wahl zwischen Weg A und Weg B lässt. Ansonsten hab ich auf diesen Unsinn keine Lust mehr.
[Nanu? Das hab ich doch schon am Anfang der Diskussion verlinkt](https://w3c.github.io/html/syntax.html#the-in-cell-insertion-mode).
Zitat:
> If the stack of open elements does not have an element in table scope that is an HTML element with the same tag name as that of the token, then this is a parse error; ignore the token.
> Otherwise:
> Generate implied end tags.
Daraus folgt: aus
~~~html,bad
<table>
<tbody>
<tr>
<td>Hallo<td>Welt!</td>
</tr>
</tbody>
</table>
~~~
kann
~~~html,good
<table>
<tbody>
<tr>
<td>Hallo</td><td>Welt!</td>
</tr>
</tbody>
</table>
~~~
oder
~~~html,good
<table>
<tbody>
<tr>
<td>HalloWelt!</td>
</tr>
</tbody>
</table>
~~~
werden. **Also erzeugen zwei "unkaputte", der Spec sauber folgende Browser aus demselben HTML-Code unterschiedliche DOMs.**
Form in Form / Nested Forms (2)
bearbeitet von ursus contionabundo> Zeig mir bitte konkret eine Stelle in der Spec, die dem Parser die Wahl zwischen Weg A und Weg B lässt. Ansonsten hab ich auf diesen Unsinn keine Lust mehr.
[Nanu? Das hab ich doch schon am Anfang der Diskussion verlinkt](https://w3c.github.io/html/syntax.html#the-in-cell-insertion-mode).
Zitat:
> If the stack of open elements does not have an element in table scope that is an HTML element with the same tag name as that of the token, then this is a parse error; ignore the token.
> Otherwise:
> Generate implied end tags.
Daraus folgt: aus
~~~html,bad
<table>
<tbody>
<tr>
<td>Hallo<td>Welt!</td>
</tr>
<tbody>
<table>
~~~
kann
~~~html,good
<table>
<tbody>
<tr>
<td>Hallo</td><td>Welt!</td>
</tr>
</tbody>
</table>
~~~
oder
~~~html,good
<table>
<tbody>
<tr>
<td>HalloWelt!</td>
</tr>
</tbody>
</table>
~~~
werden. **Also erzeugen zwei "unkaputte", der Spec sauber folgende Browser aus demselben HTML-Code unterschiedliche DOMs.**
Form in Form / Nested Forms (2)
bearbeitet von ursus contionabundo> Zeig mir bitte konkret eine Stelle in der Spec, die dem Parser die Wahl zwischen Weg A und Weg B lässt. Ansonsten hab ich auf diesen Unsinn keine Lust mehr.
[Nanu? Das hab ich doch schon am Anfang der Diskussion verlinkt](https://w3c.github.io/html/syntax.html#the-in-cell-insertion-mode).
Zitat:
> If the stack of open elements does not have an element in table scope that is an HTML element with the same tag name as that of the token, then this is a parse error; ignore the token.
> Otherwise:
> Generate implied end tags.
Daraus folgt: aus
~~~html,bad
<table>
<tbody>
<tr>
<td>Hallo<td>Welt!</td>
</tr>
<tbody>
<table>
~~~
kann
~~~html,good
<table>
<tbody>
<tr>
<td>Hallo</td><td>Welt!</td>
</tr>
</tbody>
</table>
~~~
oder
~~~html,good
<table>
<tbody>
<tr>
<td>HalloWelt!</td>
</tr>
</tbody>
</table>
~~~
werden.
Form in Form / Nested Forms (2)
bearbeitet von ursus contionabundo> Zeig mir bitte konkret eine Stelle in der Spec, die dem Parser die Wahl zwischen Weg A und Weg B lässt. Ansonsten hab ich auf diesen Unsinn keine Lust mehr.
[Nanu? Das hab ich doch schon am Anfang der Diskussion verlinkt](https://w3c.github.io/html/syntax.html#the-in-cell-insertion-mode).
Zitat:
> If the stack of open elements does not have an element in table scope that is an HTML element with the same tag name as that of the token, then this is a parse error; ignore the token.
> Otherwise:
> Generate implied end tags.
Damit folgt aus:
~~~html,bad
<table>
<tbody>
<tr>
<td>Hallo<td>Welt!</td>
</tr>
<tbody>
<table>
~~~
kann
~~~html,good
<table>
<tbody>
<tr>
<td>Hallo</td><td>Welt!</td>
</tr>
</tbody>
</table>
~~~
oder
~~~html,good
<table>
<tbody>
<tr>
<td>HalloWelt!</td>
</tr>
</tbody>
</table>
~~~
werden.
Form in Form / Nested Forms (2)
bearbeitet von ursus contionabundo> Zeig mir bitte konkret eine Stelle in der Spec, die dem Parser die Wahl zwischen Weg A und Weg B lässt. Ansonsten hab ich auf diesen Unsinn keine Lust mehr.
[Nanu? Das hab ich doch schon am Anfang der Diskussion verlinkt](https://w3c.github.io/html/syntax.html#the-in-cell-insertion-mode).
Zitat:
> If the stack of open elements does not have an element in table scope that is an HTML element with the same tag name as that of the token, then this is a parse error; ignore the token.
> Otherwise:
> Generate implied end tags.
Form in Form / Nested Forms (2)
bearbeitet von ursus contionabundo> Zeig mir bitte konkret eine Stelle in der Spec, die dem Parser die Wahl zwischen Weg A und Weg B lässt. Ansonsten hab ich auf diesen Unsinn keine Lust mehr.
[Hab ich schon mal verlinkt](https://w3c.github.io/html/syntax.html#the-in-cell-insertion-mode).
Zitat:
> If the stack of open elements does not have an element in table scope that is an HTML element with the same tag name as that of the token, then this is a parse error; ignore the token.
> Otherwise:
> Generate implied end tags.