Affects Version/s: 1.8, 1.8.1, 1.9
Environment:Document type: XHTML 1.0 Strict.
http://validator.w3.org/check?verbose=1;outline=1;uri=http%3A%2F%2Fmoodle.org%2Fhelp.php%3Ffile%3Dindex.html -3 errors repeated, no headings.
http://validator.w3.org/check?verbose=1;outline=1;uri=http%3A%2F%2Fmoodle.org%2Fhelp.php%3Ffile%3Dgroupmode.html -3 errors.
Following on from bug
MDL-7861 "Strict XHTML 1.0", I am building up a patch to fix stray ampersands, poor semantics, etc. in help HTML files (lang/en_utf8/help/*). This is what I'm tackling:
1 Well-formed XML
- Stray ampersands, regular expression /&[^a^l^g^q^n^#]/ (Not perfect, but a start). Specific searches &file, &bug, &mod.
- Each */index.html should start with a <h2> </h2>, except help/index.html which should start <h1> </h1>
- Other headings, regular expression /<p><b>(.*?)</b></p>/, should be replaced variously with <h2>$1</h2>, <h3>$1</h3> as appropriate - a headache!
- I want to be pragmatic. - should we aim for Strict DTD for help? Would Transitional be sufficient?
- I'm ONLY fixing English language, en_utf8 - how can we systematically fix other languages.