]> Cypherpunks repositories - gostls13.git/commitdiff
exp/html: when ignoring <textarea> tag, switch tokenizer out of raw text mode
authorAndrew Balholm <andybalholm@gmail.com>
Wed, 8 Aug 2012 23:43:10 +0000 (09:43 +1000)
committerNigel Tao <nigeltao@golang.org>
Wed, 8 Aug 2012 23:43:10 +0000 (09:43 +1000)
Pass 1 additional test.

R=nigeltao
CC=golang-dev
https://golang.org/cl/6459060

src/pkg/exp/html/parse.go
src/pkg/exp/html/testlogs/tests_innerHTML_1.dat.log

index be33245600b2cad188a81339f44f999b48187565..03c007e1cd6771173e9a397fdfe3e15e0584153b 100644 (file)
@@ -1618,6 +1618,8 @@ func inSelectIM(p *parser) bool {
                                return false
                        }
                        // Ignore the token.
+                       // In order to properly ignore <textarea>, we need to change the tokenizer mode.
+                       p.tokenizer.rawTag = ""
                        return true
                case a.Script:
                        return inHeadIM(p)
index f34bb783ac148f4b30b9fa3b493ee72c942a470d..d3df267de9bb25933c9c646f4c03015225b42984 100644 (file)
@@ -79,7 +79,7 @@ PASS "<table><td><td>"
 PASS "</select><option>"
 PASS "<input><option>"
 PASS "<keygen><option>"
-FAIL "<textarea><option>"
+PASS "<textarea><option>"
 FAIL "</html><!--abc-->"
 PASS "</frameset><frame>"
 PASS ""