Skip to content

Commit d3c2458

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 a9badff commit d3c2458

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
@@ -632,6 +632,18 @@ foster-parented /div
632632
| <tr>
633633
| <div>
634634

635+
#data
636+
<body><template><tr>Foo</tr></template>
637+
#errors
638+
#document
639+
| <html>
640+
| <head>
641+
| <body>
642+
| <template>
643+
| content
644+
| <tr>
645+
| "Foo"
646+
635647
#data
636648
<body><template><tr></tr><td></td></template>
637649
#errors
@@ -1361,6 +1373,20 @@ eof
13611373
| <table>
13621374
| <body>
13631375

1376+
#data
1377+
<template><template><table><div>
1378+
#errors
1379+
#document
1380+
| <html>
1381+
| <head>
1382+
| <template>
1383+
| content
1384+
| <template>
1385+
| content
1386+
| <div>
1387+
| <table>
1388+
| <body>
1389+
13641390
#data
13651391
<template><template><frame>
13661392
#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)