Note: This issue is a migration (for our convenience) of this issue on sourceforge which can now be closed.
Problem in brief
<frameset> is lost and not added to the DOM in some malformed HTML when it should be.
Examples
These examples demonstate the issue with input HTMLs and their corresponding expected DOM and what HtmlUnit produces.
| # |
Input HTML |
Expected DOM |
HtmlUnit's DOM |
| 1 |
<html>
<div></div>
<frameset>
<frame src="about:blank"/>
<frame src="about:blank"/>
</frameset>
</form>
</html>
|
<html>
<head></head>
<frameset>
<frame src="about:blank"/>
<frame src="about:blank"/>
</frameset>
</html>
|
<html>
<head></head>
<body>
<div></div>
</body>
</html>
|
| 2 |
<html>
<div>
<frameset>
<frame src="about:blank"/>
<frame src="about:blank"/>
</frameset>
</div>
</html>
|
Same as above. |
Same as above. |
| 3 |
<html>
<form>
<frameset>
<frame src="about:blank"/>
<frame src="about:blank"/>
</frameset>
</form>
</html>
|
Same as above. |
<html>
<head></head>
<body>
<form></form>
</body>
</html>
|
Note: These already exist as test cases in org.htmlunit.html.parser.MalformedHtmlTest as siblingWithoutContentBeforeFrameset(), framesetInsideForm(), as well as others not covered above.
Remarks
Note: This issue is a migration (for our convenience) of this issue on sourceforge which can now be closed.
Problem in brief
<frameset>is lost and not added to the DOM in some malformed HTML when it should be.Examples
These examples demonstate the issue with input HTMLs and their corresponding expected DOM and what HtmlUnit produces.
Note: These already exist as test cases in
org.htmlunit.html.parser.MalformedHtmlTestassiblingWithoutContentBeforeFrameset(),framesetInsideForm(), as well as others not covered above.Remarks