#284: errors from Test::HTML::Content about HTML parser error ------------------------+--------------------------------------------------- Reporter: bob | Owner: bob Type: defect | Status: new Priority: normal | Milestone: Component: openguides | Version: svn Severity: normal | Keywords: ------------------------+--------------------------------------------------- t/90_css_category_locale_classes.t .. 1/3 HTML parser error : Misplaced DOCTYPE declaration <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" ^ HTML parser error : htmlParseStartTag: misplaced <html> tag <html lang="en"> ^ HTML parser error : htmlParseStartTag: misplaced <head> tag <head profile="http://a9.com/-/spec/opensearch/1.1/"> ^ HTML parser error : htmlParseStartTag: misplaced <body> tag <body>
these are coming from XML::LibXML
Test::HTML::Content needs patching to suppress the errors from XML::LibXML
https://github.com/rjw1/Test-HTML- Content/commit/f17d6cf7579a34af7facfa199ff866646f6e97e8
is a rough and ready patch. Probably needs more to make it submittable. Should probably be configurable
To install under perl 5.14 will also need the patch from https://rt.cpan.org/Public/Bug/Display.html?id=70099
Needs a modern XML::LibXML because of https://rt.cpan.org/Public/Bug/Display.html?id=58024
#284: errors from Test::HTML::Content about HTML parser error ------------------------+--------------------------------------------------- Reporter: bob | Owner: bob Type: defect | Status: new Priority: normal | Milestone: Component: openguides | Version: svn Severity: normal | Keywords: ------------------------+---------------------------------------------------
Comment(by bob):
my fork of Test::HTML::Content on github has both patches.
https://github.com/rjw1/Test-HTML-Content
#284: errors from Test::HTML::Content about HTML parser error ------------------------+--------------------------------------------------- Reporter: bob | Owner: bob Type: defect | Status: closed Priority: normal | Milestone: Component: openguides | Version: svn Severity: normal | Resolution: fixed Keywords: | ------------------------+--------------------------------------------------- Changes (by kake):
* status: new => closed * resolution: => fixed
Comment:
(In [1379]) Omit HTTP headers in various tests in order to avoid HTML parser warnings from Test::HTML::Content (fixes #284).
openguides-tickets@lists.openguides.org