설명 없음

01-basic.json 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {
  2. "name": "Basic test",
  3. "options": {},
  4. "html": "<!DOCTYPE html><html><title>The Title</title><body>Hello world</body></html>",
  5. "expected": [
  6. {
  7. "name": "!doctype",
  8. "data": "!DOCTYPE html",
  9. "type": "directive"
  10. },
  11. {
  12. "type": "tag",
  13. "name": "html",
  14. "attribs": {},
  15. "parent": null,
  16. "children": [
  17. {
  18. "type": "tag",
  19. "name": "title",
  20. "attribs": {},
  21. "parent": {
  22. "type": "tag",
  23. "name": "html",
  24. "attribs": {}
  25. },
  26. "children": [
  27. {
  28. "data": "The Title",
  29. "type": "text",
  30. "parent": {
  31. "type": "tag",
  32. "name": "title",
  33. "attribs": {}
  34. }
  35. }
  36. ]
  37. },
  38. {
  39. "type": "tag",
  40. "name": "body",
  41. "attribs": {},
  42. "children": [
  43. {
  44. "data": "Hello world",
  45. "type": "text"
  46. }
  47. ],
  48. "prev": {
  49. "type": "tag",
  50. "name": "title",
  51. "attribs": {}
  52. }
  53. }
  54. ]
  55. }
  56. ]
  57. }