Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-9890

Help should be well-formed, XHTML Strict and semantic

    XMLWordPrintable

    Details

      Description

      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.

      2 Semantics

      • 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!

      NOTES,

      • 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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              nfreear Nick Freear
              Reporter:
              nfreear Nick Freear
              Tester:
              Nicolas Martignoni
              Participants:
              Component watchers:
              Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Jan/08