From: Paul Hänsch Date: Tue, 17 Jul 2018 00:06:10 +0000 (+0200) Subject: make "checked" and "selected" keywords interchangeable X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=cbd426df72dee35e5920de18084ca6770454481d;p=clickslide make "checked" and "selected" keywords interchangeable --- diff --git a/html-sh.sed b/html-sh.sed index d1c70b8..514caaf 100755 --- a/html-sh.sed +++ b/html-sh.sed @@ -45,8 +45,8 @@ s;(<[^/][^>]*)>[ \t]*\.([^< \t]+);\1 class="\2">;g; s;(<[^/][^>]*)>[ \t]*#([^< \t]+);\1 id="\2">;g; s;(<[^/][^>]*)>[ \t]*([^ \t=<]+=("[^"]*"|'[^']*'|[^< \t]*));\1 \2>;g; t attribs; -s;(]+ )?type=(radio|"radio"|'radio')( [^>]+)?)>[ \t]*checked;\1 checked="checked">;g; -s;(]+ )?type=(checkbox|"checkbox"|'checkbox')( [^>]+)?)>[ \t]*checked;\1 checked="checked">;g; +s;(]+ )?type=(radio|"radio"|'radio')( [^>]+)?)>[ \t]*(checked|selected);\1 checked="checked">;g; +s;(]+ )?type=(checkbox|"checkbox"|'checkbox')( [^>]+)?)>[ \t]*(checked|selected);\1 checked="checked">;g; s;(]+)?)>[ \t]*(checked|selected);\1 selected="selected">;g; s;(]+)?)>[ \t]*multiple;\1 multiple="multiple">;g; t attribs;