diff options
author | Bastien Nocera <hadess@hadess.net> | 2019-09-11 13:18:50 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2019-09-11 13:21:39 +0200 |
commit | 9ffcb5655d61fa7b109f80c8a6a42467d87de167 (patch) | |
tree | e8a5ae9eec4ab82afe3b7ce8b183c43b20841e26 | |
parent | 75ba8d617397fc64d11f267cbd7cb47286d2ea09 (diff) | |
download | shared-mime-info-9ffcb5655d61fa7b109f80c8a6a42467d87de167.tar.gz |
tests: Add HTML file that'd get matched as XHTML
-rw-r--r-- | tests/list | 2 | ||||
-rw-r--r-- | tests/test-really-html-not-xhtml.html | 4 |
2 files changed, 6 insertions, 0 deletions
@@ -84,6 +84,8 @@ mypaint.ora image/openraster # Copied from https://bugs.freedesktop.org/show_bug.cgi?id=19201#c3 test.xhtml application/xhtml+xml test.xht application/xhtml+xml +# Copied from https://gitlab.freedesktop.org/xdg/shared-mime-info/issues/98 +test-really-html-not-xhtml.html text/html oxx # Copied from http://cvs.fedoraproject.org/viewvc/comps/comps-f11.xml.in?revision=1.306 test.xml.in application/xml x # Copied from http://bugs.freedesktop.org/show_bug.cgi?id=25581 diff --git a/tests/test-really-html-not-xhtml.html b/tests/test-really-html-not-xhtml.html new file mode 100644 index 00000000..ae1a7704 --- /dev/null +++ b/tests/test-really-html-not-xhtml.html @@ -0,0 +1,4 @@ + +<!-- This is perfectly valid HTML, but malformed XHTML. Loading this file will result in errors when using xdg shared-mime-info 1.12, as is available in Fedora 30, for example. This is because this long comment at the start of the file stops mime-info magic from detecting that this is HTML instead of XHTML and XHTML is weighted higher for the .html extension. --> + +<p>Hello</p> |