diff options
author | Alex Henrie <alexhenrie24@gmail.com> | 2024-04-19 20:34:06 -0600 |
---|---|---|
committer | David Faure <faure@kde.org> | 2024-04-20 08:29:01 +0000 |
commit | 4b42055cdebc3e2405832961f408714599538ba7 (patch) | |
tree | 18b63cc00406d670ce17be44d418d518c4d1e5c1 | |
parent | d6f08b743faa1ee37660355c54ac93365412f2dc (diff) |
Prefer application/docbook+xml over application/x-docbook+xml
application/docbook+xml is the correct type according to the OASIS
standard, whereas application/x-docbook+xml is not part of any standard.
https://docs.oasis-open.org/docbook/specs/docbook-5.0-spec-os.html#media-type-registration
-rw-r--r-- | data/freedesktop.org.xml.in | 4 | ||||
-rw-r--r-- | tests/mime-detection/list | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in index 326c623..5727c16 100644 --- a/data/freedesktop.org.xml.in +++ b/data/freedesktop.org.xml.in @@ -5927,7 +5927,7 @@ command to generate the output files. <match type="string" value="DICM" offset="128"/> </magic> </mime-type> - <mime-type type="application/x-docbook+xml"> + <mime-type type="application/docbook+xml"> <comment>DocBook document</comment> <sub-class-of type="application/xml"/> <generic-icon name="x-office-document"/> @@ -5939,7 +5939,7 @@ command to generate the output files. </magic> <glob pattern="*.dbk"/> <glob pattern="*.docbook"/> - <alias type="application/docbook+xml"/> + <alias type="application/x-docbook+xml"/> <alias type="application/vnd.oasis.docbook+xml"/> </mime-type> <mime-type type="image/x-dib"> diff --git a/tests/mime-detection/list b/tests/mime-detection/list index 47948a5..b9b2aa6 100644 --- a/tests/mime-detection/list +++ b/tests/mime-detection/list @@ -502,7 +502,7 @@ test.raml application/raml+yaml helloworld.hqx application/mac-binhex40 # xml subtypes -../../data/shared-mime-info-spec.xml application/x-docbook+xml xox +../../data/shared-mime-info-spec.xml application/docbook+xml xox test.ttx application/x-font-ttx gtk-builder.ui application/x-gtk-builder x project.glade application/x-glade |