{
  "name": "entity in attribute",
  "options": {
    "handler": {},
    "parser": {"decodeEntities": true}
  },
  "html": "<a href='http://example.com/p&#x61;ge?param=value&param2&param3=&lt;val&; & &'>",
  "expected": [
    {
      "event": "opentagname",
      "data": [
        "a"
      ]
    },
    {
      "event": "attribute",
      "data": [
        "href",
        "http://example.com/page?param=value&param2&param3=<val&; & &"
      ]
    },
    {
      "event": "opentag",
      "data": [
        "a",
        {
          "href": "http://example.com/page?param=value&param2&param3=<val&; & &"
        }
      ]
    },
    {
      "event": "closetag",
      "data": [
        "a"
      ]
    }
  ]
}