SyntaxTreeNode parent = getParent();
if (parent instanceof LiteralElement
&& ((LiteralElement)parent).allAttributesUnique()) {
int flags = 0;
ElemDesc elemDesc = ((LiteralElement)parent).getElemDesc();
// Set the HTML flags
if (elemDesc != null && _name instanceof SimpleAttributeValue) {
String attrName = ((SimpleAttributeValue)_name).toString();
if (elemDesc.isAttrFlagSet(attrName, ElemDesc.ATTREMPTY)) {
flags = flags | SerializationHandler.HTML_ATTREMPTY;
}
else if (elemDesc.isAttrFlagSet(attrName, ElemDesc.ATTRURL)) {
flags = flags | SerializationHandler.HTML_ATTRURL;
}
}
il.append(new PUSH(cpg, flags));
il.append(methodGen.uniqueAttribute());