]> Cypherpunks repositories - gostls13.git/commit
html: ignore <col> tag outside tables
authorAndrew Balholm <andybalholm@gmail.com>
Fri, 11 Nov 2011 10:44:01 +0000 (21:44 +1100)
committerNigel Tao <nigeltao@golang.org>
Fri, 11 Nov 2011 10:44:01 +0000 (21:44 +1100)
commit0a61c846ef36dc43437e37c6494a40b47824124f
tree9b722bf14b12de50ae5dc236da97c505a52275a9
parent83f61a27d6f1ef053c00b4cc2fd9668fdf354ad8
html: ignore <col> tag outside tables

Pass tests1.dat, test 109:
<table><col><tbody><col><tr><col><td><col></table><col>

| <html>
|   <head>
|   <body>
|     <table>
|       <colgroup>
|         <col>
|       <tbody>
|       <colgroup>
|         <col>
|       <tbody>
|         <tr>
|       <colgroup>
|         <col>
|       <tbody>
|         <tr>
|           <td>
|       <colgroup>
|         <col>

Also pass test 110:
<table><colgroup><tbody><colgroup><tr><colgroup><td><colgroup></table><colgroup>

R=nigeltao
CC=golang-dev
https://golang.org/cl/5369069
src/pkg/html/parse.go
src/pkg/html/parse_test.go