Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^3: HTML::HTML5::Parser weirdness

by tobyink (Canon)
on Feb 24, 2020 at 00:36 UTC ( #11113356=note: print w/replies, xml ) Need Help??

in reply to Re^2: HTML::HTML5::Parser weirdness
in thread HTML::HTML5::Parser weirdness

The document is being parsed as having no contents in the head and no contents in the body. Head and body elements are still parsed though, because in the HTML5 model, all HTML documents have a head and a body. You're using XML::LibXML to output the document, and XML::LibXML will typically output an empty HTML element like <blah />. So that's why you're seeing those in the output. I wouldn't expect that they're in the input.

The problem is that it's not seeing anything at all in the head and body in the input. Probably because of a parsing error too extreme to recover from. But I'd need to see the file to be sure.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11113356]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2020-10-20 23:27 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (212 votes). Check out past polls.