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

Multi Language Content should also accept <div> tags

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Inactive
    • Affects Version/s: 1.9.3
    • Fix Version/s: None
    • Component/s: Accessibility, Filters
    • Labels:
      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

            Assignee:
            Unassigned
            Reporter:
            david.horat David Horat
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: