This document shows the result of PH5P when run against HTML5Lib’s testsuite.
Data: Test Result: | <html> | <head> | <body> | "Test" Expected: | <html> | <head> | <body> | "Test"
Data: <p>One<p>Two Result: | <html> | <head> | <body> | <p> | "One" | <p> | "Two" Expected: | <html> | <head> | <body> | <p> | "One" | <p> | "Two"
Data: Line1<br>Line2<br>Line3<br>Line4 Result: | <html> | <head> | <body> | "Line1" | <br> | "Line2" | <br> | "Line3" | <br> | "Line4" Expected: | <html> | <head> | <body> | "Line1" | <br> | "Line2" | <br> | "Line3" | <br> | "Line4"
Data: <html> Result: | <html> Expected: | <html> | <head> | <body>
Data: <head> Result: | <html> | <head> Expected: | <html> | <head> | <body>
Data: <body> Result: | <html> | <head> | <body> Expected: | <html> | <head> | <body>
Data: <html><head> Result: | <html> | <head> Expected: | <html> | <head> | <body>
Data: <html><head></head> Result: | <html> | <head> Expected: | <html> | <head> | <body>
Data: <html><head></head><body> Result: | <html> | <head> | <body> Expected: | <html> | <head> | <body>
Data: <html><head></head><body></body> Result: | <html> | <head> | <body> Expected: | <html> | <head> | <body>
Data: <html><head><body></body></html> Result: | <html> | <head> | <body> Expected: | <html> | <head> | <body>
Data: <html><head></body></html> Result: | <html> | <head> | <body> Expected: | <html> | <head> | <body>
Data: <html><head><body></html> Result: | <html> | <head> | <body> Expected: | <html> | <head> | <body>
Data: <html><body></html> Result: | <html> | <head> | <body> Expected: | <html> | <head> | <body>
Data: <body></html> Result: | <html> | <head> | <body> Expected: | <html> | <head> | <body>
Data: <head></html> Result: | <html> | <head> | <body> Expected: | <html> | <head> | <body>
Data: </head> Result: | <html> Expected: | <html> | <head> | <body>
Data: </body> Result: | <html> Expected: | <html> | <head> | <body>
Data: </html> Result: | <html> | <head> | <body> Expected: | <html> | <head> | <body>
Data: <b><table><td><i></table> Result: | <html> | <head> | <body> | <b> | <table> | <tbody> | <tr> | <td> | <i> Expected: | <html> | <head> | <body> | <b> | <table> | <tbody> | <tr> | <td> | <i>
Data: <b><table><td></b><i></table>X Result: | <html> | <head> | <body> | <b> | <table> | <tbody> | <tr> | <td> | <i> | "X" Expected: | <html> | <head> | <body> | <b> | <table> | <tbody> | <tr> | <td> | <i> | "X"
Data: <h1>Hello<h2>World Result: | <html> | <head> | <body> | <h1> | "Hello" | <h2> | "World" Expected: | <html> | <head> | <body> | <h1> | "Hello" | <h2> | "World"
Data: <a><p>X<a>Y</a>Z</p></a> Result: | <html> | <head> | <body> | <a> | <p> | <a> | "X" | <a> | "Y" | "Z" Expected: | <html> | <head> | <body> | <a> | <p> | <a> | "X" | <a> | "Y" | "Z"
Data: <b><button></b></button></b> Result: | <html> | <head> | <body> | <b> | <button> Expected: | <html> | <head> | <body> | <b> | <button>
Data: <p><b><div><marquee></p></b></div>X Result: | <html> | <head> | <body> | <p> | <b> | <div> | <b> | <marquee> | "X" Expected: | <html> | <head> | <body> | <p> | <b> | <div> | <b> | <marquee> | "X"
Data: <script><div></script></div><title><p></title><p><p> Result: | <html> | <head> | <script> | "<" | "div>" | <title> | "<" | "p>" | <body> | <p> | <p> Expected: | <html> | <head> | <script> | "<div>" | <title> | "<p>" | <body> | <p> | <p>
Data: <!--><div>--<!--> Result: | <!-- ><div>--<! --> | <html> Expected: | <!-- ><div>--<! --> | <html> | <head> | <body>
Data: <p><hr></p> Result: | <html> | <head> | <body> | <p> | <hr> Expected: | <html> | <head> | <body> | <p> | <hr>
Data: <select><b><option><select><option></b></select>X Result: | <html> | <head> | <body> | <select> Expected: | <html> | <head> | <body> | <select> | <option> | "X"
Data: <a><table><td><a><table></table><a></tr><a></table><b>X</b>C<a>Y Result: | <html> | <head> | <body> | <a> | <table> | <tbody> | <tr> | <td> | <a> | <table> | <a> | <b> | "X" | "C" | <a> | "Y" Expected: | <html> | <head> | <body> | <a> | <a> | <table> | <tbody> | <tr> | <td> | <a> | <table> | <a> | <a> | <b> | "X" | "C" | <a> | "Y"
Data: <a X>0<b>1<a Y>2 Result: | <html> | <head> | <body> | <a> | x="" | "0" | <b> | "1" | <b> | <a> | y="" | "2" Expected: | <html> | <head> | <body> | <a> | x="" | "0" | <b> | "1" | <b> | <a> | y="" | "2"
Data: <!-----><font><div>hello<table>excite!<b>me!<th><i>please!</tr><!--X--> Result: | <!-- - --> | <html> | <head> | <body> | <font> | <div> | "hello" | <tbody> | <tr> | <th> | <i> | "please!" | <!-- X --> | <table> Expected: | <!-- - --> | <html> | <head> | <body> | <font> | <div> | "helloexcite!" | <b> | "me!" | <table> | <tbody> | <tr> | <th> | <i> | "please!" | <!-- X -->
Data: <!DOCTYPE HTML><li>hello<li>world<ul>how<li>do</ul>you</body><!--do--> Result: | <html> | <head> | <body> | <li> | "hello" | <li> | "world" | <ul> | "how" | <li> | "do" | "you" | <!-- do --> Expected: | <!DOCTYPE HTML> | <html> | <head> | <body> | <li> | "hello" | <li> | "world" | <ul> | "how" | <li> | "do" | "you" | <!-- do -->
Data: <!DOCTYPE HTML>A<option>B<optgroup>C<select>D</option>E Result: | <html> | <head> | <body> | "A" | "B" | <optgroup> | "C" | <select> Expected: | <!DOCTYPE HTML> | <html> | <head> | <body> | "ABC" | <select> | "DE"
Data: < Result: | <html> | <head> | <body> | "<" Expected: | <html> | <head> | <body> | "<"
Data: <# Result: | <html> | <head> | <body> | "<" | "#" Expected: | <html> | <head> | <body> | "<#"
Data: </ Result: | <html> | <head> | <body> | "</" Expected: | <html> | <head> | <body> | "</"
Data: </# Result: | <!-- # --> | <html> Expected: | <!-- # --> | <html> | <head> | <body>
Data: <? Result: | <!-- ? --> | <html> Expected: | <!-- ? --> | <html> | <head> | <body>
Data: <?# Result: | <!-- ?# --> | <html> Expected: | <!-- ?# --> | <html> | <head> | <body>
Data: <! Result: | <!-- --> | <html> Expected: | <!-- --> | <html> | <head> | <body>
Data: <!# Result: | <!-- # --> | <html> Expected: | <!-- # --> | <html> | <head> | <body>
Data: <?COMMENT?> Result: | <!-- ?COMMENT? --> | <html> Expected: | <!-- ?COMMENT? --> | <html> | <head> | <body>
Data: <!COMMENT> Result: | <!-- COMMENT --> | <html> Expected: | <!-- COMMENT --> | <html> | <head> | <body>
Data: </ COMMENT > Result: | <!-- COMMENT --> | <html> Expected: | <!-- COMMENT --> | <html> | <head> | <body>
Data: <?COM--MENT?> Result: | <!-- ?COM--MENT? --> | <html> Expected: | <!-- ?COM--MENT? --> | <html> | <head> | <body>
Data: <!COM--MENT> Result: | <!-- COM--MENT --> | <html> Expected: | <!-- COM--MENT --> | <html> | <head> | <body>
Data: </ COM--MENT > Result: | <!-- COM--MENT --> | <html> Expected: | <!-- COM--MENT --> | <html> | <head> | <body>
Data: <!DOCTYPE HTML><style> EOF Result: | <html> | <head> | <style> | " EOF" Expected: | <!DOCTYPE HTML> | <html> | <head> | <style> | " EOF" | <body>
Data: <!DOCTYPE HTML><script> <!-- </script> --> </script> EOF Result: | <html> | <head> | <script> | " " | "<" | "!-- " | <body> | " --> " | " EOF" Expected: | <!DOCTYPE HTML> | <html> | <head> | <script> | " <!-- " | " " | <body> | "--> EOF"
Data: <b><p></b>TEST Result: | <html> | <head> | <body> | <b> | <p> | <b> | "TEST" Expected: | <html> | <head> | <body> | <b> | <p> | <b> | "TEST"
Data: <p id=a><b><p id=b></b>TEST Result: | <html> | <head> | <body> | <p> | id="a" | <b> | <p> | id="b" | <b> | "TEST" Expected: | <html> | <head> | <body> | <p> | id="a" | <b> | <p> | id="b" | "TEST"
Data: <b id=a><p><b id=b></p></b>TEST Result: | <html> | <head> | <body> | <b> | id="a" | <p> | <b> | id="b" | <b> | id="a" | <b> | id="b" | "TEST" Expected: | <html> | <head> | <body> | <b> | id="a" | <p> | <b> | id="b" | "TEST"
Data: <!DOCTYPE HTML><title>U-test</title><body><div><p>Test<u></p></div></body> Result: | <html> | <head> | <title> | "U-test" | <body> | <div> | <p> | "Test" | <u> Expected: | <!DOCTYPE HTML> | <html> | <head> | <title> | "U-test" | <body> | <div> | <p> | "Test" | <u>
Data: <!DOCTYPE HTML><font><table></font></table></font> Result: | <html> | <head> | <body> | <font> | <table> Expected: | <!DOCTYPE HTML> | <html> | <head> | <body> | <font> | <table>
Data: <font><p>hello<b>cruel</font>world Result: | <html> | <head> | <body> | <font> | <p> | <font> | "hello" | <b> | "cruel" | <b> | "world" Expected: | <html> | <head> | <body> | <font> | <p> | <font> | "hello" | <b> | "cruel" | <b> | "world"
Data: <b>Test</i>Test Result: | <html> | <head> | <body> | <b> | "Test" | "Test" Expected: | <html> | <head> | <body> | <b> | "TestTest"
Data: <b>A<cite>B<div>C Result: | <html> | <head> | <body> | <b> | "A" | <cite> | "B" | <div> | "C" Expected: | <html> | <head> | <body> | <b> | "A" | <cite> | "B" | <div> | "C"
Data: <b>A<cite>B<div>C</cite>D Result: | <html> | <head> | <body> | <b> | "A" | <cite> | "B" | <div> | "C" | "D" Expected: | <html> | <head> | <body> | <b> | "A" | <cite> | "B" | <div> | "CD"
Data: <b>A<cite>B<div>C</b>D Result: | <html> | <head> | <body> | <b> | "A" | <cite> | "B" | <div> | <b> | "C" | "D" Expected: | <html> | <head> | <body> | <b> | "A" | <cite> | "B" | <div> | <b> | "C" | "D"
Data: <cite><b><cite><i><cite><i><cite><i><div>X</b>TEST Result: | <html> | <head> | <body> | <cite> | <b> | <cite> | <i> | <cite> | <i> | <cite> | <i> | <i> | <i> | <div> | <b> | "X" | "TEST" Expected: | <html> | <head> | <body> | <cite> | <b> | <cite> | <i> | <cite> | <i> | <cite> | <i> | <i> | <i> | <div> | <b> | "X" | "TEST"
Data: Result: | <html> Expected: | <html> | <head> | <body>
Data: <DIV> Result: | <html> | <head> | <body> | <div> Expected: | <html> | <head> | <body> | <div>
Data: <DIV> abc Result: | <html> | <head> | <body> | <div> | " abc" Expected: | <html> | <head> | <body> | <div> | " abc"
Data: <DIV> abc <B> Result: | <html> | <head> | <body> | <div> | " abc " | <b> Expected: | <html> | <head> | <body> | <div> | " abc " | <b>
Data: <DIV> abc <B> def Result: | <html> | <head> | <body> | <div> | " abc " | <b> | " def" Expected: | <html> | <head> | <body> | <div> | " abc " | <b> | " def"
Data: <DIV> abc <B> def <I> Result: | <html> | <head> | <body> | <div> | " abc " | <b> | " def " | <i> Expected: | <html> | <head> | <body> | <div> | " abc " | <b> | " def " | <i>
Data: <DIV> abc <B> def <I> ghi Result: | <html> | <head> | <body> | <div> | " abc " | <b> | " def " | <i> | " ghi" Expected: | <html> | <head> | <body> | <div> | " abc " | <b> | " def " | <i> | " ghi"
Data: <DIV> abc <B> def <I> ghi <P> Result: | <html> | <head> | <body> | <div> | " abc " | <b> | " def " | <i> | " ghi " | <p> Expected: | <html> | <head> | <body> | <div> | " abc " | <b> | " def " | <i> | " ghi " | <p>
Data: <DIV> abc <B> def <I> ghi <P> jkl Result: | <html> | <head> | <body> | <div> | " abc " | <b> | " def " | <i> | " ghi " | <p> | " jkl" Expected: | <html> | <head> | <body> | <div> | " abc " | <b> | " def " | <i> | " ghi " | <p> | " jkl"
Data: <DIV> abc <B> def <I> ghi <P> jkl </B> Result: | <html> | <head> | <body> | <div> | " abc " | <b> | " def " | <i> | " ghi " | <p> | " jkl " Expected: | <html> | <head> | <body> | <div> | " abc " | <b> | " def " | <i> | " ghi " | <i> | <p> | <b> | " jkl "
Data: <DIV> abc <B> def <I> ghi <P> jkl </B> mno Result: | <html> | <head> | <body> | <div> | " abc " | <b> | " def " | <i> | " ghi " | <p> | " jkl " | " mno" Expected: | <html> | <head> | <body> | <div> | " abc " | <b> | " def " | <i> | " ghi " | <i> | <p> | <b> | " jkl " | " mno"
Data: <DIV> abc <B> def <I> ghi <P> jkl </B> mno </I> Result: | <html> | <head> | <body> | <div> | " abc " | <b> | " def " | <i> | " ghi " | <p> | " jkl " | " mno " Expected: | <html> | <head> | <body> | <div> | " abc " | <b> | " def " | <i> | " ghi " | <i> | <p> | <i> | <b> | " jkl " | " mno "
Data: <DIV> abc <B> def <I> ghi <P> jkl </B> mno </I> pqr Result: | <html> | <head> | <body> | <div> | " abc " | <b> | " def " | <i> | " ghi " | <p> | " jkl " | " mno " | " pqr" Expected: | <html> | <head> | <body> | <div> | " abc " | <b> | " def " | <i> | " ghi " | <i> | <p> | <i> | <b> | " jkl " | " mno " | " pqr"
Data: <DIV> abc <B> def <I> ghi <P> jkl </B> mno </I> pqr </P> Result: | <html> | <head> | <body> | <div> | " abc " | <b> | " def " | <i> | " ghi " | <p> | " jkl " | " mno " | " pqr " Expected: | <html> | <head> | <body> | <div> | " abc " | <b> | " def " | <i> | " ghi " | <i> | <p> | <i> | <b> | " jkl " | " mno " | " pqr "
Data: <DIV> abc <B> def <I> ghi <P> jkl </B> mno </I> pqr </P> stu Result: | <html> | <head> | <body> | <div> | " abc " | <b> | " def " | <i> | " ghi " | <p> | " jkl " | " mno " | " pqr " | " stu" Expected: | <html> | <head> | <body> | <div> | " abc " | <b> | " def " | <i> | " ghi " | <i> | <p> | <i> | <b> | " jkl " | " mno " | " pqr " | " stu"
Data: <test attribute----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> Result: | <html> | <head> | <body> | <test> | attribute----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------="" Expected: | <html> | <head> | <body> | <test> | attribute----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------=""
Data: <a href="blah">aba<table><a href="foo">br<tr><td></td></tr>x</table>aoe Result: | <html> | <head> | <body> | <a> | href="blah" | "aba" | <tbody> | <tr> | <td> | <table> | "aoe" Expected: | <html> | <head> | <body> | <a> | href="blah" | "aba" | <a> | href="foo" | "br" | <a> | href="foo" | "x" | <table> | <tbody> | <tr> | <td> | <a> | href="foo" | "aoe"
Data: <a href="blah">aba<table><tr><td><a href="foo">br</td></tr>x</table>aoe Result: | <html> | <head> | <body> | <a> | href="blah" | "aba" | <table> | <tbody> | <tr> | <td> | <a> | href="foo" | "br" | "aoe" Expected: | <html> | <head> | <body> | <a> | href="blah" | "abax" | <table> | <tbody> | <tr> | <td> | <a> | href="foo" | "br" | "aoe"
Data: <table><a href="blah">aba<tr><td><a href="foo">br</td></tr>x</table>aoe Result: | <html> | <head> | <body> | <tbody> | <tr> | <td> | <a> | href="foo" | "br" | <table> | "aoe" Expected: | <html> | <head> | <body> | <a> | href="blah" | "aba" | <a> | href="blah" | "x" | <table> | <tbody> | <tr> | <td> | <a> | href="foo" | "br" | <a> | href="blah" | "aoe"
Data: <a href=a>aa<marquee>aa<a href=b>bb</marquee>aa Result: | <html> | <head> | <body> | <a> | href="a" | "aa" | <marquee> | "aa" | <a> | href="b" | "bb" | "aa" Expected: | <html> | <head> | <body> | <a> | href="a" | "aa" | <marquee> | "aa" | <a> | href="b" | "bb" | "aa"
Data: <wbr><strike><code></strike><code><strike></code> Result: | <html> | <head> | <body> | <wbr> | <strike> | <code> | <code> | <strike> Expected: | <html> | <head> | <body> | <wbr> | <strike> | <code> | <code> | <strike>
Data: <title><meta></title><link><title><meta></title> Result: | <html> | <head> | <title> | "<" | "meta>" | <link> | <title> | "<" | "meta>" Expected: | <html> | <head> | <title> | "<meta>" | <link> | <title> | "<meta>" | <body>
Data: <style><!--</style><meta><script>--><link></script> Result: | <html> | <head> | <style> | "<" | "!--" | <meta> | <script> | "-->" | "<" | "link>" Expected: | <html> | <head> | <style> | "<!--" | <meta> | <script> | "--><link>" | <body>
Data: <head><meta></head><link> Result: | <html> | <head> | <meta> | <link> Expected: | <html> | <head> | <meta> | <link> | <body>
Data: <table><tr><tr><td><td><span><th><span>X</table> Result: | <html> | <head> | <body> | <table> | <tbody> | <tr> | <tr> | <td> | <td> | <span> | <th> | <span> | "X" Expected: | <html> | <head> | <body> | <table> | <tbody> | <tr> | <tr> | <td> | <td> | <span> | <th> | <span> | "X"
Data: <body><body><base><link><meta><title><p></title><body><p></body> Result: | <html> | <head> | <base> | <link> | <meta> | <title> | "<" | "p>" | <body> | "<" | "body>" | "<" | "p>" | "</" | "body>" Expected: | <html> | <head> | <base> | <link> | <meta> | <title> | "<p>" | <body> | <p>
Data: <textarea><p></textarea> Result: | <html> | <head> | <body> | <textarea> | "<" | "p>" Expected: | <html> | <head> | <body> | <textarea> | "<p>"
Data: <p><image></p> Result: | <html> | <head> | <body> | <p> | <img> Expected: | <html> | <head> | <body> | <p> | <img>
Data: <a><table><a></table><p><a><div><a> Result: | <html> | <head> | <body> | <a> | <table> | <p> | <a> | <a> | <div> | <a> | <a> Expected: | <html> | <head> | <body> | <a> | <a> | <table> | <p> | <a> | <div> | <a>
Data: <head></p><meta><p> Result: | <html> | <head> | <meta> | <body> | <p> Expected: | <html> | <head> | <meta> | <body> | <p>
Data: <head></html><meta><p> Result: | <html> | <head> | <meta> | <body> | <p> Expected: | <html> | <head> | <meta> | <body> | <p>
Data: <b><table><td><i></table> Result: | <html> | <head> | <body> | <b> | <table> | <tbody> | <tr> | <td> | <i> Expected: | <html> | <head> | <body> | <b> | <table> | <tbody> | <tr> | <td> | <i>
Data: <b><table><td></b><i></table> Result: | <html> | <head> | <body> | <b> | <table> | <tbody> | <tr> | <td> | <i> Expected: | <html> | <head> | <body> | <b> | <table> | <tbody> | <tr> | <td> | <i>
Data: <h1><h2> Result: | <html> | <head> | <body> | <h1> | <h2> Expected: | <html> | <head> | <body> | <h1> | <h2>
Data: <a><p><a></a></p></a> Result: | <html> | <head> | <body> | <a> | <p> | <a> | <a> Expected: | <html> | <head> | <body> | <a> | <p> | <a> | <a>
Data: <b><button></b></button></b> Result: | <html> | <head> | <body> | <b> | <button> Expected: | <html> | <head> | <body> | <b> | <button>
Data: <p><b><div><marquee></p></b></div> Result: | <html> | <head> | <body> | <p> | <b> | <div> | <b> | <marquee> Expected: | <html> | <head> | <body> | <p> | <b> | <div> | <b> | <marquee>
Data: <script></script></div><title></title><p><p> Result: | <html> | <head> | <script> | <title> | <body> | <p> | <p> Expected: | <html> | <head> | <script> | <title> | <body> | <p> | <p>
Data: <p><hr></p> Result: | <html> | <head> | <body> | <p> | <hr> Expected: | <html> | <head> | <body> | <p> | <hr>
Data: <select><b><option><select><option></b></select> Result: | <html> | <head> | <body> | <select> Expected: | <html> | <head> | <body> | <select> | <option>
Data: <html><head><title></title><body></body></html> Result: | <html> | <head> | <title> | <body> Expected: | <html> | <head> | <title> | <body>
Data: <a><table><td><a><table></table><a></tr><a></table><a> Result: | <html> | <head> | <body> | <a> | <table> | <tbody> | <tr> | <td> | <a> | <table> | <a> | <a> Expected: | <html> | <head> | <body> | <a> | <a> | <table> | <tbody> | <tr> | <td> | <a> | <table> | <a> | <a>
Data: <ul><li></li><div><li></div><li><li><div><li><address><li><b><em></b><li></ul> Result: | <html> | <head> | <body> | <ul> | <li> | <div> | <li> | <li> | <li> | <div> | <li> | <address> | <li> | <b> | <em> | <li> Expected: | <html> | <head> | <body> | <ul> | <li> | <div> | <li> | <li> | <li> | <div> | <li> | <address> | <li> | <b> | <em> | <li>
Data: <frameset><frame><frameset><frame></frameset><noframes></noframes></frameset> Result: | <html> | <head> | <frameset> Expected: | <html> | <head> | <frameset> | <frame> | <frameset> | <frame> | <noframes>
Data: <body><frame></frame></frame><frameset><frame><frameset><frame></frameset><noframes></frameset><noframes> Result: | <html> | <head> | <body> | <noframes> | "</" | "frameset>" | "<" | "noframes>" Expected: | <html> | <head> | <body> | <noframes> | "</frameset><noframes>"
Data: <h1><table><td><h3></table><h3></h1> Result: | <html> | <head> | <body> | <h1> | <table> | <tbody> | <tr> | <td> | <h3> | <h3> Expected: | <html> | <head> | <body> | <h1> | <table> | <tbody> | <tr> | <td> | <h3> | <h3>
Data: <table><colgroup><col><colgroup><col><col><col><colgroup><col><col><thead><tr><td></table> Result: | <html> | <head> | <body> | <table> | <colgroup> | <col> | <colgroup> | <col> | <col> | <col> | <colgroup> | <col> | <col> | <thead> | <tr> | <td> Expected: | <html> | <head> | <body> | <table> | <colgroup> | <col> | <colgroup> | <col> | <col> | <col> | <colgroup> | <col> | <col> | <thead> | <tr> | <td>
Data: <table><col><tbody><col><tr><col><td><col></table><col> Result: | <html> | <head> | <body> | <table> | <colgroup> | <col> | <tbody> | <colgroup> | <col> | <tbody> | <tr> | <tr> | <td> Expected: | <html> | <head> | <body> | <table> | <colgroup> | <col> | <tbody> | <colgroup> | <col> | <tbody> | <tr> | <colgroup> | <col> | <tbody> | <tr> | <td> | <colgroup> | <col>
Data: <table><colgroup><tbody><colgroup><tr><colgroup><td><colgroup></table><colgroup> Result: | <html> | <head> | <body> | <table> | <colgroup> | <tbody> | <colgroup> | <tbody> | <tr> | <tr> | <td> Expected: | <html> | <head> | <body> | <table> | <colgroup> | <tbody> | <colgroup> | <tbody> | <tr> | <colgroup> | <tbody> | <tr> | <td> | <colgroup>
Data: </strong></b></em></i></u></strike></s></blink></tt></pre></big></small></font></select></h1></h2></h3></h4></h5></h6></body></br></a></img></title></span></style></script></table></th></td></tr></frame></area></link></param></hr></input></col></base></meta></basefont></bgsound></embed></spacer></p></dd></dt></caption></colgroup></tbody></tfoot></thead></address></blockquote></center></dir></div></dl></fieldset></listing></menu></ol></ul></li></nobr></wbr></form></button></marquee></object></html></frameset></head></iframe></image></isindex></noembed></noframes></noscript></optgroup></option></plaintext></textarea> Result: | <html> | <head> | <body> Expected: | <html> | <head> | <body>
Data: <table><tr></strong></b></em></i></u></strike></s></blink></tt></pre></big></small></font></select></h1></h2></h3></h4></h5></h6></body></br></a></img></title></span></style></script></table></th></td></tr></frame></area></link></param></hr></input></col></base></meta></basefont></bgsound></embed></spacer></p></dd></dt></caption></colgroup></tbody></tfoot></thead></address></blockquote></center></dir></div></dl></fieldset></listing></menu></ol></ul></li></nobr></wbr></form></button></marquee></object></html></frameset></head></iframe></image></isindex></noembed></noframes></noscript></optgroup></option></plaintext></textarea> Result: | <html> | <head> | <body> | <table> | <tbody> | <tr> Expected: | <html> | <head> | <body> | <table> | <tbody> | <tr>
Data: <!doctype html>Test Result: | <html> | <head> | <body> | "Test" Expected: | <!DOCTYPE HTML> | <html> | <head> | <body> | "Test"
Data: <textarea>test</div>test Result: | <html> | <head> | <body> | <textarea> | "test" | "</" | "div>test" Expected: | <html> | <head> | <body> | <textarea> | "test</div>test"
Data: <table><td> Result: | <html> | <head> | <body> | <table> | <tbody> | <tr> | <td> Expected: | <html> | <head> | <body> | <table> | <tbody> | <tr> | <td>
Data: <table><td>test</tbody></table>