"Ryan Tate" <[EMAIL PROTECTED]> writes: > I enjoy HTML::TokeParser but just today noticed a flaw. When parsing > self-closing tags like <br /> (which is techincally XHTML), the parser > fails to properly identify the tag when there is no internal space. > > So, for <br /> the tag is correctly identified as "br" in the second > element of token array returned by ->get_token. But the <br/> tag (no > intrnal space_ is identified as "br/" in the second element of the token > array returned by ->get_token.
The behaviour you want can be enabled by $p->empty_element_tags(1). If only I could remember why I thought making this the default would be a bad idea :( --Gisle
