This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 13913 - Attributes don't have an order
Summary: Attributes don't have an order
Status: RESOLVED WORKSFORME
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - HTML Editing APIs (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Aryeh Gregor
QA Contact: HTML Editing APIs spec bugbot
URL:
Whiteboard:
Keywords:
Depends on: 17871
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-26 00:36 UTC by Ian 'Hixie' Hickson
Modified: 2016-04-13 09:18 UTC (History)
5 users (show)

See Also:


Attachments

Description Ian 'Hixie' Hickson 2011-08-26 00:36:40 UTC
"Copy all attributes of element to replacement element, in order" doesn't say what order.
Comment 1 Ian 'Hixie' Hickson 2011-08-26 00:37:08 UTC
(Presumably it means the order of the "attributes" array defined in DOM Core?)
Comment 2 Ehsan Akhgari [:ehsan] 2011-08-26 17:04:57 UTC
I'm having a hard time imagining why the specific order would matter here...
Comment 3 Aryeh Gregor 2011-08-28 15:50:56 UTC
Attributes definitely have an order.  If DOM Core makes that unclear, it should be fixed.  If Ms2ger's changes in bug 13912 aren't enough, please tell him what he should do to make it clearer.

(In reply to comment #2)
> I'm having a hard time imagining why the specific order would matter here...

It's author-visible behavior, therefore it matters.  Apparently the order of *methods in IDLs* has web-compat implications:

http://html5.org/r/6529
https://bugzilla.mozilla.org/show_bug.cgi?id=623437

So the importance of making sure we get element attribute order right should go without saying.  :)
Comment 4 Anne 2016-04-13 09:18:37 UTC
Per bug 17871 they have a deterministic order, although it will take some time for implementations to converge.