https://issues.apache.org/bugzilla/show_bug.cgi?id=56772

Philippe Mouawad <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #7 from Philippe Mouawad <[email protected]> ---
I reproduced issue.
In fact the issue comes from switching :
htmlParser.className=org.apache.jmeter.protocol.http.parser.HtmlParserHTMLParser
to
htmlParser.className=org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser

since JMeter 2.10.

What happens is that HtmlParserHTMLParser simply ignored or was not able to
parse correctly this kind of html:
<!--[if lte IE 8]>
    <link rel="stylesheet" type="text/css" href="./ie8-and-down.css" />
<![endif]-->


So it didn't extract the link.
New parser knows how to extract it.

As a workaround you can switch to :
htmlParser.className=org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser


@JMeter Dev Team:
To fix issue we need to add user agent as a parameter of
HTMLParser#getEmbeddedResourceURLs
And then for example with Lagarto :
- Implement condComment callback in a way similar to what is done here:
https://github.com/oblac/jodd/blob/master/jodd-lagarto/src/main/java/jodd/lagarto/dom/LagartoDOMBuilderTagVisitor.java

where enabled controls wether addition to list of urls to parse should occur or
not

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to