Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-3549

Allow any HTML tag in plugins templates

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      To test this issue you'll need to modify and install a plugin in a Moodle site.

      1. In a Moodle site, install an existing site plugin (e.g. choicegroup) and use it somewhere accessible by the app.
      2. Edit the main template of the plugin and include some non-standard HTML tags. E.g.:

      <outer>This is a test</outer>

      1. In the app, open the plugin. Check that the plugin is displayed without errors and you can see the text inside the tags.
      Show
      To test this issue you'll need to modify and install a plugin in a Moodle site. In a Moodle site, install an existing site plugin (e.g. choicegroup) and use it somewhere accessible by the app. Edit the main template of the plugin and include some non-standard HTML tags. E.g.: <outer>This is a test</outer> In the app, open the plugin. Check that the plugin is displayed without errors and you can see the text inside the tags.
    • Affected Branches:
      MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_39_STABLE
    • Pull Master Branch:
    • Sprint:
      Moodle App 3.9.3

      Description

      Right now if a plugin adds an HTML tag that isn't "standard" the app displays an error. We should allow using non-standard tags.

      One way to do that is to add the schema NO_ERRORS_SCHEMA when defining the dynamic NgModule in compile provider.

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            dpalou Dani Palou
            Peer reviewer:
            Pau Ferrer Pau Ferrer
            Integrator:
            Juan Leyva Juan Leyva
            Tester:
            Pau Ferrer Pau Ferrer
            Participants:
            Component watchers:
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              30/Nov/20