Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3046)

Issue 4906043: code review 4906043: exp/template/html: defines a parse context for a subset... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 8 months ago by MikeSamuel
Modified:
13 years, 8 months ago
Reviewers:
CC:
rsc, r, nigeltao, r2, golang-dev
Visibility:
Public.

Description

exp/template/html: defines a parse context for a subset of HTML. This defines just enough context to distinguish HTML URI attributes from parsed character data. It does not affect any public module API as I thought I would get early comment on style for defining enumerations and tables.

Patch Set 1 #

Patch Set 2 : code review 4906043: exp/template/html: defines a parse context for a subset... #

Patch Set 3 : diff -r c94708477811 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r c94708477811 https://go.googlecode.com/hg/ #

Total comments: 10

Patch Set 5 : diff -r c94708477811 https://go.googlecode.com/hg/ #

Total comments: 8

Patch Set 6 : diff -r c94708477811 https://go.googlecode.com/hg/ #

Total comments: 6

Patch Set 7 : diff -r a8d309fd526f https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r a8d309fd526f https://go.googlecode.com/hg/ #

Total comments: 4

Patch Set 9 : diff -r 1e3e5c27e0a3 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 10 : diff -r e7bbaa4eae1f https://go.googlecode.com/hg/ #

Patch Set 11 : diff -r daa11382c852 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -0 lines) Patch
A src/pkg/exp/template/html/context.go View 1 2 3 4 5 6 7 8 9 10 1 chunk +98 lines, -0 lines 0 comments Download

Messages

