test1-parsehtml.txt 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. found
  2. <!-- minimal well-formed success case -->
  3. <html><head><meta http-equiv="X-XRDS-Location" content="found"></head></html>
  4. found
  5. <!-- minimal well-formed success case, xhtml closing, whitespace -->
  6. <html><head><meta http-equiv="X-XRDS-Location" content="found" /></head></html>
  7. found
  8. <!-- minimal well-formed success case, xhtml closing, no whitespace -->
  9. <html><head><meta http-equiv="X-XRDS-Location" content="found"/></head></html>
  10. found
  11. <!-- minimal success case -->
  12. <html><head><meta http-equiv="X-XRDS-Location" content="found">
  13. found
  14. <!-- ignore bogus top-level tags -->
  15. </porky><html><head><meta http-equiv="X-XRDS-Location" content="found">
  16. found
  17. <!-- Case folding for header name -->
  18. <html><head><meta http-equiv="x-xrds-location" content="found">
  19. found
  20. <!-- missing <html> tag -->
  21. <head><meta http-equiv="X-XRDS-Location" content="found">
  22. found
  23. <!-- javascript in head -->
  24. <html><head><script type="text/javascript">document.write("<body>");</script><META http-equiv="X-XRDS-Location" content="found">
  25. EOF
  26. <!-- javascript in head -->
  27. <html><head><script type="text/javascript">document.write("<body>");<META http-equiv="X-XRDS-Location" content="found">
  28. found
  29. <!-- case folding for tag names -->
  30. <html><head><META http-equiv="X-XRDS-Location" content="found">
  31. found
  32. <!-- Stop after first one found -->
  33. <html><head>
  34. <meta http-equiv="x-xrds-location" content="found">
  35. <meta http-equiv="x-xrds-location" content="not-found">
  36. &
  37. <!-- standard entity -->
  38. <head><meta http-equiv="X-XRDS-Location" content="&amp;">
  39. found
  40. <!-- hex entity -->
  41. <html>
  42. <head>
  43. <meta http-equiv="X-XRDS-Location" content="&#x66;ound">
  44. </head>
  45. </html>
  46. found
  47. <!-- decimal entity -->
  48. <html>
  49. <head>
  50. <meta http-equiv="X-XRDS-Location" content="&#102;ound">
  51. </head>
  52. </html>
  53. /
  54. <!-- hex entity -->
  55. <html>
  56. <head>
  57. <meta http-equiv="X-XRDS-Location" content="&#x2f;">
  58. </head>
  59. </html>
  60. <!-- empty string -->
  61. <html><head><meta http-equiv="X-XRDS-Location" content="">
  62. EOF
  63. <!-- No markup, except this comment -->
  64. None
  65. <!-- No meta, just standard HTML -->
  66. <html>
  67. <head>
  68. <title>A boring document</title>
  69. </head>
  70. <body>
  71. <h1>A boring document</h1>
  72. <p>There's really nothing interesting about this</p>
  73. </body>
  74. </html>
  75. EOF
  76. <!-- No <html> or <head> -->
  77. <meta http-equiv="X-XRDS-Location" content="found">
  78. EOF
  79. <!-- No <head> tag -->
  80. <html><meta http-equiv="X-XRDS-Location" content="found">
  81. None
  82. <!-- No <html> or <head> and a <body> -->
  83. <body><meta http-equiv="X-XRDS-Location" content="found">
  84. None
  85. <!-- <head> and <html> reversed -->
  86. <head><html><meta http-equiv="X-XRDS-Location" content="found">
  87. None
  88. <!-- <meta> is inside of <body> -->
  89. <html><head><body><meta http-equiv="X-XRDS-Location" content="found">
  90. None
  91. <!-- <meta> is inside comment -->
  92. <html>
  93. <head>
  94. <!--<meta http-equiv="X-XRDS-Location" content="found">-->
  95. </head>
  96. </html>
  97. None
  98. <!-- <meta> is inside of <body> -->
  99. <html>
  100. <head>
  101. <title>Someone's blog</title>
  102. </head>
  103. <body>
  104. <h1>My blog</h1>
  105. <p>This is my blog</p>
  106. <h2>Comments</h2>
  107. <p><meta http-equiv="X-XRDS-Location" content="found"></p>
  108. </body>
  109. </html>
  110. None
  111. <!-- short head tag -->
  112. <html><head/>
  113. <meta http-equiv="X-XRDS-Location" content="found">
  114. None
  115. <!-- <body> comes first -->
  116. <body><html><head>
  117. <meta http-equiv="X-XRDS-Location" content="found">
  118. None
  119. <!-- </body> comes first -->
  120. </body><html><head>
  121. <meta http-equiv="X-XRDS-Location" content="found">