summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-12-08 12:22:24 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-12-08 12:22:24 (GMT)
commit7db371ebe9d770cb1bd977b5698fd698ab0e399b (patch)
tree3a89841398caea57fe2fecddb85153229ebaf87b
parentc506514a32991918e06ec75ebaad3f6eaea1dc9b (diff)
downloadDoxygen-7db371ebe9d770cb1bd977b5698fd698ab0e399b.zip
Doxygen-7db371ebe9d770cb1bd977b5698fd698ab0e399b.tar.gz
Doxygen-7db371ebe9d770cb1bd977b5698fd698ab0e399b.tar.bz2
XHTML incorrect attribute values for align and valign
The attribute values of the `align` and `valign` attribute have to be in lowercase and the `valign` attribute value `center` does not exist but has to be `middle`. Most browsers do accept the 'incorrect' values but it is better to have the right values present. (Found by means of the CGAL/cgal repository)
-rw-r--r--src/doctokenizer.l6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l
index dd2c183..deac51c 100644
--- a/src/doctokenizer.l
+++ b/src/doctokenizer.l
@@ -262,6 +262,12 @@ static void handleHtmlTag()
if (i<(int)yyleng) c=tagText.at(++i);
}
opt.value = tagText.mid(startAttrib,endAttrib-startAttrib);
+ if (opt.name == "align") opt.value = opt.value.lower();
+ else if (opt.name == "valign")
+ {
+ opt.value = opt.value.lower();
+ if (opt.value == "center") opt.value="middle";
+ }
}
else // start next option
{