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

Issue 6206093: code review 6206093: exp/html: adjust inCellIM to match spec (Closed)

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

Description

exp/html: adjust inCellIM to match spec Clean up flow of control. Ignore </table>, </tbody>, </tfoot>, </thead>, </tr> if there is not an appropriate element in table scope. Pass 3 more tests.

Patch Set 1 #

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

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

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -21 lines) Patch
M src/pkg/exp/html/parse.go View 1 2 chunks +17 lines, -18 lines 2 comments Download
M src/pkg/exp/html/testlogs/webkit02.dat.log View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 4
andybalholm
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com, nigeltao@golang.org), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 9 months ago (2012-05-21 17:46:26 UTC) #1
nigeltao
LGTM, and submitting, but I'm curious about the unconditional popUntil. http://codereview.appspot.com/6206093/diff/5001/src/pkg/exp/html/parse.go File src/pkg/exp/html/parse.go (right): http://codereview.appspot.com/6206093/diff/5001/src/pkg/exp/html/parse.go#newcode1492 ...
12 years, 9 months ago (2012-05-22 00:30:18 UTC) #2
nigeltao
*** Submitted as http://code.google.com/p/go/source/detail?r=3ce27769ca65 *** exp/html: adjust inCellIM to match spec Clean up flow of ...
12 years, 9 months ago (2012-05-22 00:31:31 UTC) #3
andybalholm
12 years, 9 months ago (2012-05-22 03:15:30 UTC) #4
http://codereview.appspot.com/6206093/diff/5001/src/pkg/exp/html/parse.go
File src/pkg/exp/html/parse.go (right):

http://codereview.appspot.com/6206093/diff/5001/src/pkg/exp/html/parse.go#new...
src/pkg/exp/html/parse.go:1492: p.popUntil(tableScope, "td", "th")
The spec says:

The stack of open elements cannot have both a td and a th element in table scope
at the same time, nor can it have neither when the close the cell algorithm is
invoked.

If this is true, popUntil will always return true here.
Sign in to reply to this message.

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