]> Cypherpunks repositories - gostls13.git/commit
html: parse <body>, <base>, <link>, <meta>, and <title> tags inside page body
authorAndrew Balholm <andybalholm@gmail.com>
Tue, 8 Nov 2011 06:55:17 +0000 (17:55 +1100)
committerNigel Tao <nigeltao@golang.org>
Tue, 8 Nov 2011 06:55:17 +0000 (17:55 +1100)
commitf2b602ed4252ca0f37cf1ff0494342b75f0b6bfc
tree434ab7d6e8a88a591da72e4fb14e4a8185338230
parentb776b9e724f3edbe4f52d0c1b8dd3ee532a897a3
html: parse <body>, <base>, <link>, <meta>, and <title> tags inside page body

Pass tests1.dat, test 87:
<body><body><base><link><meta><title><p></title><body><p></body>

| <html>
|   <head>
|   <body>
|     <base>
|     <link>
|     <meta>
|     <title>
|       "<p>"
|     <p>

Handling the last <body> tag requires correcting the original insertion mode in useTheRulesFor.

Also pass test 88:
<textarea><p></textarea>

R=nigeltao
CC=golang-dev
https://golang.org/cl/5364047
src/pkg/html/parse.go
src/pkg/html/parse_test.go