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

Issue 5301042: code review 5301042: html: parse raw text and RCDATA elements, such as <scri... (Closed)

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

Description

html: parse raw text and RCDATA elements, such as <script> and <title>. Pass tests1.dat, test 26: #data <script><div></script></div><title><p></title><p><p> #document | <html> | <head> | <script> | "<div>" | <title> | "<p>" | <body> | <p> | <p> Thanks to Andy Balholm for driving this change.

Patch Set 1 #

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

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

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

Total comments: 1

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -21 lines) Patch
M src/pkg/html/parse.go View 1 2 3 4 4 chunks +32 lines, -2 lines 0 comments Download
M src/pkg/html/parse_test.go View 1 2 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/html/render.go View 1 2 3 4 2 chunks +24 lines, -14 lines 0 comments Download
M src/pkg/html/token.go View 1 6 chunks +78 lines, -1 line 0 comments Download
M src/pkg/html/token_test.go View 1 2 3 1 chunk +71 lines, -0 lines 0 comments Download

Messages

Total messages: 3
nigeltao
Hello andybalholm@gmail.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 9 months ago (2011-10-18 07:22:24 UTC) #1
andybalholm
LGTM Checking the tag name when processing the start tag makes for a cleaner design. ...
13 years, 9 months ago (2011-10-18 15:38:06 UTC) #2
nigeltao
13 years, 9 months ago (2011-10-18 21:03:41 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=46d9fdf81394 ***

html: parse raw text and RCDATA elements, such as <script> and <title>.

Pass tests1.dat, test 26:
#data
<script><div></script></div><title><p></title><p><p>
#document
| <html>
|   <head>
|     <script>
|       "<div>"
|     <title>
|       "<p>"
|   <body>
|     <p>
|     <p>

Thanks to Andy Balholm for driving this change.

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

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