We use the later since that's what xhtml1 required [http://www.w3.org/TR/xhtml1/#h-4.5].
FIXME: seems a code duplication of Xml::expandAttributes() follow up r81571 (skip attributes with null value)