• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

自分用にカスタマイズしたshared-mime-infoのソース


コミットメタ情報

リビジョン9ffcb5655d61fa7b109f80c8a6a42467d87de167 (tree)
日時2019-09-11 20:21:39
作者Bastien Nocera <hadess@hade...>
コミッターBastien Nocera

ログメッセージ

tests: Add HTML file that'd get matched as XHTML

変更サマリ

差分

--- a/tests/list
+++ b/tests/list
@@ -84,6 +84,8 @@ mypaint.ora image/openraster
8484 # Copied from https://bugs.freedesktop.org/show_bug.cgi?id=19201#c3
8585 test.xhtml application/xhtml+xml
8686 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
8789 # Copied from http://cvs.fedoraproject.org/viewvc/comps/comps-f11.xml.in?revision=1.306
8890 test.xml.in application/xml x
8991 # Copied from http://bugs.freedesktop.org/show_bug.cgi?id=25581
--- /dev/null
+++ b/tests/test-really-html-not-xhtml.html
@@ -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>