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

Issue 5321051: code review 5321051: html: improve parsing of lists (Closed)

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

Description

html: improve parsing of lists Make a <li> tag close the previous <li> element. Make a </ul> tag close <li> elements. Pass tests1.dat, test 33: <!DOCTYPE html><li>hello<li>world<ul>how<li>do</ul>you</body><!--do--> | <!DOCTYPE html> | <html> | <head> | <body> | <li> | "hello" | <li> | "world" | <ul> | "how" | <li> | "do" | "you" | <!-- do -->

Patch Set 1 #

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -1 line) Patch
M src/pkg/html/parse.go View 1 2 chunks +20 lines, -0 lines 0 comments Download
M src/pkg/html/parse_test.go View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3
andybalholm
Hello nigeltao@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 6 months ago (2011-10-26 01:06:27 UTC) #1
nigeltao
LGTM.
12 years, 6 months ago (2011-10-26 03:01:43 UTC) #2
nigeltao
12 years, 6 months ago (2011-10-26 03:02:45 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=0a7539309b05 ***

html: improve parsing of lists

Make a <li> tag close the previous <li> element.
Make a </ul> tag close <li> elements.

Pass tests1.dat, test 33:
<!DOCTYPE html><li>hello<li>world<ul>how<li>do</ul>you</body><!--do-->

| <!DOCTYPE html>
| <html>
|   <head>
|   <body>
|     <li>
|       "hello"
|     <li>
|       "world"
|       <ul>
|         "how"
|         <li>
|           "do"
|       "you"
|   <!-- do -->

R=nigeltao
CC=golang-dev
http://codereview.appspot.com/5321051

Committer: Nigel Tao <nigeltao@golang.org>
Sign in to reply to this message.

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