Maybe <section> tags are not supposed to be nested and that's why HTML::Tidy is complaining about them?
Why do you want to parse HTML? Personally, I like HTML::TreeBuilder, which gives me a tree I can later query for content. If you want to clean up HTML, maybe you can use the ->as_HTML method of the resulting HTML::Element to pretty-print it.
In reply to Re: How to parse HTML5?
by Corion
in thread How to parse HTML5?
by NRan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |