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

Multi Language Content should also accept <div> tags

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Inactive
    • 1.9.3
    • None
    • Accessibility, Filters
    • None

    Description

      As specified in http://docs.moodle.org/en/admin/setting/filtersettingfiltermultilang the Multi Language Content filter accepts the <span> tag. The problem is that when we want to compose a web page in Moodle, we usually use tags such as <p> or <div>, which are incompatible with the <span> tag. This is because <p> is a block element and can only be inside other block elements, such as <div>, but it can not be inside <span> because it only accepts inline elements as specified in the W3C Specification:
      http://www.w3.org/TR/html401/struct/global.html#h-7.5.4
      http://www.cs.sfu.ca/CC/165/sbrown1/wdgxhtml10/block/p.html

      One solution for this issue it is to accept also the <div> tag for the Multi Language Content filtering.

      Attachments

        Activity

          People

            Unassigned Unassigned
            david.horat David Horat
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: