Skip to content

Commit aad6d85

Browse files
author
William Chen
committed
Added new tests for foster parenting in template, after after frameset and parsing fragment in html context.
1 parent 1c6c2c0 commit aad6d85

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

tree-construction/template.dat

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,18 @@
540540
| <tr>
541541
| <div>
542542

543+
#data
544+
<body><template><tr>Foo</tr></template>
545+
#errors
546+
#document
547+
| <html>
548+
| <head>
549+
| <body>
550+
| <template>
551+
| content
552+
| <tr>
553+
| "Foo"
554+
543555
#data
544556
<body><template><tr></tr><td></td></template>
545557
#errors
@@ -1144,6 +1156,20 @@
11441156
| <table>
11451157
| <body>
11461158

1159+
#data
1160+
<template><template><table><div>
1161+
#errors
1162+
#document
1163+
| <html>
1164+
| <head>
1165+
| <template>
1166+
| content
1167+
| <template>
1168+
| content
1169+
| <div>
1170+
| <table>
1171+
| <body>
1172+
11471173
#data
11481174
<template><template><frame>
11491175
#errors

tree-construction/tests26.dat

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,3 +386,13 @@ Line 1 Col 19 Expected closing tag. Unexpected end of file.
386386
| <button>
387387
| <p>
388388
| <button>
389+
390+
#data
391+
<!DOCTYPE html><html><frameset></frameset></html></frameset>
392+
#errors
393+
60: Stray end tag “frameset”.
394+
#document
395+
| <!DOCTYPE html>
396+
| <html>
397+
| <head>
398+
| <frameset>

tree-construction/tests_innerHTML_1.dat

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,3 +889,14 @@ html
889889
#document
890890
| <head>
891891
| <body>
892+
893+
#data
894+
<head></head><script></script>
895+
#errors
896+
21: “script” element between “head” and “body”.
897+
#document-fragment
898+
html
899+
#document
900+
| <head>
901+
| <script>
902+
| <body>

0 commit comments

Comments
 (0)