From: Mike Samuel Date: Wed, 11 Jan 2012 23:47:03 +0000 (-0500) Subject: html/template: reenable testcases and fix mis-escaped sequences. X-Git-Tag: weekly.2012-01-15~60 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b1d6fa517cd99cbbad1523dddc6182da5a701122;p=gostls13.git 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 '\' +, 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 --- diff --git a/src/pkg/html/template/escape_test.go b/src/pkg/html/template/escape_test.go index 0cac6a43ae..2ce1fb566a 100644 --- a/src/pkg/html/template/escape_test.go +++ b/src/pkg/html/template/escape_test.go @@ -300,23 +300,21 @@ func TestEscape(t *testing.T) { `

`, `

`, }, - // This test is broken by the fix to issue 2658. - // { - // "styleObfuscatedExpressionBlocked", - // `

`, - // `

`, - // }, + { + "styleObfuscatedExpressionBlocked", + `

`, + `

`, + }, { "styleMozBindingBlocked", `

`, `

`, }, - // This test is broken by the fix to issue 2658. - // { - // "styleObfuscatedMozBindingBlocked", - // `

`, - // `

`, - // }, + { + "styleObfuscatedMozBindingBlocked", + `

`, + `

`, + }, { "styleFontNameString", `

`,