OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


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 (&nbsp; 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



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]