[Webkit-unassigned] [Bug 26151] New: Value of element.innerHTML incorrect when using XML style close tags.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jun 2 16:43:10 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=26151
Summary: Value of element.innerHTML incorrect when using XML
style close tags.
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: itaylor at crowdfactory.com
If you use an XML style close tag to signify an empty element, when you go to
get the innerHTML of that element via javascript, it will behave as if the tag
is not closed.
Here is a simple test to reproduce the issue
<div id='foo'/>
<div id='bar'></div>
<script>
//the innerHTML of a div with a shortened XML style end tag is broken.
var html = document.getElementById("foo").innerHTML;
var html2 = document.getElementById("bar").innerHTML;
if (html != html2)
{
alert("error: foo should have no content, but was " +html);
}
</script>
I've verified that this issue exists in Webkit nightly 5528.16, r44341, as
well as Safari 4 beta and Google Chrome 2.0.172.30. It does not exist in
Firefox or IE.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list