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

Issue 4216050: code review 4216050: xml: permit nested directives.

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 2 months ago by eh
Modified:
12 years, 4 months ago
Reviewers:
rsc, peterGo, niemeyer
CC:
rsc, golang-dev
Visibility:
Public.

Description

xml: permit nested directives. Modify <! case in RawToken so that nested <! ...> directives are accumulated rather than terminating the opening directive at the first >. Keep track of nesting depth, +1 for each <, -1 for each >, but not counting < or > inside single-quoted or double-quoted strings. Fixes issue 1549.

Patch Set 1 #

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

Total comments: 3

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

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

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

Total comments: 4

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

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -2 lines) Patch
M src/pkg/xml/xml.go View 1 2 3 4 5 1 chunk +21 lines, -2 lines 1 comment Download
M src/pkg/xml/xml_test.go View 1 2 3 1 chunk +46 lines, -0 lines 0 comments Download

Messages

Total messages: 19
eh
Hello go@googlecode.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 2 months ago (2011-02-24 21:16:40 UTC) #1
niemeyer
Thanks for the change. There's a small problem in the handling of quotes: http://codereview.appspot.com/4216050/diff/1001/src/pkg/xml/xml.go File ...
13 years, 2 months ago (2011-02-25 02:55:06 UTC) #2
eh
http://codereview.appspot.com/4216050/diff/1001/src/pkg/xml/xml.go File src/pkg/xml/xml.go (right): http://codereview.appspot.com/4216050/diff/1001/src/pkg/xml/xml.go#newcode560 src/pkg/xml/xml.go:560: } else if b == '\'' || b == ...
13 years, 2 months ago (2011-02-25 07:38:22 UTC) #3
eh
Hello golang-dev@googlegroups.com, niemeyer (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 2 months ago (2011-02-25 09:42:47 UTC) #4
eh
Hello golang-dev@googlegroups.com, niemeyer (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 2 months ago (2011-02-25 09:43:11 UTC) #5
eh
On 25 February 2011 09:43, <ehog.hedge@googlemail.com> wrote: > Hello golang-dev@googlegroups.com, niemeyer (cc: > golang-dev@googlegroups.com), > ...
13 years, 2 months ago (2011-02-25 09:46:13 UTC) #6
niemeyer
> Done, but still as if-chain -- would a switch be > preferred style here? ...
13 years, 2 months ago (2011-02-25 13:02:42 UTC) #7
rsc
> [Also, should the copyright comment be changed to reflect a 2011 > update?] no. ...
13 years, 2 months ago (2011-02-25 15:23:49 UTC) #8
eh
Hello golang-dev@googlegroups.com, niemeyer, rsc (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 2 months ago (2011-02-25 16:23:04 UTC) #9
niemeyer
LGTM
13 years, 2 months ago (2011-02-25 17:34:16 UTC) #10
eh
On 25 February 2011 17:34, <n13m3y3r@gmail.com> wrote: > LGTM > > http://codereview.appspot.com/4216050/ > So, as ...
13 years, 2 months ago (2011-02-25 18:43:07 UTC) #11
niemeyer
> So, as I understand it, since I'm not a submitter, someone-perhaps-you > will now ...
13 years, 2 months ago (2011-02-25 18:47:18 UTC) #12
rsc
http://codereview.appspot.com/4216050/diff/17001/src/pkg/xml/xml.go File src/pkg/xml/xml.go (right): http://codereview.appspot.com/4216050/diff/17001/src/pkg/xml/xml.go#newcode569 src/pkg/xml/xml.go:569: depth -= 1 depth-- http://codereview.appspot.com/4216050/diff/17001/src/pkg/xml/xml.go#newcode572 src/pkg/xml/xml.go:572: depth += 1 ...
13 years, 2 months ago (2011-02-25 18:51:04 UTC) #13
eh
Hello niemeyer, rsc (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 2 months ago (2011-02-26 10:12:58 UTC) #14
eh
http://codereview.appspot.com/4216050/diff/1001/src/pkg/xml/xml.go File src/pkg/xml/xml.go (right): http://codereview.appspot.com/4216050/diff/1001/src/pkg/xml/xml.go#newcode560 src/pkg/xml/xml.go:560: } else if b == '\'' || b == ...
13 years, 2 months ago (2011-02-26 10:13:33 UTC) #15
rsc
LGTM
13 years, 2 months ago (2011-02-28 15:09:31 UTC) #16
rsc
*** Submitted as 768498ada484 *** xml: permit nested directives Return <!DOCTYPE ...> with nested directives ...
13 years, 2 months ago (2011-02-28 19:09:10 UTC) #17
peterGo
http://codereview.appspot.com/4216050/diff/19001/src/pkg/xml/xml.go File src/pkg/xml/xml.go (right): http://codereview.appspot.com/4216050/diff/19001/src/pkg/xml/xml.go#newcode561 src/pkg/xml/xml.go:561: To be consistent with the rest of xml.go and ...
13 years, 2 months ago (2011-02-28 19:18:34 UTC) #18
niemeyer
12 years, 4 months ago (2011-12-13 21:25:12 UTC) #19

          
Sign in to reply to this message.

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