We're updating the issue view to help you get more done. 

Change implementation of flyweight to avoid assigning duplicate IDs to DOM elements

Description

Currenly, DOM elements generated by flyweight repeater and list have duplicate IDs assigned to them (i.e., all of the elements inside a given repeater or list have the same ID).

There are no known issues arising from the duplication, but technically speaking, this is illegal, so it would be good to change at some point.

An alternative would be not to assign IDs to the repeating elements at all, but instead assign a custom property (e.g. "data-enyo-id").

Dispatcher currently uses the ID to route DOM events to the associated Enyo Control, so we would need to modify it to look for data-enyo-id on the originating node if id were not present.

Environment

None

Status

Assignee

Screener (Enyo Team)

Reporter

Gray Norton (Enyo Team)

Labels

None

External issue ID

None

Tango Test Run Elements

None

Old Issue Key

None

Components

Priority

None