自分用にカスタマイズしたshared-mime-infoのソース
Revision | 9ffcb5655d61fa7b109f80c8a6a42467d87de167 (tree) |
---|---|
Time | 2019-09-11 20:21:39 |
Author | Bastien Nocera <hadess@hade...> |
Commiter | Bastien Nocera |
tests: Add HTML file that'd get matched as XHTML
@@ -84,6 +84,8 @@ mypaint.ora image/openraster | ||
84 | 84 | # Copied from https://bugs.freedesktop.org/show_bug.cgi?id=19201#c3 |
85 | 85 | test.xhtml application/xhtml+xml |
86 | 86 | test.xht application/xhtml+xml |
87 | +# Copied from https://gitlab.freedesktop.org/xdg/shared-mime-info/issues/98 | |
88 | +test-really-html-not-xhtml.html text/html oxx | |
87 | 89 | # Copied from http://cvs.fedoraproject.org/viewvc/comps/comps-f11.xml.in?revision=1.306 |
88 | 90 | test.xml.in application/xml x |
89 | 91 | # Copied from http://bugs.freedesktop.org/show_bug.cgi?id=25581 |
@@ -0,0 +1,4 @@ | ||
1 | + | |
2 | +<!-- 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. --> | |
3 | + | |
4 | +<p>Hello</p> |