FHIR Chat · IG publisher mangles script tags · implementers

Stream: implementers

Topic: IG publisher mangles script tags


view this post on Zulip Michel Rutten (Dec 15 2017 at 12:30):

I'm running the IG Publisher on some rendered HTML pages (without any processing).
For some (!) pages, the publisher rewrites <script> tags:
Original: <script src="..." ></script>
Output: <script src="..."/>
However this breaks page rendering (not HTML 5 compliant).
Does anyone know why this happens for some pages (only) and how I can prevent this?

(never mind, apparently some invalid body HTML)

view this post on Zulip Michel Rutten (Dec 15 2017 at 15:49):

We corrected all the invalid HTML content, but the IG publisher keeps mangling some of the pages (seemingly random subset), rewriting script tags to invalid format and breaking the design of the output.
It's unclear why this happens, especially for only some of the pages?

view this post on Zulip Michel Rutten (Dec 15 2017 at 16:30):

I give up. IG publisher randomly corrupts valid HTML 5, but only for a subset of the pages. Unclear why.

view this post on Zulip Lloyd McKenzie (Dec 15 2017 at 16:32):

That seems like something XSLT would do, but don't know for sure if there's a transform in there somewhere.

view this post on Zulip Jose Costa Teixeira (Dec 15 2017 at 20:08):

I had an issue with ig, perhaps is the same?
What i learned:

<script src="..." ></script>

does not work.
However,

 <script src="..." >
</script>

works ok.


Last updated: Apr 12 2022 at 19:14 UTC