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

Issue 5218041: code review 5218041: html: add a Node.Render method. (Closed)

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

Description

html: add a Render function.

Patch Set 1 #

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

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

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

Total comments: 7

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

Total comments: 4

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

Total comments: 12

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+300 lines, -8 lines) Patch
M src/pkg/html/Makefile View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/html/escape.go View 1 3 chunks +10 lines, -4 lines 0 comments Download
M src/pkg/html/parse_test.go View 1 2 3 4 5 2 chunks +19 lines, -4 lines 0 comments Download
A src/pkg/html/render.go View 1 2 3 4 5 6 1 chunk +159 lines, -0 lines 0 comments Download
A src/pkg/html/render_test.go View 1 2 3 4 5 1 chunk +111 lines, -0 lines 0 comments Download

Messages

Total messages: 17
nigeltao
Hello mikesamuel@gmail.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 10 months ago (2011-10-06 07:07:53 UTC) #1
MikeSamuel
http://codereview.appspot.com/5218041/diff/4006/src/pkg/html/render.go File src/pkg/html/render.go (right): http://codereview.appspot.com/5218041/diff/4006/src/pkg/html/render.go#newcode76 src/pkg/html/render.go:76: // TODO: figure out what to do with <script> ...
13 years, 10 months ago (2011-10-06 12:16:49 UTC) #2
nigeltao
http://codereview.appspot.com/5218041/diff/4006/src/pkg/html/render.go File src/pkg/html/render.go (right): http://codereview.appspot.com/5218041/diff/4006/src/pkg/html/render.go#newcode82 src/pkg/html/render.go:82: if err := escape(w, n.Data); err != nil { ...
13 years, 10 months ago (2011-10-06 12:23:11 UTC) #3
MikeSamuel
http://codereview.appspot.com/5218041/diff/4006/src/pkg/html/render.go File src/pkg/html/render.go (right): http://codereview.appspot.com/5218041/diff/4006/src/pkg/html/render.go#newcode82 src/pkg/html/render.go:82: if err := escape(w, n.Data); err != nil { ...
13 years, 10 months ago (2011-10-06 12:51:41 UTC) #4
nigeltao
PTAL. As for naming, I see three options: Render, WriteTo, and Marshal. I'm uncomfortable with ...
13 years, 10 months ago (2011-10-07 05:49:11 UTC) #5
MikeSamuel
http://codereview.appspot.com/5218041/diff/8001/src/pkg/html/render.go File src/pkg/html/render.go (right): http://codereview.appspot.com/5218041/diff/8001/src/pkg/html/render.go#newcode54 src/pkg/html/render.go:54: case DocumentNode: Should scopeMarkerNode be handled in the same ...
13 years, 10 months ago (2011-10-07 06:45:14 UTC) #6
MikeSamuel
On 2011/10/07 05:49:11, nigeltao wrote: > PTAL. > > As for naming, I see three ...
13 years, 10 months ago (2011-10-07 08:04:05 UTC) #7
nigeltao
Render is now a function, not a method. http://codereview.appspot.com/5218041/diff/8001/src/pkg/html/render.go File src/pkg/html/render.go (right): http://codereview.appspot.com/5218041/diff/8001/src/pkg/html/render.go#newcode54 src/pkg/html/render.go:54: case ...
13 years, 10 months ago (2011-10-07 08:15:44 UTC) #8
MikeSamuel
LGTM
13 years, 10 months ago (2011-10-07 10:18:58 UTC) #9
andybalholm
It looks good to me except for a few places where text shouldn't be escaped. ...
13 years, 10 months ago (2011-10-07 16:22:13 UTC) #10
andybalholm
http://codereview.appspot.com/5218041/diff/14001/src/pkg/html/render.go File src/pkg/html/render.go (right): http://codereview.appspot.com/5218041/diff/14001/src/pkg/html/render.go#newcode35 src/pkg/html/render.go:35: // any <!--comment--> input. I'd like to see comments ...
13 years, 10 months ago (2011-10-07 21:58:39 UTC) #11
nigeltao
I'm thinking about renaming Parse/Render to Unmarshal/Marshal, as part of making the standard package library ...
13 years, 10 months ago (2011-10-08 00:44:02 UTC) #12
andybalholm
LGTM http://codereview.appspot.com/5218041/diff/14001/src/pkg/html/render.go File src/pkg/html/render.go (right): http://codereview.appspot.com/5218041/diff/14001/src/pkg/html/render.go#newcode35 src/pkg/html/render.go:35: // any <!--comment--> input. On 2011/10/08 00:44:02, nigeltao ...
13 years, 10 months ago (2011-10-08 00:50:22 UTC) #13
andybalholm
On Oct 7, 2011, at 5:44 PM, nigeltao@golang.org wrote: > I'm thinking about renaming Parse/Render ...
13 years, 10 months ago (2011-10-08 15:02:00 UTC) #14
andybalholm
This isn't really about Render, but it's relevant to a comment on this review. http://codereview.appspot.com/5218041/diff/14001/src/pkg/html/render.go ...
13 years, 10 months ago (2011-10-08 20:41:43 UTC) #15
MikeSamuel
On 2011/10/08 00:44:02, nigeltao wrote: > I'm thinking about renaming Parse/Render to Unmarshal/Marshal, as part ...
13 years, 10 months ago (2011-10-09 06:57:00 UTC) #16
nigeltao
13 years, 10 months ago (2011-10-10 03:44:44 UTC) #17
*** Submitted as http://code.google.com/p/go/source/detail?r=9be80dbcb0af ***

html: add a Render function.

R=mikesamuel, andybalholm
CC=golang-dev
http://codereview.appspot.com/5218041
Sign in to reply to this message.

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