Last modified: 2013-06-14 10:53:26 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T50980, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48980 - VisualEditor: Attribute order preservation is hopeless, get rid of it
VisualEditor: Attribute order preservation is hopeless, get rid of it
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
Technical Debt (Other open bugs)
unspecified
All All
: High normal
: VE-deploy-2013-06-20
Assigned To: Ed Sanders
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-30 15:37 UTC by Roan Kattouw
Modified: 2013-06-14 10:53 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Roan Kattouw 2013-05-30 15:37:24 UTC

    
Comment 1 Roan Kattouw 2013-05-30 15:39:37 UTC
It works fine in Chrome, but Firefox does not preserve the order in the attributes array:


>>> var div = document.createElement('div')
undefined
>>> div.innerHTML='<a href="foo" data-parsoid="bar"></a>';
"<a href="foo" data-parsoid="bar"></a>"
>>> div.children[0]
<a data-parsoid="bar" href="foo">
>>> div.children[0].attributes
[data-parsoid="bar", href="foo"]
Comment 2 Gerrit Notification Bot 2013-06-14 06:43:10 UTC
Related URL: https://gerrit.wikimedia.org/r/68618 (Gerrit Change I1463d06db4900083dd4c565292bbabef09194b43)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links