X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/7558a6d8aa56f38908c613882db44a009d33ae37..6ba56392ce1963d80f70f131cdbbde644fd0d1eb:/doc/todo/svg.mdwn diff --git a/doc/todo/svg.mdwn b/doc/todo/svg.mdwn index b7a8e26da..08439fa6a 100644 --- a/doc/todo/svg.mdwn +++ b/doc/todo/svg.mdwn @@ -6,4 +6,31 @@ We should support SVG. In particular: --[[JoshTriplett]] +I'm allowing for inline SVG on my own installation. I've patched my +copy of htmlscrubber.pm to allow safe MathML and SVG elements (as +implemented in html5lib). Here's a patch +if anyone else is interested. +Actually, that patch wasn't quite +right. I'll post a new one when it's working properly. --[[JasonBlevins]] + +* * * + +I'd like to hear what people think about the following: + +1. Including whitelists of elements and attributes for SVG and MathML in + htmlscrubber. See my current [htmlscrubber.pm][] and the [diff][] + from the current trunk. + +2. Creating a whitelist of safe SVG (and maybe even HTML) style + attributes such as `fill`, `stroke-width`, etc. + + This is how the [sanitizer][] in html5lib works. It shouldn't be too + hard to translate the relevant parts to Perl. + + --[[JasonBlevins]], March 21, 2008 11:39 EDT + +[htmlscrubber.pm]: http://xbeta.org/gitweb/?p=xbeta/ikiwiki.git;a=blob;f=IkiWiki/Plugin/htmlscrubber.pm;hb=fa9045c07efce434f24edb05b542c88815452873 +[diff]: http://xbeta.org/gitweb/?p=xbeta/ikiwiki.git;a=blobdiff;f=IkiWiki/Plugin/htmlscrubber.pm;h=35c546620f8f58eb50c72783f11d422b06de93ca;hp=3bdaccea119ec0e1b289a0da2f6d90e2219b8d66;hb=fa9045c07efce434f24edb05b542c88815452873;hpb=be0b4f603f918444b906e42825908ddac78b7073 +[sanitizer]: http://code.google.com/p/html5lib/source/browse/trunk/ruby/lib/html5/sanitizer.rb + [[wishlist]]