Closed
Bug 660679
Opened 14 years ago
Closed 14 years ago
button field "list" is not setable
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
VERIFIED
INVALID
People
(Reporter: inu, Unassigned)
References
Details
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20110430 Firefox/4.0.1 Iceweasel/4.0.1
Build Identifier: 4.0.1
For the DOM-object button, the field list can not set to any value. It is always undefined.
Reproducible: Always
Steps to Reproduce:
1. open this file in browser
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" xml:lang="de">
<head>
<title>Bug Example</title>
</head>
<body>
<form>
<input id="testButton" type="button" value="Test" />
</form>
<script type="text/javascript">
//<![CDATA[
var button = document.getElementById("testButton");
button.list = "test value";
alert( button.list);
//]]>
</script>
</body>
</html>
Actual Results:
alter window with "NULL" as text
Expected Results:
alter window with "test value" as text
Comment 1•14 years ago
|
||
Yes, don't do that. input.list is defined by the HTML specification [1], which defines how to handle all versions of (X)HTML.
[1] http://www.whatwg.org/html/#the-input-element
Blocks: 556007
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Hardware: x86_64 → All
Resolution: --- → INVALID
Version: unspecified → Trunk
Comment 2•14 years ago
|
||
And in particular, "list" is a readonly attribute on inputs in HTML.
Verified.
Status: RESOLVED → VERIFIED
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•