]> Cypherpunks repositories - gostls13.git/commit
html: close <option> element when opening <optgroup>
authorAndrew Balholm <andybalholm@gmail.com>
Wed, 26 Oct 2011 22:45:53 +0000 (09:45 +1100)
committerNigel Tao <nigeltao@golang.org>
Wed, 26 Oct 2011 22:45:53 +0000 (09:45 +1100)
commitbd07e4f25906f4443811e3b6bdb4ff2918beed0c
treeec1e5b8bb12bf4f42f94433b8ca6d11e623a22df
parent2cf5359830b3a79fcc67b054d5f5f5926a862ad1
html: close <option> element when opening <optgroup>

Pass tests1.dat, test 34:
<!DOCTYPE html>A<option>B<optgroup>C<select>D</option>E

| <!DOCTYPE html>
| <html>
|   <head>
|   <body>
|     "A"
|     <option>
|       "B"
|     <optgroup>
|       "C"
|       <select>
|         "DE"

Also passes tests 35-48. Test 48 is:
</ COM--MENT >

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