Quantcast

[HtmlUnit] SVN: [14441] 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: [14441] trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit

rbri
Revision: 14441
          http://sourceforge.net/p/htmlunit/code/14441
Author:   rbri
Date:     2017-05-12 17:30:22 +0000 (Fri, 12 May 2017)
Log Message:
-----------
revert last cleanup, ff is really strange with keygen

Modified Paths:
--------------
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/DefaultElementFactory.java
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLSpanElement.java

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:40:18 UTC (rev 14440)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/DefaultElementFactory.java 2017-05-12 17:30:22 UTC (rev 14441)
@@ -15,6 +15,7 @@
 package com.gargoylesoftware.htmlunit.html;
 
 import static com.gargoylesoftware.htmlunit.BrowserVersionFeatures.KEYGEN_AS_BLOCK;
+import static com.gargoylesoftware.htmlunit.BrowserVersionFeatures.KEYGEN_AS_SELECT;
 
 import java.util.Arrays;
 import java.util.LinkedHashMap;
@@ -151,6 +152,9 @@
                 if (browserVersion.hasFeature(KEYGEN_AS_BLOCK)) {
                     element = new HtmlBlockQuote(qualifiedName, page, attributeMap);
                 }
+                else if (browserVersion.hasFeature(KEYGEN_AS_SELECT)) {
+                    element = new HtmlSpan(qualifiedName, page, attributeMap);
+                }
                 else {
                     element = new HtmlUnknownElement(page, qualifiedName, attributeMap);
                 }

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLSpanElement.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLSpanElement.java 2017-05-12 16:40:18 UTC (rev 14440)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLSpanElement.java 2017-05-12 17:30:22 UTC (rev 14441)
@@ -57,6 +57,7 @@
         if (browser.hasFeature(HTMLBASEFONT_END_TAG_FORBIDDEN)) {
             switch (domNode.getLocalName().toLowerCase(Locale.ROOT)) {
                 case "basefont":
+                case "keygen":
                     endTagForbidden_ = true;
                     break;
                 default:


------------------------------------------------------------------------------
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...