Hi Barton,
For an explanation of why self-closing tags can be an issue with browsers see this question on stack exchange:
http://stackoverflow.com/questions/69913/why-dont-self-closing-script-tags-work
------
David Goss , Technical Writer
Frontier Science | www.fstrf.org
4033 Maple Rd, Amherst, NY 14226
(716) 834-0900 extension 7204
----- Original Message -----
From: "Barton Wright" <>
To: "Peter Fleck" <>
Cc: "apps docbook" <>
Sent: Wednesday, July 23, 2014 2:22:08 PM
Subject: Re: [docbook-apps] Redundant end tags been removed
Hello Peter,
I’m confused why the version without the closing </script> is a problem on any modern OS or browser. It’s a completely valid construction.
Nevertheless, perhaps the addthis.com site is expecting some content inside the <script></script> pair. You could place a space or even a non-breaking space character ( or its Unicode equivalent) just before the </script> to see if that preserves the closing </script>.
Let us know what worked when you figure it out!
> Hi guys,
>
> I'm trying to add the below to each chunked html page.
>
> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=XXX"></script>
> <div class="addthis_sharing_toolbox"/>
>
> What happens is that the <script> tag gets shortened to
>
> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=XXX"/>
>
> ie. the redundant closing tag is removed and the end slash added.
>
> This stops the rest of the html being displayed. If I manually change the html after it has been created to the top, the AddThis sharing buttons appear.
>
> I know there is probably a simple answer to this but can't get it. Is there a way to stop the <script> tag getting shortened?
>
> Thanks,
>
> Peter
---------------------------------------------------------------------
To unsubscribe, e-mail:
For additional commands, e-mail: