Kunpei Sakai
2f5d238892
html: avoid panic even if unconsidered <isindex> and <template> combination
...
The <isindex> element has been removed from the spec so that the
<template> element doesn't cover it.
To avoid panic, this commit adds ignoring code as a workaround.
Fixes golang/go#27704
Change-Id: I847391389285df2fc0eb6a795f8c93b481cdebac
Reviewed-on: https://go-review.googlesource.com/136575
Reviewed-by: Nigel Tao <nigeltao@golang.org >
2018-09-21 00:03:56 +00:00
Kunpei Sakai
8a410e7b63
html: fix wrong comparison in foster parenting algorithm
...
Fixes golang/go#23071
Change-Id: I383e13bfd87e32ffb775dff54c46b66b090e5017
Reviewed-on: https://go-review.googlesource.com/131475
Run-TryBot: Kunpei Sakai <namusyaka@gmail.com >
TryBot-Result: Gobot Gobot <gobot@golang.org >
Reviewed-by: Nigel Tao <nigeltao@golang.org >
2018-08-26 01:23:51 +00:00
Kunpei Sakai
4bcd98cce5
html: copy passed tests from chromium
...
Updates golang/go#23071
Change-Id: I1fdf3fe8c94efdf3c4bf9c39900468381159a032
Reviewed-on: https://go-review.googlesource.com/131178
Run-TryBot: Kunpei Sakai <namusyaka@gmail.com >
TryBot-Result: Gobot Gobot <gobot@golang.org >
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
2018-08-24 15:20:47 +00:00
Kunpei Sakai
faa378e6db
html: handle end-of-file cases correctly
...
Updates golang/go#23071
Change-Id: I02a61109b5738759a9ee3e448981778de7d0ff62
Reviewed-on: https://go-review.googlesource.com/130795
Run-TryBot: Kunpei Sakai <namusyaka@gmail.com >
TryBot-Result: Gobot Gobot <gobot@golang.org >
Reviewed-by: Nigel Tao <nigeltao@golang.org >
2018-08-24 04:51:31 +00:00
Kunpei Sakai
aaf6012214
html: remove special procedure for <template> in frameset im
...
See more details: https://bugs.chromium.org/p/chromium/issues/detail?id=829668
Updates golang/go#23071
Change-Id: Ib9c963269f814c3f21d3784754729df57dcc8f90
Reviewed-on: https://go-review.googlesource.com/123776
Run-TryBot: Kunpei Sakai <namusyaka@gmail.com >
TryBot-Result: Gobot Gobot <gobot@golang.org >
Reviewed-by: Nigel Tao <nigeltao@golang.org >
2018-08-16 10:28:01 +00:00
Kunpei Sakai
c394268923
html: don't ignore token when current token is not <template>
...
Updates golang/go#23071
Change-Id: I36b0ee58f61b7de25730e0fb082eeb7ef2787594
Reviewed-on: https://go-review.googlesource.com/123920
Run-TryBot: Kunpei Sakai <namusyaka@gmail.com >
TryBot-Result: Gobot Gobot <gobot@golang.org >
Reviewed-by: Nigel Tao <nigeltao@golang.org >
2018-08-11 02:16:10 +00:00
Kunpei Sakai
32a936f463
html: don't ignore the token if the current node is form
...
See: https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inbody
Fixes golang/go#25703
Updates golang/go#23071
Change-Id: I09db4c2d07a242cb45c3e37b499c609809dd0b83
Reviewed-on: https://go-review.googlesource.com/120658
Run-TryBot: Kunpei Sakai <namusyaka@gmail.com >
TryBot-Result: Gobot Gobot <gobot@golang.org >
Reviewed-by: Nigel Tao <nigeltao@golang.org >
2018-07-06 05:13:57 +00:00
Kunpei Sakai
d41e817464
html: handle rb and rtc elements
...
Updates golang/go#23071
Change-Id: Ifef79e077801422eb273af3e5a541c85c63bfce4
Reviewed-on: https://go-review.googlesource.com/107575
Reviewed-by: Nigel Tao <nigeltao@golang.org >
2018-04-18 06:21:11 +00:00
namusyaka
500e7a4f95
html: add "in template" insertion mode support
...
See:
https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-intemplate
Updates golang/go#23071
Change-Id: I36529b7cf5d2adf159ed5c471fba9f67890b7eb9
Reviewed-on: https://go-review.googlesource.com/94838
Run-TryBot: Kunpei Sakai <namusyaka@gmail.com >
TryBot-Result: Gobot Gobot <gobot@golang.org >
Reviewed-by: Nigel Tao <nigeltao@golang.org >
2018-04-15 21:43:07 +00:00
Ian Lance Taylor
05bc443e7e
html: remove license references from benchmark test data
...
The license references puzzle programs that grep for licenses.
Fixes golang/go#13573 .
Change-Id: I601fbc6ba2b189b476af1082c48fb02cd72f59d8
Reviewed-on: https://go-review.googlesource.com/17714
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
2015-12-11 03:42:21 +00:00
Nigel Tao
ea127e889c
go.net/html: move exp/html and exp/html/atom here to the go.net
...
sub-repo.
It's a straight copy, except for these modifications:
* "exp/html" and "exp/html/atom" imports were renamed, and
* the "TODO... When this package moves out of exp" comment was
deleted from atom/atom.go.
The matching change is at https://golang.org/cl/7317043
The rationale was discussed at
https://groups.google.com/d/topic/golang-nuts/Qq5hTQyPuLg/discussion
R=adg, remyoudompheng, dave
CC=golang-dev
https://golang.org/cl/7310063
2013-02-11 11:55:20 +11:00