Preserve attributes in child tags