Commit 62bd919d authored by Stefano Crocco's avatar Stefano Crocco
Browse files

Use textContent rather than innerHTML to obtain the label

If the <label> element has children, innerHTML includes the
corresponding tags, which shouldn't be displayed to the user.
textContent doesn't have this issue (it has other problems, but they
shouldn't matter in this situation).
parent 53158738
......@@ -6,7 +6,7 @@ function labelsForIdsInFrame(frm) {
if (l.htmlFor != '') {
var obj = frm.document.getElementById(l.htmlFor);
if (obj) {
res[] = l.innerHTML;
res[] = l.textContent;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment