aboutsummaryrefslogtreecommitdiff
path: root/test/html
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2024-06-22 20:47:53 +0200
committerRodrigo Arias Mallo <rodarima@gmail.com>2024-10-01 20:58:38 +0200
commit3eb7b5544452ab001f3c570ddd5760bcc61f413c (patch)
tree28db9b16f772a514aea4ed9c0c27a4ee34a7e7cf /test/html
parent4f303337cdf3d86b69918a137db19351cdbae581 (diff)
Add unclosed tag test for tbody, thead and tfoot
Diffstat (limited to 'test/html')
-rw-r--r--test/html/Makefile.am1
-rw-r--r--test/html/render/table-thead-tfoot-open-tag.html35
-rw-r--r--test/html/render/table-thead-tfoot-open-tag.ref.html35
3 files changed, 71 insertions, 0 deletions
diff --git a/test/html/Makefile.am b/test/html/Makefile.am
index 5b6643d6..eee0e3fd 100644
--- a/test/html/Makefile.am
+++ b/test/html/Makefile.am
@@ -37,6 +37,7 @@ TESTS = \
render/table-td-width-percent-img.html \
render/table-td-width-percent.html \
render/table-thead-tfoot.html \
+ render/table-thead-tfoot-open-tag.html \
render/white-space.html
# To be fixed
diff --git a/test/html/render/table-thead-tfoot-open-tag.html b/test/html/render/table-thead-tfoot-open-tag.html
new file mode 100644
index 00000000..0a71215f
--- /dev/null
+++ b/test/html/render/table-thead-tfoot-open-tag.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Test thead, tbody and tfoot</title>
+ <style>
+ thead {color: green;}
+ tbody {color: blue;}
+ tfoot {color: red;}
+
+ table, th, td {
+ border: 1px solid black;
+ }
+ </style>
+ </head>
+ <body>
+ <table>
+ <thead>
+ <tr>
+ <th>Month</th>
+ <th>Savings
+ <tbody>
+ <tr>
+ <td>January
+ <td>$100
+ <tr>
+ <td>February
+ <td>$80
+ <tfoot>
+ <tr>
+ <td>Sum
+ <td>$180
+ </tfoot>
+ </table>
+ </body>
+</html>
diff --git a/test/html/render/table-thead-tfoot-open-tag.ref.html b/test/html/render/table-thead-tfoot-open-tag.ref.html
new file mode 100644
index 00000000..031ade7f
--- /dev/null
+++ b/test/html/render/table-thead-tfoot-open-tag.ref.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Test thead, tbody and tfoot</title>
+ <style>
+ .head {color: green; font-weight: bold; align: center; }
+ .body {color: blue;}
+ .foot {color: red;}
+
+ table, th, td {
+ border: 1px solid black;
+ }
+ </style>
+ </head>
+ <body>
+ <table>
+ <tr class="head">
+ <th>Month</th>
+ <th>Savings</th>
+ </tr>
+ <tr class="body">
+ <td>January</td>
+ <td>$100</td>
+ </tr>
+ <tr class="body">
+ <td>February</td>
+ <td>$80</td>
+ </tr>
+ <tr class="foot">
+ <td>Sum</td>
+ <td>$180</td>
+ </tr>
+ </table>
+ </body>
+</html>