1

I'm sorry for question, because I can't google it (I don't know name of this feature) and can't find it in documentation for script tag. I found it in linkedin API:

<script src="https://someurl.com">
    a : 10
    b : 20
    c : 30
</script>

What is this? It looks like passing parameters to script, but it was not mentioned in any question like "passing parameters to script"

Ivan Ivanov
  • 2,076
  • 16
  • 33

1 Answers1

0

It is a clever way to indeed "pass parameters to a script".

This does not do anything by itself, but some Javascript on your page (such as the one that is being loaded here) could look at the DOM to get to the text content of the script tag, and treat this as input.

Thilo
  • 257,207
  • 101
  • 511
  • 656
  • So, this arguments not passed to script and they should be parsed as text. Then what is the benefit? To keep namespace clean? – Ivan Ivanov Sep 18 '14 at 05:51