Possible Duplicate:
What does a script-Tag with src AND content mean?
If I publish a chart in Google Docs Spreadsheet, I get the following code to access the image:
<script type="text/javascript"
src="//ajax.googleapis.com/ajax/static/modules/gviz/1.0/chart.js">
{"dataSourceUrl":"//docs.google.com/spreadsheet/tq?
key=...&transpose=0&headers=1&range=A1%3AC72&gid=0&pub=1","options":{"vAxes":...}}
</script>
Obviously the javascript program gets the text in ... as an argument.
However, in HTML definition (http://www.w3.org/TR/html4/interact/scripts.html): "If the src has a URI value, user agents must ignore the element's contents and retrieve the script via the URI."
(Edited: as mentioned in the comment below, this was already discussed and agreed that Google uses DOM to access the content - which is not recommendable.)
But question: how to escape the argument as valid XHTML? It seems that Google has not taken into account that someone would like to add CTYPE definition between tags. This code does not work:
<script type="text/javascript"
src="//ajax.googleapis.com/ajax/static/modules/gviz/1.0/chart.js">
<![CDATA[
{"dataSourceUrl":"//docs.google.com/spreadsheet/tq?
key=...&transpose=0&headers=1&range=A1%3AC72&gid=0&pub=1","options":{"vAxes":...}}
]]>
</script>