add / to excluded characters in attribute names to correctly parse <br/> etc.
[catagits/HTML-Zoom.git] / lib / HTML / Zoom / Parser / BuiltIn.pm
index efa07cb..b55cc4d 100644 (file)
@@ -23,7 +23,7 @@ sub _hacky_tag_parser {
       (
         (?:[^<]*) < (?:
             ( / )? ( [^/!<>\s"'=]+ )
-            ( (?:"[^"]*"|'[^']*'|[^"'<>])+? )?
+            ( (?:"[^"]*"|'[^']*'|[^/"'<>])+? )?
         |   
             (!-- .*? -- | ![^\-] .*? )
         ) (\s*/\s*)? >