X-Git-Url: http://git.plutz.net/?p=cgilite;a=blobdiff_plain;f=html-sh.sed;h=16aeb9a44e907814b5865fb9887fbe9833f450d8;hp=3f63b3d6fecf14dfd8808a3d58f655ff173e3040;hb=84e1d6938743a21a912420cc4ba5dc08a7c48155;hpb=4feaa19ab266bca60388152b6c1f550d09b1184b
diff --git a/html-sh.sed b/html-sh.sed
index 3f63b3d..16aeb9a 100755
--- a/html-sh.sed
+++ b/html-sh.sed
@@ -48,6 +48,7 @@ t tagopen;
G; h; s;^[^\n]*\n+;;; x; s;\n.*$;;;
:attribs
+s;(<[^/][^>]*)>[ \t]*\.[ \t];\1>;g; t attEnd;
s;class="([^>]+)>[ \t]*\.([^< \t]+);class="\2 \1>;g; t attribs;
s;(<[^/][^>]*)>[ \t]*\.([^< \t]+);\1 class="\2">;g;
s;(<[^/][^>]*)>[ \t]*#([^< \t]+);\1 id="\2">;g;
@@ -58,9 +59,11 @@ s;(]+ )?type=(checkbox|"checkbox"|'checkbox')( [^>]+)?)>[ \t]*(checke
s;(