Nested script tags do not make sense, since the contents of the script tag should be "text":
http://www.w3.org/html/wg/drafts/html/master/scripting-1.html#the-script-element
The above example is completely legal, since the tag 'inested' script is just a text string that will be interpreted when the script itself is executed.
Modify the document and replace it with content, as it should just replace its current content, although I have not tried it.
Here I do not see any disagreement.
source share