javascript_inclusion.test 983 Bytes
<script type="text/javascript">foo()</script>
<script>
"foo bar"
</script>

----------------------------------------------------

[

	["tag", [
		["tag", [
			["punctuation", "<"],
			"script"
		]],
		["attr-name", [
			"type"
		]],
		["attr-value", [
			["punctuation", "="],
			["punctuation", "\""],
			"text/javascript",
			["punctuation", "\""]
		]],
		["punctuation", ">"]
	]],
	["script", [
		["function", "foo"],
		["punctuation", "("],
		["punctuation", ")"]
	]],
	["tag", [
		["tag", [
			["punctuation", "</"],
			"script"
		]],
		["punctuation", ">"]
	]],

	["tag", [
		["tag", [
			["punctuation", "<"],
			"script"
		]],
		["punctuation", ">"]
	]],
	["script", [
		["string", "\"foo bar\""]
	]],
	["tag", [
		["tag", [
			["punctuation", "</"],
			"script"
		]],
		["punctuation", ">"]
	]]
]

----------------------------------------------------

Checks for Javascript usage inside Markup, using <script> tags.