for <br/>, the '/' was being interpreted as the attribute string so
$in_place_close wasn't being set. Adding / to the exclusion list fixes this.
+- add / to excluded characters in attribute names to correctly parse <br/>
+
0.009004 2011-02-14
- Large chunks of documentation improvements from jnareb
(
(?:[^<]*) < (?:
( / )? ( [^/!<>\s"'=]+ )
- ( (?:"[^"]*"|'[^']*'|[^"'<>])+? )?
+ ( (?:"[^"]*"|'[^']*'|[^/"'<>])+? )?
|
(!-- .*? -- | ![^\-] .*? )
) (\s*/\s*)? >
--- /dev/null
+use strictures 1;
+use HTML::Zoom;
+use Test::More;
+
+my $html = <<EOHTML;
+<body>
+ <p><br/></p>
+ <p><br /></p>
+</body>
+EOHTML
+
+HTML::Zoom->from_html($html)
+ ->select('body')
+ ->collect_content({
+ into => \my @body
+ })
+ ->run;
+
+is(HTML::Zoom->from_events(\@body)->to_html, <<EOHTML,
+
+ <p><br/></p>
+ <p><br /></p>
+EOHTML
+ 'Parses cuddled in place close ok');
+
+done_testing;