[HtmlUnit] SVN: [14465] trunk/htmlunit/src

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: [14465] trunk/htmlunit/src

rbri
Revision: 14465
          http://sourceforge.net/p/htmlunit/code/14465
Author:   rbri
Date:     2017-05-20 19:30:15 +0000 (Sat, 20 May 2017)
Log Message:
-----------
Fixed wrong dom tree because of duplicated head element
Issue 1863

Modified Paths:
--------------
    trunk/htmlunit/src/changes/changes.xml
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/HTMLParser.java

Modified: trunk/htmlunit/src/changes/changes.xml
===================================================================
--- trunk/htmlunit/src/changes/changes.xml 2017-05-19 15:25:43 UTC (rev 14464)
+++ trunk/htmlunit/src/changes/changes.xml 2017-05-20 19:30:15 UTC (rev 14465)
@@ -8,6 +8,9 @@
 
     <body>
         <release version="2.27" date="???" description="GAE broken, FF52, Bugfixes">
+            <action type="fix" dev="rbri" issue="1863">
+                Fixed wrong dom tree because of duplicated head element.
+            </action>
             <action type="fix" dev="rbri" issue="1883">
                 Avoid CCE in innerText when the element contains a SvgElement.
             </action>

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/HTMLParser.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/HTMLParser.java 2017-05-19 15:25:43 UTC (rev 14464)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/HTMLParser.java 2017-05-20 19:30:15 UTC (rev 14465)
@@ -773,9 +773,6 @@
                 if ("head".equals(tagLower)) {
                     parsingInnerHead_ = false;
                 }
-                if ("head".equals(tagLower)) {
-                    return;
-                }
             }
 
             // Need to reset this at each closing form tag because a valid form could start afterwards.


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