21-entity_in_attribute.json 671 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. {
  2. "name": "entity in attribute",
  3. "options": {
  4. "handler": {},
  5. "parser": {"decodeEntities": true}
  6. },
  7. "html": "<a href='http://example.com/p&#x61;ge?param=value&param2=&lt;val'>",
  8. "expected": [
  9. {
  10. "event": "opentagname",
  11. "data": [
  12. "a"
  13. ]
  14. },
  15. {
  16. "event": "attribute",
  17. "data": [
  18. "href",
  19. "http://example.com/page?param=value&param2=<val"
  20. ]
  21. },
  22. {
  23. "event": "opentag",
  24. "data": [
  25. "a",
  26. {
  27. "href": "http://example.com/page?param=value&param2=<val"
  28. }
  29. ]
  30. },
  31. {
  32. "event": "closetag",
  33. "data": [
  34. "a"
  35. ]
  36. }
  37. ]
  38. }