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

Issue 5323048: code review 5323048: html: improve parsing of tables (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 tables When foster parenting, merge adjacent text nodes. Properly close table row at </tr> tag. Pass tests1.dat, test 32: <!-----><font><div>hello<table>excite!<b>me!<th><i>please!</tr><!--X--> | <!-- - --> | <html> | <head> | <body> | <font> | <div> | "helloexcite!" | <b> | "me!" | <table> | <tbody> | <tr> | <th> | <i> | "please!" | <!-- X -->

Patch Set 1 #

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -8 lines) Patch
M src/pkg/html/parse.go View 1 5 chunks +26 lines, -7 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-25 17:09:41 UTC) #1
nigeltao
LGTM.
12 years, 6 months ago (2011-10-26 00:32:05 UTC) #2
nigeltao
12 years, 6 months ago (2011-10-26 00:36:56 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=1d7f964dac3a ***

html: improve parsing of tables

When foster parenting, merge adjacent text nodes.
Properly close table row at </tr> tag.

Pass tests1.dat, test 32:
<!-----><font><div>hello<table>excite!<b>me!<th><i>please!</tr><!--X-->

| <!-- - -->
| <html>
|   <head>
|   <body>
|     <font>
|       <div>
|         "helloexcite!"
|         <b>
|           "me!"
|         <table>
|           <tbody>
|             <tr>
|               <th>
|                 <i>
|                   "please!"
|             <!-- X -->

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

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