On Mon, 2017-05-01 at 01:33 -0400, Steve Litt wrote:
Hi all,
When I do HTML, which is DOM based, I'm able to assign a class property to any element I want. In Inkscape, I've not been able to assign a class property. Does anyone know how that could be done --- it would really simplify some stuff I'm doing.
If Inkscape has no provision for a class property on elements, will it at least leave as-is any class properties I put in with a text editor?
Inkscape trunk has a "Style dialog" (Object->Style dialog) which allows one to add the 'class' attribute to objects.
http://wiki.inkscape.org/wiki/index.php/Style_Editor
One can also directly add JavaScript snippets using the "Object Properties dialog:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Web--Javascript.ht ml
If one includes an SVG into an HTML file using the <object>, <iframe>, or <embed> tags, the JavaScript will work. The <img> tag does not allow JavaScript.
Tav
Thanks,
SteveT
Steve Litt April 2017 featured book: Troubleshooting Techniques of the Successful Technologist http://www.troubleshooters.com/techniques