1
0
mirror of https://github.com/golang/go synced 2024-11-25 06:57:58 -07:00

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

R=mikesamuel
CC=golang-dev
https://golang.org/cl/4956042
This commit is contained in:
Nigel Tao 2011-08-25 13:48:21 +10:00
parent 42a56d3e81
commit 1f0d277cc1

View File

@ -292,6 +292,18 @@ func TestEscapeText(t *testing.T) {
`<a href="'`, `<a href="'`,
context{state: stateURL, delim: delimDoubleQuote}, 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"`, `<input checked type="checkbox"`,
context{state: stateTag}, context{state: stateTag},