KDE Frameworks 5.6 changed the output format of ktraderclient5 tool.
The output of the command "/usr/bin/ktraderclient5 --mimetype text/html --servicetype Application" changed from  to 
I implemented a possible fix  which processes both style of outputs.
that incompatible ktraderclient5 change was reverted,
I suppose we could consider adjusting xdg-mime to handle both cases, does your patch do that?
Yes, my patch would handle both extended and short output correctly.
I've actually updated the patch  to make it more robust and avoid possible wrong matches on weird comments or other properties.
Note that these wrong matches were still possible even without my patch.
OK, though I usually prefer that separate issues be fixed by separate commits for more clarity, we can make an exception here