Skip to content
Snippets Groups Projects
Commit 76a117b3 authored by srosse's avatar srosse
Browse files

OO-4754: ensure object tag is written with a separate end tag

parent 4682ee53
No related branches found
No related tags found
No related merge requests found
...@@ -68,6 +68,7 @@ import uk.ac.ed.ph.jqtiplus.xmlutils.xslt.XsltSerializationOptions; ...@@ -68,6 +68,7 @@ import uk.ac.ed.ph.jqtiplus.xmlutils.xslt.XsltSerializationOptions;
public class AssessmentHtmlBuilder { public class AssessmentHtmlBuilder {
private static final Logger log = Tracing.createLoggerFor(AssessmentHtmlBuilder.class); private static final Logger log = Tracing.createLoggerFor(AssessmentHtmlBuilder.class);
private static final String SPACE = " ";
private final QtiSerializer qtiSerializer; private final QtiSerializer qtiSerializer;
...@@ -373,6 +374,8 @@ public class AssessmentHtmlBuilder { ...@@ -373,6 +374,8 @@ public class AssessmentHtmlBuilder {
attributes.addAttribute("data-oo-movie", ooData); attributes.addAttribute("data-oo-movie", ooData);
super.startElement("", "object", "object", attributes); super.startElement("", "object", "object", attributes);
// ensure the tag is written <object> </object> and <object />
super.characters(SPACE.toCharArray(), 0, SPACE.length());
super.endElement("", "object", "object"); super.endElement("", "object", "object");
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment