summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <pwithnall@endlessos.org>2022-04-01 12:35:34 +0100
committerDavid Faure <faure@kde.org>2023-09-03 07:54:30 +0000
commit2853619564368c5de6f5188f2d3ea84a37fb386b (patch)
treea67b694b90310431940af1ca444b63a2af930467
parent07d8cbb05b6aa6dcb974e254406d58b5d04837ab (diff)
spec: Clarify that namespaceURI can be empty
The previous wording in the spec didn’t make it clear that it isn’t required (but at least one of it and `localName` is required). This wording is based on the error checking present in `update-mime-database.c`, rather than some innate knowledge of how MIME information should work. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
-rw-r--r--data/shared-mime-info-spec.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/data/shared-mime-info-spec.xml b/data/shared-mime-info-spec.xml
index 06358cf..9ba1cfc 100644
--- a/data/shared-mime-info-spec.xml
+++ b/data/shared-mime-info-spec.xml
@@ -357,6 +357,11 @@ of the document element.
</para><para>
If <userinput>localName</userinput> is present but empty then the document element may have
any name, but the namespace must still match.
+ </para><para>
+If <userinput>namespaceURI</userinput> is present but empty then the match is done entirely on
+the document element’s local name and any namespace URI present in the document is ignored.
+ </para><para>
+Both attributes must be specified, and at least one of them must be non-empty.
</para></listitem>
<listitem><para>
<userinput>treemagic</userinput> elements contain a list of <userinput>treematch</userinput> elements,