clientside/amplesdk — pull request #177 by AmicaNoctis (2012-12-10 10:56:58+00:00)
Title: $getContainer() returns null after adding own id attributes

When you create UI elements (e. g. xul:listitem) programatically and give them an id attribute, you get an Exception "TypeError: this.$getContainer(...) is null" on attempting to add xul:listcell children.

This is because the new id has not been propagated to the shadow tree yet, but fElement_mapAttribute calls $getContainer, which searches for this id there.