[HtmlUnit] SVN: [14440] trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[HtmlUnit] SVN: [14440] trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit

rbri
Revision: 14440
          http://sourceforge.net/p/htmlunit/code/14440
Author:   rbri
Date:     2017-05-12 16:40:18 +0000 (Fri, 12 May 2017)
Log Message:
-----------
do not reuse browser features

Modified Paths:
--------------
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/BrowserVersionFeatures.java
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/DefaultElementFactory.java

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/BrowserVersionFeatures.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/BrowserVersionFeatures.java 2017-05-12 16:13:45 UTC (rev 14439)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/BrowserVersionFeatures.java 2017-05-12 16:40:18 UTC (rev 14440)
@@ -1394,6 +1394,10 @@
     @BrowserFeature(FF)
     KEYBOARD_EVENT_SPECIAL_KEYPRESS,
 
+    /** Handle {@code <keygen>} as {@code <block>}. */
+    @BrowserFeature(IE)
+    KEYGEN_AS_BLOCK,
+
     /** Handle {@code <keygen>} as {@code <select>}. */
     @BrowserFeature(FF)
     KEYGEN_AS_SELECT,

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/DefaultElementFactory.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/DefaultElementFactory.java 2017-05-12 16:13:45 UTC (rev 14439)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/DefaultElementFactory.java 2017-05-12 16:40:18 UTC (rev 14440)
@@ -14,7 +14,7 @@
  */
 package com.gargoylesoftware.htmlunit.html;
 
-import static com.gargoylesoftware.htmlunit.BrowserVersionFeatures.HTMLABBREVIATED;
+import static com.gargoylesoftware.htmlunit.BrowserVersionFeatures.KEYGEN_AS_BLOCK;
 
 import java.util.Arrays;
 import java.util.LinkedHashMap;
@@ -148,7 +148,7 @@
         switch (tagName) {
             case KEYGEN_:
                 final BrowserVersion browserVersion = page.getWebClient().getBrowserVersion();
-                if (browserVersion.hasFeature(HTMLABBREVIATED)) {
+                if (browserVersion.hasFeature(KEYGEN_AS_BLOCK)) {
                     element = new HtmlBlockQuote(qualifiedName, page, attributeMap);
                 }
                 else {


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
Loading...