Thanks Jeff! I forgot entirely about the class attribute! I haven't used CSS in that manner in a very long time. Chrome, Firefox and now Opera work (haven't checked IE) using this solution with a pure SVG file. Chrome and Firefox accept it in a HTML/SVG file, but Opera has so many problems displaying my HTML/SVG file that I don't know if it works or not.
Seems odd that I can give an element class, even if it doesn't have any, no style definition needed, just the attribute itself.
Don't know if this is the perfect solution, seems like a hack. Hope the writers of the specs are aware of this need. Otherwise we'll be stuck with an internet that is reliant only on separate pages for displaying content. Great for advertisers, not so for developers.
Anyone else have a better solution?
--- In firstname.lastname@example.org, Jeff Schiller <codedread@...> wrote:
> Use the class attribute?