Commit 1f0d277c authored by Nigel Tao's avatar Nigel Tao

exp/template/html: add some tests for ">" attributes.

R=mikesamuel
CC=golang-dev
https://golang.org/cl/4956042
parent 42a56d3e
......@@ -292,6 +292,18 @@ func TestEscapeText(t *testing.T) {
`<a href="'`,
context{state: stateURL, delim: delimDoubleQuote},
},
{
`<img alt="1">`,
context{state: stateText},
},
{
`<img alt="1>"`,
context{state: stateTag},
},
{
`<img alt="1>">`,
context{state: stateText},
},
{
`<input checked type="checkbox"`,
context{state: stateTag},
......
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