]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
more html5 attributes
authorJoey Hess <joey@kitenet.net>
Sat, 1 May 2010 23:11:03 +0000 (19:11 -0400)
committerJoey Hess <joey@kitenet.net>
Sat, 1 May 2010 23:11:03 +0000 (19:11 -0400)
IkiWiki/Plugin/htmlscrubber.pm
debian/changelog
doc/bugs/html5_support.mdwn

index 7517c82c647a487faf1fc0e26ad973487596e4af..d52614a4db7853b7b1228d8f4f31b918db97a955 100644 (file)
@@ -85,6 +85,7 @@ sub scrubber {
 
                        video audio source section nav article aside hgroup
                        header footer figure figcaption time mark canvas
+                       datalist
                }],
                default => [undef, { (
                        map { $_ => 1 } qw{
@@ -104,11 +105,15 @@ sub scrubber {
                                autofocus autoplay preload loopstart
                                loopend end playcount controls pubdate
                                placeholder min max step form required
+                               autocomplete novalidate pattern list
+                               formenctype formmethod formnovalidate
+                               formtarget reversed
                        } ),
                        "/" => 1, # emit proper <hr /> XHTML
                        href => $safe_url_regexp,
                        src => $safe_url_regexp,
                        action => $safe_url_regexp,
+                       formaction => $safe_url_regexp,
                        cite => $safe_url_regexp,
                        longdesc => $safe_url_regexp,
                        poster => $safe_url_regexp,
index cdc79ae780ba2a84e5e2e61740bb5a0bdfac406c..e0f506f29ca113779f9185d848d0b7fa9be071aa 100644 (file)
@@ -12,6 +12,10 @@ ikiwiki (3.20100428) UNRELEASED; urgency=low
     attribute and the source tag.
   * htmlscrubber: Allow the html5 form attributes: placeholder autofocus,
     min, max, step, required, autocomplete, novalidate, pattern, and form.
+    (Also the form* override attributes for input and buttons.)
+  * htmlscrubber: Allow the html5 datalist element, and the form list
+    attribute.
+  * htmlscrubber: Allow the html5 reversed and spellcheck attributes.
 
  -- Joey Hess <joeyh@debian.org>  Tue, 27 Apr 2010 12:10:51 -0400
 
index 7d9dc9f798ab1b6c9197b9d89bca5bc2fc9541fb..1ca45f46d37913a2df42324838e9c326c2f04680 100644 (file)
@@ -81,7 +81,10 @@ HTML5](http://www.w3.org/TR/html5-diff/).
 
 > I have not added the new `ping` attribute, because parsing a
 > space-separeated list of urls to avoid javascript injection is annoying, 
-> and the attribute seems generally dubious. --[[Joey]] 
+> and the attribute seems generally dubious.
+> 
+> Need to understand better the attributes contenteditabl, contextmenu,
+> data-*, draggable, hidden, role, aria-*. Have not added those. --[[Joey]] 
 
 # HTML5 Validation and t/html.t