The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
{
  "name": "Entities in attributes",
  "options": {
    "handler": {},
    "parser": {"decodeEntities": true}
  },
  "html": "<foo bar=&amp; baz=\"&amp;\" boo='&amp;' noo=>",
  "expected": [
    {
      "event": "opentagname",
      "data": [
        "foo"
      ]
    },
    {
      "event": "attribute",
      "data": [
        "bar",
        "&"
      ]
    },
    {
      "event": "attribute",
      "data": [
        "baz",
        "&"
      ]
    },
    {
      "event": "attribute",
      "data": [
        "boo",
        "&"
      ]
    },
    {
      "event": "attribute",
      "data": [
        "noo",
        ""
      ]
    },
    {
      "event": "opentag",
      "data": [
        "foo",
        {
          "bar": "&",
          "baz": "&",
          "boo": "&",
          "noo": ""
        }
      ]
    },
    {
      "event": "closetag",
      "data": [
        "foo"
      ]
    }
  ]
}