clientside/amplesdk — Issue #100: XUL: empty style attribute appearing in shadow child elements.
Author: h6w
Created: 2011-10-16 03:12:43+00:00
State: open

Empty style attributes are appearing in the shadow child elements. I think it has to do with this section of code:

aHtml.push('<tr style="');
if (oElement.nodeType == ample.classes.Node.ELEMENT_NODE) {
if (oElement.attributes["hidden"] == "true")
aHtml[aHtml.length]	= 'display:none;';
if (oElement.viewType == cXULElement.VIEW_TYPE_VIRTUAL)
aHtml[aHtml.length]	= 'position:absolute;height:0;top:0;left:0;z-index:1;';
}
aHtml[aHtml.length]	= '">';

If the element isn't hidden, and it's not virtual, then the result is an empty style attribute.