Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. #data
  2. <!DOCTYPE html><body></body></html><!--x-->
  3. #errors
  4. #comments
  5. This tests comment insertion in "after after body".
  6. #document
  7. | <!DOCTYPE html>
  8. | <html>
  9. |   <head>
  10. |   <body>
  11. | <!-- x -->
  12.  
  13. #data
  14. <!DOCTYPE html><body></body></html><!DOCTYPE foo>
  15. #errors
  16. Unexpected DOCTYPE: <!DOCTYPE foo>
  17. #comments
  18. This tests DOCTYPE ignorance in "after after body".
  19. This handling should be identical to "in body".
  20. #document
  21. | <!DOCTYPE html>
  22. | <html>
  23. |   <head>
  24. |   <body>
  25.  
  26. #data
  27. <!DOCTYPE html><body></body></html>
  28.  
  29. #errors
  30. #comments
  31. This tests that whitespace in "after after body" is appended to the current
  32. node, which in "after after body" is always the <body> element.
  33. #document
  34. | <!DOCTYPE html>
  35. | <html>
  36. |   <head>
  37. |   <body>
  38. |     "
  39. "
  40.  
  41. #data
  42. <!DOCTYPE html><body></body></html><html>
  43. #errors
  44. Second <html> tag not allowed.
  45. #comments
  46. This tests that no new <html> tag is added to the document.
  47. This handling should be identical to "in body".
  48. #document
  49. | <!DOCTYPE html>
  50. | <html>
  51. |   <head>
  52. |   <body>
  53.  
  54. #data
  55. <!DOCTYPE html><body></body></html><html bgcolor="red">
  56. #errors
  57. Second <html> tag not allowed.
  58. #comments
  59. This tests that the attributes on <html> tags in "after after body" are added
  60. to the top element on the stack of open elements (e.g. the root <html> tag.)
  61. This handling should be identical to "in body".
  62. #document
  63. | <!DOCTYPE html>
  64. | <html>
  65. |   bgcolor="red"
  66. |   <head>
  67. |   <body>
  68.  
  69. #data
  70. <!DOCTYPE html><body></body></html>xxx
  71. #errors
  72. Unexpected text past </html> tag.
  73. #comments
  74. This tests that "anything else" causes switching back to "in body" and
  75. reprocessing of the token.  (Character data)
  76. #document
  77. | <!DOCTYPE html>
  78. | <html>
  79. |   <head>
  80. |   <body>
  81. |     "xxx"
  82.  
  83. #data
  84. <!DOCTYPE html><body></body></html><table>
  85. #errors
  86. Unexpected tag after </html> tag.
  87. EOF in "in table" mode.
  88. #comments
  89. This tests that "anything else" causes switching back to "in body" and
  90. reprocessing of the token.  (Start tag)
  91. #document
  92. | <!DOCTYPE html>
  93. | <html>
  94. |   <head>
  95. |   <body>
  96. |     <table>
  97.  
  98. #data
  99. <!DOCTYPE html><body></body></html></table>
  100. #errors
  101. Unexpected end tag after </html> tag.
  102. End tag with no matching start tag.
  103. #comments
  104. This tests that "anything else" causes switching back to "in body" and
  105. reprocessing of the token.  (End tag)
  106. #document
  107. | <!DOCTYPE html>
  108. | <html>
  109. |   <head>
  110. |   <body>
  111.