Total messages: 16
MikeSamuel
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 8 months ago (2011-08-16 21:50:46 UTC) #1
rsc
http://codereview.appspot.com/4906043/diff/7001/src/pkg/exp/template/html/context.go File src/pkg/exp/template/html/context.go (right): http://codereview.appspot.com/4906043/diff/7001/src/pkg/exp/template/html/context.go#newcode22 src/pkg/exp/template/html/context.go:22: // GoString obeys the contract of fmt.GoStringer. It's not ...
13 years, 8 months ago (2011-08-16 21:58:24 UTC) #2
MikeSamuel
Incremental diffs at http://codereview.appspot.com/4906043/diff2/7001:2003/src/pkg/exp/template/html/context.go http://codereview.appspot.com/4906043/diff/7001/src/pkg/exp/template/html/context.go File src/pkg/exp/template/html/context.go (right): http://codereview.appspot.com/4906043/diff/7001/src/pkg/exp/template/html/context.go#newcode22 src/pkg/exp/template/html/context.go:22: // GoString obeys the contract ...
13 years, 8 months ago (2011-08-16 22:06:31 UTC) #3
rsc
lgtm leaving for r http://codereview.appspot.com/4906043/diff/2003/src/pkg/exp/template/html/context.go File src/pkg/exp/template/html/context.go (right): http://codereview.appspot.com/4906043/diff/2003/src/pkg/exp/template/html/context.go#newcode18 src/pkg/exp/template/html/context.go:18: state If you are trying ...
13 years, 8 months ago (2011-08-16 22:13:33 UTC) #4
MikeSamuel
Incremental diffs at http://codereview.appspot.com/4906043/diff2/2003:11003/src/pkg/exp/template/html/context.go http://codereview.appspot.com/4906043/diff/2003/src/pkg/exp/template/html/context.go File src/pkg/exp/template/html/context.go (right): http://codereview.appspot.com/4906043/diff/2003/src/pkg/exp/template/html/context.go#newcode18 src/pkg/exp/template/html/context.go:18: state On 2011/08/16 22:13:33, rsc ...
13 years, 8 months ago (2011-08-16 22:24:15 UTC) #5
nigeltao
http://codereview.appspot.com/4906043/diff/11003/src/pkg/exp/template/html/context.go File src/pkg/exp/template/html/context.go (right): http://codereview.appspot.com/4906043/diff/11003/src/pkg/exp/template/html/context.go#newcode23 src/pkg/exp/template/html/context.go:23: return fmt.Sprintf("context{state: %s, delim: %s", I wouldn't break the ...
13 years, 8 months ago (2011-08-17 00:40:12 UTC) #6
MikeSamuel
Incremental diffs at http://codereview.appspot.com/4906043/diff2/11003:10002/src/pkg/exp/template/html/context.go http://codereview.appspot.com/4906043/diff/11003/src/pkg/exp/template/html/context.go File src/pkg/exp/template/html/context.go (right): http://codereview.appspot.com/4906043/diff/11003/src/pkg/exp/template/html/context.go#newcode23 src/pkg/exp/template/html/context.go:23: return fmt.Sprintf("context{state: %s, delim: %s", ...
13 years, 8 months ago (2011-08-17 00:49:41 UTC) #7
rsc
>> IIUC, Go capitalization style would be "stateHTMLPCDATA" or > > "stateHTMLPCData". >> >> For ...
13 years, 8 months ago (2011-08-17 02:07:01 UTC) #8
r2
On Aug 17, 2011, at 12:06 PM, Russ Cox wrote: >>> IIUC, Go capitalization style ...
13 years, 8 months ago (2011-08-17 02:28:24 UTC) #9
MikeSamuel
2011/8/16 Rob 'Commander' Pike <r@google.com>: > > On Aug 17, 2011, at 12:06 PM, Russ ...
13 years, 8 months ago (2011-08-17 02:57:08 UTC) #10
r
a couple of tiny tweaks and it's ready http://codereview.appspot.com/4906043/diff/16001/src/pkg/exp/template/html/context.go File src/pkg/exp/template/html/context.go (right): http://codereview.appspot.com/4906043/diff/16001/src/pkg/exp/template/html/context.go#newcode14 src/pkg/exp/template/html/context.go:14: // ...
13 years, 8 months ago (2011-08-17 03:02:24 UTC) #11
MikeSamuel
Incremental diffs at http://codereview.appspot.com/4906043/diff2/16001:19001/src/pkg/exp/template/html/context.go http://codereview.appspot.com/4906043/diff/16001/src/pkg/exp/template/html/context.go File src/pkg/exp/template/html/context.go (right): http://codereview.appspot.com/4906043/diff/16001/src/pkg/exp/template/html/context.go#newcode14 src/pkg/exp/template/html/context.go:14: // context{} is the start ...
13 years, 8 months ago (2011-08-17 05:57:05 UTC) #12
r
apologies for the nitpicking. http://codereview.appspot.com/4906043/diff/19001/src/pkg/exp/template/html/context.go File src/pkg/exp/template/html/context.go (right): http://codereview.appspot.com/4906043/diff/19001/src/pkg/exp/template/html/context.go#newcode33 src/pkg/exp/template/html/context.go:33: // e.g. the quoted HTML ...
13 years, 8 months ago (2011-08-18 00:17:35 UTC) #13
MikeSamuel
http://codereview.appspot.com/4906043/diff/19001/src/pkg/exp/template/html/context.go File src/pkg/exp/template/html/context.go (right): http://codereview.appspot.com/4906043/diff/19001/src/pkg/exp/template/html/context.go#newcode33 src/pkg/exp/template/html/context.go:33: // e.g. the quoted HTML attribute produced <div title="Hello ...
13 years, 8 months ago (2011-08-18 00:33:48 UTC) #14
r
LGTM yes. it's not really the right term, but i use it for a shorthand ...
13 years, 8 months ago (2011-08-18 00:36:40 UTC) #15
r
13 years, 8 months ago (2011-08-18 00:40:39 UTC) #16
*** Submitted as http://code.google.com/p/go/source/detail?r=9e0ce8b022f6 ***

exp/template/html: defines a parse context for a subset of HTML.

This defines just enough context to distinguish HTML URI attributes
from parsed character data.

It does not affect any public module API as I thought I would get
early comment on style for defining enumerations and tables.

R=rsc, r, nigeltao, r
CC=golang-dev
http://codereview.appspot.com/4906043

Committer: Rob Pike <r@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b