Author: pmouawad
Date: Mon Jan 22 21:08:00 2018
New Revision: 1821944

URL: http://svn.apache.org/viewvc?rev=1821944&view=rev
Log:
Specialize config builder to use some configuration related to Conditional 
Comments

Modified:
    
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/parser/LagartoBasedHtmlParser.java

Modified: 
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/parser/LagartoBasedHtmlParser.java
URL: 
http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/parser/LagartoBasedHtmlParser.java?rev=1821944&r1=1821943&r2=1821944&view=diff
==============================================================================
--- 
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/parser/LagartoBasedHtmlParser.java
 (original)
+++ 
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/parser/LagartoBasedHtmlParser.java
 Mon Jan 22 21:08:00 2018
@@ -31,10 +31,10 @@ import org.slf4j.Logger;
 import jodd.lagarto.EmptyTagVisitor;
 import jodd.lagarto.LagartoException;
 import jodd.lagarto.LagartoParser;
-import jodd.lagarto.LagartoParserConfig;
 import jodd.lagarto.Tag;
 import jodd.lagarto.TagType;
 import jodd.lagarto.dom.HtmlCCommentExpressionMatcher;
+import jodd.lagarto.dom.LagartoDomBuilderConfig;
 import jodd.log.LoggerFactory;
 import jodd.log.impl.Slf4jLogger;
 import jodd.util.CharSequenceUtil;
@@ -211,11 +211,11 @@ public class LagartoBasedHtmlParser exte
             String contents = new String(html,encoding); 
             // As per Jodd javadocs, emitStrings should be false for visitor 
for better performances
             LagartoParser lagartoParser = new 
LagartoParser(contents.toCharArray());
-            LagartoParserConfig<?> config = new LagartoParserConfig<>();
+            LagartoDomBuilderConfig config = new LagartoDomBuilderConfig();
             config.setCaseSensitive(false);
             // Conditional comments only apply for IE < 10
             
config.setEnableConditionalComments(isEnableConditionalComments(ieVersion));
-            
+            config.setCondCommentIEVersion(ieVersion);
             lagartoParser.setConfig(config);
             JMeterTagVisitor tagVisitor = new JMeterTagVisitor(new 
URLPointer(baseUrl), coll, ieVersion);
             lagartoParser.parse(tagVisitor);


Reply via email to