[Webkit-unassigned] [Bug 22678] New: innerHTML doesn't handle boolean properties properly
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Dec 5 02:45:42 PST 2008
https://bugs.webkit.org/show_bug.cgi?id=22678
Summary: innerHTML doesn't handle boolean properties properly
Product: WebKit
Version: 525.x (Safari 3.1)
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: UNCONFIRMED
Severity: Minor
Priority: P3
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: sbublava at mac.com
Using innerHTML() assigns an empty value to boolean attributes instead of using
the attribute name.
Example:
<select id="foo"><option selected></option></select>
<script>alert(document.getElementById("foo").innerHTML);</script>
gives:
<option selected=""></option>
instead of:
<option selected="selected"></option>
Firefox 3 behaves as I would expect in this case.
--
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