Use of div for labels causes validation errors. See #8843.

(cherry picked from commit b8206a0832)
This commit is contained in:
Richard Heck 2017-10-16 21:37:36 -04:00
parent 1bef592999
commit ffd175b99f

View File

@ -1506,13 +1506,8 @@ string const & Layout::htmlitemattr() const
string const & Layout::htmllabeltag() const
{
if (htmllabeltag_.empty()) {
if (labeltype != LABEL_ABOVE &&
labeltype != LABEL_CENTERED)
if (htmllabeltag_.empty())
htmllabeltag_ = "span";
else
htmllabeltag_ = "div";
}
return htmllabeltag_;
}