As the title says, I'm not able to override HTML::Parser settings for pQuery. My main problem is that due to ignore_unknown beeing set, all HTML5 tags are ignored. I think this is due to HTML::Tagset not supporting any of the new HTML5 tags (see issue 67299 and 63059). IMO it make sense to allow users to override any of the default settings anyway. I can see that _builder would accept custom settings, but fromHTML etc. do not supply any arguments, so there doesn't seem to be any way to change them from the outside. Will also provide a PR with a possible fix for this in a moment.
use pQuery;
use HTML::TreeBuilder 5 -weak;
my $pQuery = pQuery('<html><body><header>header</header></body></html>');
warn $pQuery->find('header')->html();
Warning: something's wrong at test.pl line 4.
As the title says, I'm not able to override
HTML::Parsersettings forpQuery. My main problem is that due toignore_unknownbeeing set, all HTML5 tags are ignored. I think this is due toHTML::Tagsetnot supporting any of the new HTML5 tags (see issue 67299 and 63059). IMO it make sense to allow users to override any of the default settings anyway. I can see that_builderwould accept custom settings, butfromHTMLetc. do not supply any arguments, so there doesn't seem to be any way to change them from the outside. Will also provide a PR with a possible fix for this in a moment.Warning: something's wrong at test.pl line 4.