From 7eebd3709b01bd35a88d1370bf3954c28f50bcb9 Mon Sep 17 00:00:00 2001
From: Joey Hess <joey@kitenet.net>
Date: Fri, 21 Mar 2008 11:19:00 -0400
Subject: web commit by http://jblevins.org/: Request for comments about SVG
 and MathML whitelists

---
 doc/todo/svg.mdwn | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

(limited to 'doc/todo/svg.mdwn')

diff --git a/doc/todo/svg.mdwn b/doc/todo/svg.mdwn
index d713d48cd..69fba2a99 100644
--- a/doc/todo/svg.mdwn
+++ b/doc/todo/svg.mdwn
@@ -13,4 +13,20 @@ if anyone else is interested.</del>
 <ins datetime="2008-03-20T23:05-05:00">Actually, that patch wasn't quite
 right.  I'll post a new one when it's working properly.</ins> --[[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  [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.
+
+[htmlscrubber.pm]: http://xbeta.org/gitweb/?p=xbeta/ikiwiki.git;a=blob;f=IkiWiki/Plugin/htmlscrubber.pm;hb=db56b62ce99cdb7ffe41a8decaca34ade7964aa4
+[diff]: http://xbeta.org/gitweb/?p=xbeta/ikiwiki.git;a=blobdiff;f=IkiWiki/Plugin/htmlscrubber.pm;h=e4234e3b31f54fd5ca929fe7bece88d176dab03a;hp=3bdaccea119ec0e1b289a0da2f6d90e2219b8d66;hb=db56b62ce99cdb7ffe41a8decaca34ade7964aa4;hpb=be0b4f603f918444b906e42825908ddac78b7073
+[sanitizer]: http://code.google.com/p/html5lib/source/browse/trunk/ruby/lib/html5/sanitizer.rb
+
 [[wishlist]]
-- 
cgit v1.2.3


From 6ba56392ce1963d80f70f131cdbbde644fd0d1eb Mon Sep 17 00:00:00 2001
From: Joey Hess <joey@kitenet.net>
Date: Fri, 21 Mar 2008 11:40:33 -0400
Subject: web commit by http://jblevins.org/: Fix links and sign

---
 doc/todo/svg.mdwn | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

(limited to 'doc/todo/svg.mdwn')

diff --git a/doc/todo/svg.mdwn b/doc/todo/svg.mdwn
index 69fba2a99..08439fa6a 100644
--- a/doc/todo/svg.mdwn
+++ b/doc/todo/svg.mdwn
@@ -13,10 +13,12 @@ if anyone else is interested.</del>
 <ins datetime="2008-03-20T23:05-05:00">Actually, that patch wasn't quite
 right.  I'll post a new one when it's working properly.</ins> --[[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  [htmlscrubber.pm][] and the [diff][]
+   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
@@ -25,8 +27,10 @@ I'd like to hear what people think about the following:
    This is how the [sanitizer][] in html5lib works.  It shouldn't be too
    hard to translate the relevant parts to Perl.
 
-[htmlscrubber.pm]: http://xbeta.org/gitweb/?p=xbeta/ikiwiki.git;a=blob;f=IkiWiki/Plugin/htmlscrubber.pm;hb=db56b62ce99cdb7ffe41a8decaca34ade7964aa4
-[diff]: http://xbeta.org/gitweb/?p=xbeta/ikiwiki.git;a=blobdiff;f=IkiWiki/Plugin/htmlscrubber.pm;h=e4234e3b31f54fd5ca929fe7bece88d176dab03a;hp=3bdaccea119ec0e1b289a0da2f6d90e2219b8d66;hb=db56b62ce99cdb7ffe41a8decaca34ade7964aa4;hpb=be0b4f603f918444b906e42825908ddac78b7073
+   --[[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]]
-- 
cgit v1.2.3


From 5e52e05fd20d9185a740e45f34eec68d7678d383 Mon Sep 17 00:00:00 2001
From: Joey Hess <joey@kitenet.net>
Date: Fri, 21 Mar 2008 13:58:25 -0400
Subject: web commit by http://jblevins.org/: Case-sensitivity of
 HTML::Scrubber

---
 doc/todo/svg.mdwn | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

(limited to 'doc/todo/svg.mdwn')

diff --git a/doc/todo/svg.mdwn b/doc/todo/svg.mdwn
index 08439fa6a..9649ba9b4 100644
--- a/doc/todo/svg.mdwn
+++ b/doc/todo/svg.mdwn
@@ -6,6 +6,8 @@ We should support SVG.  In particular:
 
 --[[JoshTriplett]]
 
+[[wishlist]]
+
 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).  <del datetime="2008-03-20T23:04-05:00">Here's a patch
@@ -33,4 +35,13 @@ I'd like to hear what people think about the following:
 [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]]
+* * * 
+
+Another problem is that [HTML::Scrubber][] converts all tags to lowercase.
+Some SVG elements, such as viewBox, are mixed case.  It seems that
+properly handling SVG might require moving to a different sanitizer.
+It seems that [HTML::Sanitizer][] has functions for sanitizing XHTML.
+Any thoughts? --[[JasonBlevins]], March 21, 2008 13:54 EDT
+
+[HTML::Scrubber]: http://search.cpan.org/~podmaster/HTML-Scrubber-0.08/Scrubber.pm
+[HTML::Sanitizer]: http://search.cpan.org/~nesting/HTML-Sanitizer-0.04/Sanitizer.pm
-- 
cgit v1.2.3