Page MenuHomePhabricator

VisualEditor: Attribute order preservation is hopeless, get rid of it
Closed, ResolvedPublic

Description


Version: unspecified
Severity: normal

Details

Reference
bz48980

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:43 AM
bzimport set Reference to bz48980.
Catrope created this task.May 30 2013, 3:37 PM

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"]

Related URL: https://gerrit.wikimedia.org/r/68618 (Gerrit Change I1463d06db4900083dd4c565292bbabef09194b43)