Closed
Bug 220549
Opened 21 years ago
Closed 21 years ago
HTML Attriubutes appears backwards.
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: sbshumate, Unassigned)
References
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20030925 Build Identifier: Mozilla 1.5 Release Candidate 2 Example, you have a table object and do a alert(document.getElementById("tbl"),innerHTML), all the attributes of each element appear in reverse order. Like if you have a <td width="90" valign="top"></td>, you will see <td valign="top" width="90"></td>. Really screws up your code when you use such as .item(n) Reproducible: Always Steps to Reproduce: 1. Just do a alert on a table object with its innerhtml that has attributes in it s elements 2. 3. Actual Results: reversed atttributes Expected Results: Previous versions appear to be working correctly
Comment 2•21 years ago
|
||
Attributes are explicitly an unorderd list: # NamedNodeMaps are not maintained in any particular order. -- http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-1780488922 There is no spec that says that innerHTML must be an exact representation of the original source. DOM3LS says that markupContent (the equivalent) is a serialisation of the (unordered) DOM, so it is unordered too. INVALID.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•