| commit | 5a141064ed3a699ec1c6060c77e4ff1ca3faf85b | [log] [tgz] |
|---|---|---|
| author | Nigel Tao <nigeltao@golang.org> | Thu Jul 21 11:20:54 2011 +1000 |
| committer | Nigel Tao <nigeltao@golang.org> | Thu Jul 21 11:20:54 2011 +1000 |
| tree | a0ffdc2069b070fd166bb09b02472f587c1a14a3 | |
| parent | d11c0f1dbb00afca09c48a2566ea30c9b2516e10 [diff] |
html: parse misnested formatting tags according to the HTML5 spec. This is the "adoption agency" algorithm. The test case input is "<a><p>X<a>Y</a>Z</p></a>". The correct parse is: | <html> | <head> | <body> | <a> | <p> | <a> | "X" | <a> | "Y" | "Z" R=gri CC=golang-dev https://golang.org/cl/4771042