button field "list" is not setable

VERIFIED INVALID

Status

()

defect
VERIFIED INVALID
8 years ago
4 months ago

People

(Reporter: inu, Unassigned)

Tracking

Trunk
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Reporter

Description

8 years ago
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
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: 8 years ago
Hardware: x86_64 → All
Resolution: --- → INVALID
Version: unspecified → Trunk
And in particular, "list" is a readonly attribute on inputs in HTML.

Verified.
Status: RESOLVED → VERIFIED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.