mirror of
https://github.com/golang/go
synced 2024-11-25 07:17:56 -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:
parent
42a56d3e81
commit
1f0d277cc1
@ -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},
|
||||
|
Loading…
Reference in New Issue
Block a user