I get the following error with validator.W3.org
Line 70, Column 26: character "<" is the first character of a delimiter but occurred as data
if (remainingSeconds < 10) {
Line 70, Column 26: StartTag: invalid element name
if (remainingSeconds < 10) {
This is the code I use.
<script type="text/javascript">
function secondPassed() {
var minutes = Math.round((seconds - 30)/60);
var remainingSeconds = seconds % 60;
if (remainingSeconds < 10) {
remainingSeconds = "0" + remainingSeconds;
}
</script>
If I delete the < or change the < to a = then the error is gone.
Anybody an idea?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">