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

YUI creates non-valid characters for HTML attributes in quiz activities

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not a bug
    • 2.9.3
    • None
    • HTML Editor (Atto)
    • None
    • MOODLE_29_STABLE

    Description

      I have noticed it only in quiz activity.

      If the id attribute has a non-valid character, e.g., colon, then YUI doesn't behave properly.

      An example of an id of a quiz: q12087:1-comment_ideditable_

      If an Atto plugin tries to get that element by its id, with Y.one('#q12087:1_-comment_ideditable'), it will receive a null object.

      I've found other issues about Atto plugins related to this issue, marked as fixed for those plugin scenarios, but not at YUI API level.

      Steps to notice this:

      1. As teacher. create a quiz.
      2. Create a question of type essay.
      3. As student, answer the question.
      4. As teacher again, go to the answer grading, an inspect the "Comment" element.

      Attachments

        Activity

          People

            timhunt Tim Hunt
            julenpardo Julen Pardo
            Andrew Lyons, 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: