[Webkit-unassigned] [Bug 86746] New: cloneNode doesn't ignore layout errors as much as regular parsing does
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 17 09:14:09 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=86746
Summary: cloneNode doesn't ignore layout errors as much as
regular parsing does
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: All
Status: UNCONFIRMED
Severity: Minor
Priority: P4
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: dtyschenko at gmail.com
Created an attachment (id=142487)
--> (https://bugs.webkit.org/attachment.cgi?id=142487&action=review)
screenshot
If the page content isn't valid, webkit will tolerantly render document as other engines do, but clonning and appending "invlaid" nodes will result in different (screwed) output. Simple example:
<html>
<body>
<table border="1">
<tr><td width="150px"> </td></tr>
<tr><form><td width="150px"> </td></form></tr>
<tr><td width="150px"> </td></tr>
</table>
<script type="text/javascript">
document.body.appendChild(
document.getElementsByTagName("TABLE")[0].cloneNode(true));
</script>
</body>
</html>
See the second row does contain <form> tag, but webkit is able to render the table so the <form> doesn't affect the layout. But this isn't applied to the cloned table and it's screwed.
Tested in Chrome 19.0.1084.46 (webkit 536.5) and Chromium 18.0.1025.168 (535.19)
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list