diTii.com Digital News Hub

Sign up with your email address to be the first to know about latest news and more.

I agree to have my personal information transfered to MailChimp (more information)

Aug312006

Embedded SVG in Protowidget

Terry Laurenzo on “Embedded SVG” —”So I fixed all of that and added real namespace support so that the Protowidget attributes are now part of their own namespace if using an XHTML document. If working in normal HTML, the pw.* syntax can still be used. There’s even a hack, so that if you use the “pw:” prefix for your namespace, the parser will be able to work around IE’s deficiencies. I then added an SvgWidget to mirror the HTML DOMWidget (which in hindsight should have been named HTMLWidget). It’s basically a light version of the DOMWidget base class which leaves off the CSS class and style processing that does not apply (at least in the same way) to SVG elements.”

The end result was to change the example SVG to include some Protowidget attributes:







Demo: SVG enabled browser | Read Complete article

ajaxian

Embedded SVG in Protowidget

Share This Story, Choose Your Platform!

Do NOT follow this link or you will be banned from the site!