Affinity Designer stripped my data-xxx attributes. So far I've not found an editor that lets you edit attributes (eg class) other than the id. On OSX tried Sketch, Figma, Affinity Designer, but unable to try Inkscape due to currently incompatibility with OSX Ventura.