Hello,
The easiest way to explain this is probably just an example.
This is causing a problem for me because the html string I'm passing is the response to an ajax request, and the script contains json data relevant to the script's parent element. I am using the metadata plugin to extract it, similar to this example on the metadata plugin's page:
<li class="someclass"><script type="application/json">{some:"json",data:true}</script>...</li><script>alert($('li.someclass').metadata({type:'elem',name:'script'}).some);</script>
Questions: Is this behavior correct/desired? If so, why is it useful? Is there any way to prevent it from happening?
Thanks in advance.