1
0
mirror of https://github.com/golang/go synced 2024-10-04 08:31:22 -06:00
go/src/pkg/exp
Mike Samuel 66cdd02038 exp/template/html: error out on ambiguous unquoted attributes
HTML parsers may differ on whether
<input id= onchange=f(             ends in id's or onchange's value,
<a class=`foo                      ends inside a value,
<input style=font:'Arial'          needs open-quote fixup.

Per
http://www.w3.org/TR/html5/tokenization.html#attribute-value-unquoted-state
this treats the error cases in 8.2.4.40 Attribute value (unquoted) state
as fatal errors.

\> U+0022 QUOTATION MARK (")
\> U+0027 APOSTROPHE (')
\> U+003C LESS-THAN SIGN (<)
\> U+003D EQUALS SIGN (=)
\> U+0060 GRAVE ACCENT (`)
        Parse error. Treat it as per the "anything else" entry below.

and emits ErrBadHTML.

R=nigeltao
CC=golang-dev
https://golang.org/cl/5085050
2011-09-26 00:42:38 -07:00
..
datafmt container/vector: removed last instances of vector outside of container/vector itself from the core libs 2011-08-08 11:27:09 -07:00
gui image: change the NewXxx functions to take a Rectangle instead of 2011-09-14 21:39:49 +10:00
norm exp/norm: Adopt regexp to exp/regexp semantics. 2011-09-19 17:30:19 +02:00
regexp src: fix a couple of govet-discovered errors. 2011-09-14 13:29:31 -07:00
ssh exp/ssh: refactor halfConnection to transport 2011-09-20 12:21:50 -04:00
template/html exp/template/html: error out on ambiguous unquoted attributes 2011-09-26 00:42:38 -07:00
wingui syscall: mksyscall_windows.pl to produce packages other than syscall (for example pkg/exp/wingui/zwinapi.go) 2011-09-24 10:38:39 +10:00
README explain exp 2009-10-15 11:02:18 -07:00

This directory tree contains experimental packages and
unfinished code that is subject to even more change than the
rest of the Go tree.