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

Issue 5494078: code review 5494078: html: handle breakout tags in foreign content. (Closed)

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

Description

html: handle breakout tags in foreign content. Also recognize that, in the latest version of the HTML5 spec, foreign content is not an insertion mode, but a separate concern. Pass tests10.dat, test 13: <!DOCTYPE html><body><table><caption><svg><g>foo</g><g>bar</g><p>baz</table><p>quux | <!DOCTYPE html> | <html> | <head> | <body> | <table> | <caption> | <svg svg> | <svg g> | "foo" | <svg g> | "bar" | <p> | "baz" | <p> | "quux" Also pass tests through test 15: <!DOCTYPE html><body><table><colgroup><svg><g>foo</g><g>bar</g><p>baz</table><p>quux

Patch Set 1 #

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

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

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

Patch Set 5 : diff -r 9e82f2cb91c4 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -12 lines) Patch
M src/pkg/html/parse.go View 1 2 7 chunks +30 lines, -11 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
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, 7 months ago (2011-12-20 02:29:59 UTC) #1
andybalholm
LGTM
13 years, 7 months ago (2011-12-20 16:16:17 UTC) #2
nigeltao
13 years, 7 months ago (2011-12-20 23:00:45 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=e30e522e4dc5 ***

html: handle breakout tags in foreign content.

Also recognize that, in the latest version of the HTML5 spec,
foreign content is not an insertion mode, but a separate concern.

Pass tests10.dat, test 13:
<!DOCTYPE
html><body><table><caption><svg><g>foo</g><g>bar</g><p>baz</table><p>quux

| <!DOCTYPE html>
| <html>
|   <head>
|   <body>
|     <table>
|       <caption>
|         <svg svg>
|           <svg g>
|             "foo"
|           <svg g>
|             "bar"
|         <p>
|           "baz"
|     <p>
|       "quux"

Also pass tests through test 15:
<!DOCTYPE
html><body><table><colgroup><svg><g>foo</g><g>bar</g><p>baz</table><p>quux

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

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