]> Cypherpunks repositories - gostls13.git/commit
html: dump attributes when running parser tests.
authorAndrew Balholm <andybalholm@gmail.com>
Mon, 24 Oct 2011 22:33:15 +0000 (09:33 +1100)
committerNigel Tao <nigeltao@golang.org>
Mon, 24 Oct 2011 22:33:15 +0000 (09:33 +1100)
commit2f3f3aa2ed298344f03813214d6b8d486b5f113e
tree54ef8d87c8143c70d17d15287fbd2af5a331f0de
parent2b5aa28383b78c33e5d6a3e2a8994a6c7a9dee0f
html: dump attributes when running parser tests.

The WebKit test data shows attributes as though they were child nodes:

<a X>0<b>1<a Y>2
dumps as:
| <html>
|   <head>
|   <body>
|     <a>
|       x=""
|       "0"
|       <b>
|         "1"
|     <b>
|       <a>
|         y=""
|         "2"

So we need to do the same when dumping a tree to compare with it.

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