HTML Attriubutes appears backwards.

RESOLVED INVALID

Status

()

Core
DOM: Core & HTML
--
major
RESOLVED INVALID
14 years ago
10 years ago

People

(Reporter: Stephen Shumate, Unassigned)

Tracking

Trunk
x86
Windows 2000
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

14 years ago
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
This is likely to be fixed by bug 218919 
Depends on: 218919
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
Last Resolved: 14 years ago
Resolution: --- → INVALID

Updated

10 years ago
Component: DOM: HTML → DOM: Core & HTML
QA Contact: ian → general
You need to log in before you can comment on or make changes to this bug.