]> Cypherpunks repositories - gostls13.git/commit
exp/template/html: Implement grammar for JS.
authorMike Samuel <mikesamuel@gmail.com>
Thu, 1 Sep 2011 02:03:40 +0000 (12:03 +1000)
committerNigel Tao <nigeltao@golang.org>
Thu, 1 Sep 2011 02:03:40 +0000 (12:03 +1000)
commit0253c688d07eb8522641388b58e84d69a40646bb
treed67053c9f614b6b4b14fc39f3082801d4af18bd7
parentffe70eaa3cc9913d4d3e462ecaa41522330da85e
exp/template/html: Implement grammar for JS.

This transitions into a JS state when entering any attribute whose
name starts with "on".

It does not yet enter a JS on entry into a <script> element as script
element handling is introduced in another CL.

R=nigeltao
CC=golang-dev
https://golang.org/cl/4968052
src/pkg/exp/template/html/Makefile
src/pkg/exp/template/html/context.go
src/pkg/exp/template/html/escape.go
src/pkg/exp/template/html/escape_test.go
src/pkg/exp/template/html/js.go [new file with mode: 0644]
src/pkg/exp/template/html/js_test.go [new file with mode: 0644]