Bug 60774

Summary: HTML Assertion element does not handle HTML5 valid code
Product: JMeter - Now in Github Reporter: Philippe Mouawad <p.mouawad>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: NEW ---    
Severity: enhancement CC: p.mouawad, ra0077
Priority: P2    
Version: 2.13   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Test plan showing issue
Enable a second parser (Jsoup) to check for html correctness

Description Philippe Mouawad 2017-02-25 22:01:08 UTC
The element uses an old jtidy library which does not handle HTML5.
See attached Test plan which is ok validated against:
https://html5.validator.nu/
Comment 1 Philippe Mouawad 2017-02-25 22:01:48 UTC
Created attachment 34779 [details]
Test plan showing issue
Comment 2 Felix Schumacher 2017-02-26 12:18:23 UTC
Created attachment 34780 [details]
Enable a second parser (Jsoup) to check for html correctness
Comment 3 Philippe Mouawad 2017-02-26 12:25:15 UTC
(In reply to Felix Schumacher from comment #2)
> Created attachment 34780 [details]
> Enable a second parser (Jsoup) to check for html correctness

Great , I missed this feature Felix.

I would suggest dropping JTidy or at least make JSoup the default.
Regards
Comment 4 Philippe Mouawad 2017-02-26 12:45:40 UTC
Hi,
JSoup seems to consider html5 only. 
So "omit", "auto", "strict", "loose" would not be used by it.
I am not sure they even reflect current state of HTML (xhtml transitional, html5, xhtml strict (!= strict which would be for html4 ?) )
 
How can we make us of them with jsoup ?
Comment 5 The ASF infrastructure team 2022-09-24 20:38:07 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4298