summaryrefslogtreecommitdiff
path: root/bin/wiki/ImportarDesdeURL/node_modules/domhandler/test/cases/04-unescaped_in_script.json
diff options
context:
space:
mode:
Diffstat (limited to 'bin/wiki/ImportarDesdeURL/node_modules/domhandler/test/cases/04-unescaped_in_script.json')
-rw-r--r--bin/wiki/ImportarDesdeURL/node_modules/domhandler/test/cases/04-unescaped_in_script.json27
1 files changed, 27 insertions, 0 deletions
diff --git a/bin/wiki/ImportarDesdeURL/node_modules/domhandler/test/cases/04-unescaped_in_script.json b/bin/wiki/ImportarDesdeURL/node_modules/domhandler/test/cases/04-unescaped_in_script.json
new file mode 100644
index 00000000..f31f5fad
--- /dev/null
+++ b/bin/wiki/ImportarDesdeURL/node_modules/domhandler/test/cases/04-unescaped_in_script.json
@@ -0,0 +1,27 @@
+{
+ "name": "Unescaped chars in script",
+ "options": {},
+ "html": "<head><script language=\"Javascript\">var foo = \"<bar>\"; alert(2 > foo); var baz = 10 << 2; var zip = 10 >> 1; var yap = \"<<>>>><<\";</script></head>",
+ "expected": [
+ {
+ "type": "tag",
+ "name": "head",
+ "attribs": {},
+ "children": [
+ {
+ "type": "script",
+ "name": "script",
+ "attribs": {
+ "language": "Javascript"
+ },
+ "children": [
+ {
+ "data": "var foo = \"<bar>\"; alert(2 > foo); var baz = 10 << 2; var zip = 10 >> 1; var yap = \"<<>>>><<\";",
+ "type": "text"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+} \ No newline at end of file