fix for UIFR-118: id attribute on <legend> element is not passed through

if <legend> has an id attribute, pass it through to the <span>