HTML5 validation - errors

HTML5 validation - errors

by Monika K -
Number of replies: 3

Hi, I've got a problem when I pass the html5 validator (http://validator.w3.org/) to my Moodle site (moodle 2.4.1).

Errors:

Bad value pragma for attribute http-equiv on element meta.
<meta http-equiv="pragma" content="no-cache" />

Bad value expires for attribute http-equiv on element meta.
<meta http-equiv="expires" content="0" />

Element li is missing one or more of the following attributes: role.
…h current_branch" aria-expanded="true"><p class="tree_item branch active_tree_…

Element li is missing one or more of the following attributes: role.
…contains_branch" aria-expanded="false"><p class="tree_item branch" id="expanda…

Attribute alt not allowed on element input at this point.
…ext" size="18" value="" alt="search" /><label class="accesshide" for="searchfo…

The cellspacing attribute on the table element is obsolete. Use CSS instead.
…ellspacing="0" class="forumheaderlist"><thead><tr><th class="header topic" sco…

Could anybody help me?
How to fix it?

mnika

Average of ratings: -
In reply to Monika K

Re: HTML5 validation - errors

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I don't think Moodle is meant (yet?) to pass HTML5 validation. Why do you think it should, and why does it matter to you?

In reply to Monika K

Re: HTML5 validation - errors

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

As of Moodle 2.4, we are using the HTML5 doctype. (See http://docs.moodle.org/dev/Moodle_2.4_release_notes#Themes.)

None of those errors are likely to cause your Moodle site to stop working. Still it would be good to fix them. If you can be bothered, it would be worth creating a tracker issue.

In reply to Tim Hunt

Re: HTML5 validation - errors

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Actually, don't make a new tracker issue. It has already been reported: MDL-35590

(Thanks to Andrew Nichols for pointing that out.)