mirror of
https://github.com/golang/net.git
synced 2026-03-31 18:37:08 +09:00
If there are nested <template> elements and the <template> node isn't in HTML namespace, couldn't continue to parse documents correctly. By this patch, it makes the <template> which is in math namespace be skipped on resetting insertion mode. Fixes golang/go#27702 Change-Id: I6eacdb98fe29eb3c61781afca5bc4d83e72ba4ed Reviewed-on: https://go-review.googlesource.com/136875 Reviewed-by: Nigel Tao <nigeltao@golang.org>
38 lines
629 B
Plaintext
38 lines
629 B
Plaintext
#data
|
|
<body><template><yt-icon-button></yt-icon-button><form><paper-input></paper-input></form><style></style></template>
|
|
#errors
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <body>
|
|
| <template>
|
|
| content
|
|
| <yt-icon-button>
|
|
| <form>
|
|
| <paper-input>
|
|
| <style>
|
|
|
|
#data
|
|
<template><tBody><isindex/action=0>
|
|
#errors
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <template>
|
|
| content
|
|
| <tbody>
|
|
| <body>
|
|
|
|
#data
|
|
<math><template><mo><template>
|
|
#errors
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <body>
|
|
| <math math>
|
|
| <math template>
|
|
| <math mo>
|
|
| <template>
|
|
| content
|