27-entities_in_attributes.json 907 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {
  2. "name": "Entities in attributes",
  3. "options": {
  4. "handler": {},
  5. "parser": {"decodeEntities": true}
  6. },
  7. "html": "<foo bar=&amp; baz=\"&amp;\" boo='&amp;' noo=>",
  8. "expected": [
  9. {
  10. "event": "opentagname",
  11. "data": [
  12. "foo"
  13. ]
  14. },
  15. {
  16. "event": "attribute",
  17. "data": [
  18. "bar",
  19. "&"
  20. ]
  21. },
  22. {
  23. "event": "attribute",
  24. "data": [
  25. "baz",
  26. "&"
  27. ]
  28. },
  29. {
  30. "event": "attribute",
  31. "data": [
  32. "boo",
  33. "&"
  34. ]
  35. },
  36. {
  37. "event": "attribute",
  38. "data": [
  39. "noo",
  40. ""
  41. ]
  42. },
  43. {
  44. "event": "opentag",
  45. "data": [
  46. "foo",
  47. {
  48. "bar": "&",
  49. "baz": "&",
  50. "boo": "&",
  51. "noo": ""
  52. }
  53. ]
  54. },
  55. {
  56. "event": "closetag",
  57. "data": [
  58. "foo"
  59. ]
  60. }
  61. ]
  62. }