1
0
Fork 0
mirror of synced 2025-07-03 03:47:20 +02:00

Add a test for svg namespace

This commit is contained in:
jvoisin 2019-07-22 23:20:37 +02:00
parent a81ea65d44
commit 5280b6c2b3
3 changed files with 639 additions and 2 deletions

View file

@ -37,7 +37,7 @@ class SVGParser(exiftool.ExiftoolParser):
def get_meta(self) -> Dict[str, Union[str, dict]]:
meta = super().get_meta()
# The namespace is mandatory, but thereis only one bossible.
# The namespace is mandatory, but only the …/2000/svg is valid.
ns = 'http://www.w3.org/2000/svg'
if meta.get('Xmlns', ns) == ns:
meta.pop('Xmlns')