Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-39442

Support HTML5 <track> tag in Antisamy

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Verified
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.7
    • Fix Version/s: 11.0
    • Component/s: Kernel
    • Labels:
    • 10 status:
      Resolved
    • Previous Issue Keys:
      KNL-1407
    • Test Plan:
      Hide

      Go into a ckeditor (like announcements) and in source mode add this text)

      <video width="320" height="240"> <source type="video/mp4" src="http://localhost:8080/access/content/group/3c1af5f8-10f0-4e12-99b6-43a2427c5fc6/Test1/test1.mp4" ><track src="http://localhost:8080/access/content/group/3c1af5f8-10f0-4e12-99b6-43a2427c5fc6/Test1/captions_file.vtt" label="English" kind="captions" srclang="en-us" default > </video>

      • Expected is that none of the attributes or tags are removed and no warning messages. It was previously removing the track tag.
      Show
      Go into a ckeditor (like announcements) and in source mode add this text) <video width="320" height="240"> <source type="video/mp4" src="http://localhost:8080/access/content/group/3c1af5f8-10f0-4e12-99b6-43a2427c5fc6/Test1/test1.mp4" ><track src="http://localhost:8080/access/content/group/3c1af5f8-10f0-4e12-99b6-43a2427c5fc6/Test1/captions_file.vtt" label="English" kind="captions" srclang="en-us" default > </video> Expected is that none of the attributes or tags are removed and no warning messages. It was previously removing the track tag.

      Description

      AntiSamy does not support the HTML5 track tag, just stripping it out, this should be added to the AntiSamy policy file and tested, same as the video.

      http://www.w3schools.com/tags/tag_track.asp

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                jonespm Matthew Jones
                Reporter:
                jonespm Matthew Jones
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration