PDA

View Full Version : Invalid HTML in cWebColumnCheckbox?



GhostShotIV
18-Jun-2015, 10:46 AM
It seems, that cWebColumnCheckbox generates invalid HTML.

In our mobile WebApp (DF 18.1b2) we are using the cWebColumnCheckbox and on inspecting the HTML source, to modify some CSS definitions, I get to see this

<input onclick="this.checked = false" tabindex="-1" "="" type="checkbox">

The part behind the tabindex ("="") won't be valid, as far as I know.

The responsible part for this seems to be in WebColumnCheckbox.js, Line 96:

aHtml.push(' tabindex="-1""');
which should be

aHtml.push(' tabindex="-1"');

After changing this in our files, I got the anticipated

<input onclick="this.checked = false" tabindex="-1" type="checkbox">

John van Houten
18-Jun-2015, 06:53 PM
Hi GhostShot,

Thank you for finding this problem and making such a detailed bug report. The bug is indeed where you indicate, although if you look at the generated HTML in the browser debugger it is different than the HTML you see on your page.

It turns out that Internet Explorer modifies the HTML so that the extra quote " is interpreted as "="". In Chrome the extra quote " is interpreted as " (an extra quote). So my guess is that you are testing in Internet Explorer.

Either way the bug is the generation of this extra quote. I will fix this and it will be correct in the next beta.

Thanks again, John van Houten
Data Access Corporation