Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.8, 1.9, 2.0
-
Component/s: Other
-
Labels:None
-
Affected Branches:MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE
-
Fixed Branches:MOODLE_19_STABLE, MOODLE_20_STABLE
Description
W3C validator does NOT pick this up (DTD/validator limitation), but it IS in HTML 4.01 Spec,
http://w3.org/TR/html401/interact/scripts.html#h-18.2.2.1
Validome HTML/ XHTML ... validator, access 13/11:
"
The Document is not valid
XHTML 1.0 Strict
...
Line: 89, Column: 357
Error: When using embedded events (Event-Handler), script language must be
specified within Meta-Tag
(z.B. <meta http-equiv="Content-Script-Type" content="text/javascript" />)
or HTTP-Header (Content-Script-Type: text/javascript)
Error Position:
lect id="chooselang_jump" name="jump" onchange="self.location=document.getEl
"
TODO: Also, 8 warnings "The Link "#" points to a not existing Anchor." - where?
(OU Bug 4121)
Issue Links
| This issue blocks: | ||||
| MDL-12298 | META BUG: Accessibility improvements in Moodle 1.9 |
|
|
|
Given the choice of a <meta /> or HTTP header, I think a HTTP header is cleaner. Here's the fix in lib/weblib.php print_header function,
@header('Content-Script-Type: text/javascript');
@header('Content-Style-Type: text/css');
Also fixes inline styles "14.2.1 Setting the default style sheet language",
http://www.w3.org/TR/html401/present/styles.html#h-14.2.1
Fixed on HEAD and 1.9 branch, tagged MERGED.