[Webkit-unassigned] [Bug 16641] New: Acid3 reveals HTMlFormElement.elements fails to update when element name changes
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Dec 28 02:21:10 PST 2007
http://bugs.webkit.org/show_bug.cgi?id=16641
Summary: Acid3 reveals HTMlFormElement.elements fails to update
when element name changes
Product: WebKit
Version: 525+ (Nightly build)
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: NEW
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: eric at webkit.org
CC: adele at apple.com
Acid3 reveals HTMlFormElement.elements fails to update when element name
changes
>From this test:
function () {
// test 68: changing a dynamic <input>
var ok = true;
var f = document.createElement('form');
var i = document.createElement('input');
i.name = 'first';
i.type = 'text';
i.value = 'test';
f.appendChild(i);
if (i.getAttribute('name') != 'first' ||
i.name != 'first' ||
i.getAttribute('type') != 'text' ||
i.type != 'text' ||
i.value != 'test' ||
f.elements.length != 1 ||
f.elements[0] != i ||
f.elements.first != i ||
f.elements.second != null)
ok = false;
i.name = 'second';
i.type = 'password';
i.value = 'TEST';
if (i.getAttribute('name') != 'second' ||
i.name != 'second' ||
i.getAttribute('type') != 'password' ||
i.type != 'password' ||
i.value != 'TEST' ||
f.elements.length != 1 ||
f.elements[0] != i ||
f.elements.second != i ||
f.elements.first != null)
ok = false;
if (ok)
return 5;
},
We only fail this check "f.elements.second != i".
--
Configure bugmail: http://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