diff options
Diffstat (limited to 'src/pkg/html/parse.go')
| -rw-r--r-- | src/pkg/html/parse.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pkg/html/parse.go b/src/pkg/html/parse.go index 74578c2b22..6618600a15 100644 --- a/src/pkg/html/parse.go +++ b/src/pkg/html/parse.go @@ -734,6 +734,11 @@ func inBodyIM(p *parser) bool { case "plaintext": p.popUntil(buttonScopeStopTags, "p") p.addElement(p.tok.Data, p.tok.Attr) + case "button": + p.popUntil(defaultScopeStopTags, "button") + p.reconstructActiveFormattingElements() + p.addElement(p.tok.Data, p.tok.Attr) + p.framesetOK = false case "optgroup", "option": if p.top().Data == "option" { p.oe.pop() |
