Add some attributes that fit into the list of the previous commit, too

This commit is contained in:
Eduard Braun 2016-08-30 22:32:57 +02:00
parent e76da093ea
commit 3929426a5a

View file

@ -2971,11 +2971,14 @@ def serializeXML(element, options, ind = 0, preserveWhitespace = False):
# now serialize the other attributes # now serialize the other attributes
known_attr = [ known_attr = [
# TODO: Maybe update with full list from https://www.w3.org/TR/SVG/attindex.html
# (but should be kept inuitively ordered)
'id', 'class', 'id', 'class',
'transform', 'transform',
'x', 'y', 'z', 'width', 'height', 'x1', 'x2', 'y1', 'y2', 'x', 'y', 'z', 'width', 'height', 'x1', 'x2', 'y1', 'y2',
'dx', 'dy', 'rotate', 'startOffset', 'method', 'spacing',
'cx', 'cy', 'r', 'rx', 'ry', 'fx', 'fy', 'cx', 'cy', 'r', 'rx', 'ry', 'fx', 'fy',
'd', 'd', 'points',
] + sorted(svgAttributes) + [ ] + sorted(svgAttributes) + [
'style', 'style',
] ]