Commit e4a50195 authored by Andrew Balholm's avatar Andrew Balholm Committed by Nigel Tao

exp/html: when ignoring <textarea> tag, switch tokenizer out of raw text mode

Pass 1 additional test.

R=nigeltao
CC=golang-dev
https://golang.org/cl/6459060
parent a5c4e0fa
...@@ -1618,6 +1618,8 @@ func inSelectIM(p *parser) bool { ...@@ -1618,6 +1618,8 @@ func inSelectIM(p *parser) bool {
return false return false
} }
// Ignore the token. // Ignore the token.
// In order to properly ignore <textarea>, we need to change the tokenizer mode.
p.tokenizer.rawTag = ""
return true return true
case a.Script: case a.Script:
return inHeadIM(p) return inHeadIM(p)
......
...@@ -79,7 +79,7 @@ PASS "<table><td><td>" ...@@ -79,7 +79,7 @@ PASS "<table><td><td>"
PASS "</select><option>" PASS "</select><option>"
PASS "<input><option>" PASS "<input><option>"
PASS "<keygen><option>" PASS "<keygen><option>"
FAIL "<textarea><option>" PASS "<textarea><option>"
FAIL "</html><!--abc-->" FAIL "</html><!--abc-->"
PASS "</frameset><frame>" PASS "</frameset><frame>"
PASS "" PASS ""
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment