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

Issue 5309052: code review 5309052: html: implement foster parenting (Closed)

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

Description

html: implement foster parenting Implement the foster-parenting algorithm for content that is inside a table but not in a cell. Also fix a bug in reconstructing the active formatting elements. Pass test 30 in tests1.dat: <a><table><td><a><table></table><a></tr><a></table><b>X</b>C<a>Y

Patch Set 1 #

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

Total comments: 18

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -29 lines) Patch
M src/pkg/html/parse.go View 1 2 10 chunks +95 lines, -28 lines 0 comments Download
M src/pkg/html/parse_test.go View 1 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 6
andybalholm
Hello nigeltao@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years, 12 months ago (2011-10-22 18:48:35 UTC) #1
nigeltao
http://codereview.appspot.com/5309052/diff/1001/src/pkg/html/parse.go File src/pkg/html/parse.go (right): http://codereview.appspot.com/5309052/diff/1001/src/pkg/html/parse.go#newcode35 src/pkg/html/parse.go:35: // fosterParenting is turned on while new elements should ...
14 years, 12 months ago (2011-10-22 22:50:05 UTC) #2
andybalholm
Hello nigeltao@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 12 months ago (2011-10-22 23:24:08 UTC) #3
andybalholm
http://codereview.appspot.com/5309052/diff/1001/src/pkg/html/parse.go File src/pkg/html/parse.go (right): http://codereview.appspot.com/5309052/diff/1001/src/pkg/html/parse.go#newcode35 src/pkg/html/parse.go:35: // fosterParenting is turned on while new elements should ...
14 years, 12 months ago (2011-10-22 23:25:03 UTC) #4
nigeltao
LGTM.
14 years, 12 months ago (2011-10-23 07:15:49 UTC) #5
nigeltao
14 years, 12 months ago (2011-10-23 07:37:46 UTC) #6
*** Submitted as http://code.google.com/p/go/source/detail?r=e0f2cfa42ede ***

html: implement foster parenting

Implement the foster-parenting algorithm for content that is inside a table
but not in a cell.

Also fix a bug in reconstructing the active formatting elements.

Pass test 30 in tests1.dat:
<a><table><td><a><table></table><a></tr><a></table><b>X</b>C<a>Y

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

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