{
  "name": "Scripts creating other scripts",
  "options": {
    "handler": {},
    "parser": {}
  },
  "html": "<p><script>var str = '<script></'+'script>';</script></p>",
  "expected": [
    {
      "event": "opentagname",
      "data": [
        "p"
      ]
    },
    {
      "event": "opentag",
      "data": [
        "p",
        {}
      ]
    },
    {
      "event": "opentagname",
      "data": [
        "script"
      ]
    },
    {
      "event": "opentag",
      "data": [
        "script",
        {}
      ]
    },
    {
      "event": "text",
      "data": [
        "var str = '<script></'+'script>';"
      ]
    },
    {
      "event": "closetag",
      "data": [
        "script"
      ]
    },
    {
      "event": "closetag",
      "data": [
        "p"
      ]
    }
  ]
}