]> Cypherpunks repositories - gostls13.git/commit
html/template: reenable testcases and fix mis-escaped sequences.
authorMike Samuel <mikesamuel@gmail.com>
Wed, 11 Jan 2012 23:47:03 +0000 (18:47 -0500)
committerMike Samuel <mikesamuel@gmail.com>
Wed, 11 Jan 2012 23:47:03 +0000 (18:47 -0500)
commitb1d6fa517cd99cbbad1523dddc6182da5a701122
treef0b5898512fcfab17ad22ac8207d9ba95462216c
parent81728cf06da55bfc66981e0df2414accc876bccc
html/template: reenable testcases and fix mis-escaped sequences.

Tighter octal parsing broke some tests and were disabled in
https://golang.org/cl/5530051

Those tests were broken.  The CSS decoder was supposed to see CSS
hex escape sequences of the form '\' <hex>+, but those escape
sequences were instead being consumed by the template parser.

This change properly escapes those escape sequences, and uses
proper escaping for NULs.

R=golang-dev, rsc, nigeltao
CC=golang-dev
https://golang.org/cl/5529073
src/pkg/html/template/escape_test.go