</tbody></table>
!! end
-
-# PHP throws away the (semi-broken) "foo" class here; Parsoid
-# preserves it.
!!test
Parsoid: Recover better from broken table attributes
!!options
foo
|}
!!html/php+tidy
-<table>
+<table class="foo">
<tr>
<td class="bar">
<p>foo</p>
</div>
<h2><span class="mw-headline" id="Hello"><sup class="in-h2">Hello</sup></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Hello">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
-<h2><span class="mw-headline" id="b.22.3EEvilbye"><sup> b">Evilbye</sup></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: b">Evilbye">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
+<h2><span class="mw-headline" id="b.22.3EEvilbye"><sup class="a"> b">Evilbye</sup></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: b">Evilbye">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
!! end
!! wikitext
<span title="Hello world>Foo</span>
!! html/php
-<p><span>Foo</span>
-</p>
-!! html/parsoid
<p><span title="Hello world">Foo</span>
</p>
-!! end
-
-!! test
-Parsoid-only: HTML tag with broken attribute value quoting
-!! options
-parsoid
-!! wikitext
-<span title="Hello world>Foo</span>
-!! html
+!! html/parsoid
<p><span title="Hello world">Foo</span>
</p>
!! end
!! html/php
<table>
<tr>
-<td>Foo
+<td title="Hello world">Foo
</td></tr></table>
!! html/parsoid
!! html/php
<table>
<tr>
-<td>Foo
+<td title="Hello world">Foo
</td>
-<td>Bar
+<td style="color:red">Bar
</td></tr></table>
!! html/parsoid