summaryrefslogtreecommitdiff
path: root/test/html
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2024-06-11 20:15:44 +0200
committerRodrigo Arias Mallo <rodarima@gmail.com>2024-06-11 20:44:02 +0200
commitfd120fb9b09ddd584ff9bf41e9ca0d29c99dd7a0 (patch)
treebe6589d96d7a4a6595c587eb27e83c00049a3a26 /test/html
parent2c01e5876168eb18166f33e08c819447a57a3e21 (diff)
Ignore empty page title for tab labels
When a page has an empty title like <title></title>, don't use it to set the tab label, but instead rely on the default tab label, which is computed from the file name.
Diffstat (limited to 'test/html')
-rw-r--r--test/html/manual/title-dup.html10
-rw-r--r--test/html/manual/title-empty.html9
-rw-r--r--test/html/manual/title-missing.html8
3 files changed, 27 insertions, 0 deletions
diff --git a/test/html/manual/title-dup.html b/test/html/manual/title-dup.html
new file mode 100644
index 00000000..eaae117c
--- /dev/null
+++ b/test/html/manual/title-dup.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>one</title>
+ <title>two</title>
+ </head>
+ <body>
+ <p>Duplicated title</p>
+ </body>
+</html>
diff --git a/test/html/manual/title-empty.html b/test/html/manual/title-empty.html
new file mode 100644
index 00000000..7251307b
--- /dev/null
+++ b/test/html/manual/title-empty.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title></title>
+ </head>
+ <body>
+ <p>Empty title</p>
+ </body>
+</html>
diff --git a/test/html/manual/title-missing.html b/test/html/manual/title-missing.html
new file mode 100644
index 00000000..9227ec15
--- /dev/null
+++ b/test/html/manual/title-missing.html
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ </head>
+ <body>
+ <p>Missing title</p>
+ </body>
+</html>