47sanitizer-api/

3,784 / 3,806 WPT subtests passing

Failed
22
Timed out
0
Not run
0
Test files
47
Blocking files
0

Chrome 3,146 / 3,806 WPT subtests passing on the same files, 2 blocking

Tests

47 test files here

Each test file opens in place to its subtests, and each subtest that did not pass to its message.

Test fileSubtests passingChromeFailedStanding
html5lib-basics.html18 / 18 passingChrome 18 / 180 failedClean
Standing
Clean runner status OK
Chrome
Clean 18 / 18 WPT subtests passing runner status OK
18 passing subtests
  1. Testcase #0 with .setHTMLUnsafe("Hello!")
  2. Testcase #0, .innerHTML matches .setHTMLUnsafe
  3. Testcase #1 with .setHTMLUnsafe("<p>bla")
  4. Testcase #1, .innerHTML matches .setHTMLUnsafe
  5. Testcase #2 with .setHTMLUnsafe("<p id=abc def='123'>texty<!-- xxx -->textz")
  6. Testcase #2, .innerHTML matches .setHTMLUnsafe
  7. Testcase #3 with .setHTMLUnsafe("<p>Hello <b>World</b><span>!")
  8. Testcase #3, .innerHTML matches .setHTMLUnsafe
  9. Testcase #4 with .setHTMLUnsafe("<p>A template example.<template>Hello <b>World</b></template>!")
  10. Testcase #4, .innerHTML matches .setHTMLUnsafe
  11. Testcase #5 with .setHTMLUnsafe("<td>Interesting parse context.</td>")
  12. Testcase #5, .innerHTML matches .setHTMLUnsafe
  13. Testcase #6 with .setHTMLUnsafe("<p>A rather boring parse context.")
  14. Testcase #6, .innerHTML matches .setHTMLUnsafe
  15. Testcase #7 with .setHTMLUnsafe("<table><b>a</b>bb<tr><td>y")
  16. Testcase #7, .innerHTML matches .setHTMLUnsafe
  17. Testcase #8 with .setHTMLUnsafe("<table><div>d</div><td>")
  18. Testcase #8, .innerHTML matches .setHTMLUnsafe
parsehtmlunsafe-with-trustedtypes.html7 / 7 passingChrome 7 / 70 failedClean
Standing
Clean runner status OK
Chrome
Clean 7 / 7 WPT subtests passing runner status OK
7 passing subtests
  1. Document.parseHTMLUnsafe: createParserOptions can inject a sanitizer config
  2. Document.parseHTMLUnsafe: passing TrustedHTMLParserOptions directly works
  3. Document.parseHTMLUnsafe: createParserOptions returning null fails
  4. Document.parseHTMLUnsafe: createParserOptions returning undefined fails
  5. Document.parseHTMLUnsafe: createParserOptions returning 0 fails
  6. Document.parseHTMLUnsafe: createParserOptions returning 123 fails
  7. Document.parseHTMLUnsafe: createParserOptions returning "foo" fails
sanitizer-a-navigation.html225 / 225 passingChrome 168 / 2250 failedClean
Standing
Clean runner status OK
Chrome
With failures 168 / 225 WPT subtests passing runner status OK

/sanitizer-api/sanitizer-a-navigation.html?target=html OK 27 / 27

27 passing subtests
  1. [SAFE] [setHTML] HTML <a> with href (STANDARD)
  2. [SAFE] [ShadowRoot.setHTML] HTML <a> with href (STANDARD)
  3. [SAFE] [parseHTML] HTML <a> with href (STANDARD)
  4. [SAFE] [setHTML] HTML <a> with href (CASE_MIXED)
  5. [SAFE] [ShadowRoot.setHTML] HTML <a> with href (CASE_MIXED)
  6. [SAFE] [parseHTML] HTML <a> with href (CASE_MIXED)
  7. [SAFE] [setHTML] HTML <a> with href (TAB_ENTITY)
  8. [SAFE] [ShadowRoot.setHTML] HTML <a> with href (TAB_ENTITY)
  9. [SAFE] [parseHTML] HTML <a> with href (TAB_ENTITY)
  10. [SAFE] [setHTML] HTML <a> with href (NEWLINE_ENTITY)
  11. [SAFE] [ShadowRoot.setHTML] HTML <a> with href (NEWLINE_ENTITY)
  12. [SAFE] [parseHTML] HTML <a> with href (NEWLINE_ENTITY)
  13. [SAFE] [setHTML] HTML <a> with href (COLON_ENTITY)
  14. [SAFE] [ShadowRoot.setHTML] HTML <a> with href (COLON_ENTITY)
  15. [SAFE] [parseHTML] HTML <a> with href (COLON_ENTITY)
  16. [SAFE] [setHTML] HTML <a> with href (LEADING_WHITESPACE)
  17. [SAFE] [ShadowRoot.setHTML] HTML <a> with href (LEADING_WHITESPACE)
  18. [SAFE] [parseHTML] HTML <a> with href (LEADING_WHITESPACE)
  19. [SAFE] [setHTML] HTML <a> with href (TAB_RAW)
  20. [SAFE] [ShadowRoot.setHTML] HTML <a> with href (TAB_RAW)
  21. [SAFE] [parseHTML] HTML <a> with href (TAB_RAW)
  22. [SAFE] [setHTML] HTML <a> with href (NEWLINE_RAW)
  23. [SAFE] [ShadowRoot.setHTML] HTML <a> with href (NEWLINE_RAW)
  24. [SAFE] [parseHTML] HTML <a> with href (NEWLINE_RAW)
  25. [UNSAFE] [setHTMLUnsafe] HTML <a> with href
  26. [UNSAFE] [ShadowRoot.setHTMLUnsafe] HTML <a> with href
  27. [UNSAFE] [parseHTMLUnsafe] HTML <a> with href

/sanitizer-api/sanitizer-a-navigation.html?target=mathml OK 117 / 117

117 passing subtests
  1. [SAFE] [setHTML] MathML <a> with href only (STANDARD)
  2. [SAFE] [ShadowRoot.setHTML] MathML <a> with href only (STANDARD)
  3. [SAFE] [parseHTML] MathML <a> with href only (STANDARD)
  4. [SAFE] [setHTML] MathML <a> with href only (CASE_MIXED)
  5. [SAFE] [ShadowRoot.setHTML] MathML <a> with href only (CASE_MIXED)
  6. [SAFE] [parseHTML] MathML <a> with href only (CASE_MIXED)
  7. [SAFE] [setHTML] MathML <a> with href only (TAB_ENTITY)
  8. [SAFE] [ShadowRoot.setHTML] MathML <a> with href only (TAB_ENTITY)
  9. [SAFE] [parseHTML] MathML <a> with href only (TAB_ENTITY)
  10. [SAFE] [setHTML] MathML <a> with href only (NEWLINE_ENTITY)
  11. [SAFE] [ShadowRoot.setHTML] MathML <a> with href only (NEWLINE_ENTITY)
  12. [SAFE] [parseHTML] MathML <a> with href only (NEWLINE_ENTITY)
  13. [SAFE] [setHTML] MathML <a> with href only (COLON_ENTITY)
  14. [SAFE] [ShadowRoot.setHTML] MathML <a> with href only (COLON_ENTITY)
  15. [SAFE] [parseHTML] MathML <a> with href only (COLON_ENTITY)
  16. [SAFE] [setHTML] MathML <a> with href only (LEADING_WHITESPACE)
  17. [SAFE] [ShadowRoot.setHTML] MathML <a> with href only (LEADING_WHITESPACE)
  18. [SAFE] [parseHTML] MathML <a> with href only (LEADING_WHITESPACE)
  19. [SAFE] [setHTML] MathML <a> with href only (TAB_RAW)
  20. [SAFE] [ShadowRoot.setHTML] MathML <a> with href only (TAB_RAW)
  21. [SAFE] [parseHTML] MathML <a> with href only (TAB_RAW)
  22. [SAFE] [setHTML] MathML <a> with href only (NEWLINE_RAW)
  23. [SAFE] [ShadowRoot.setHTML] MathML <a> with href only (NEWLINE_RAW)
  24. [SAFE] [parseHTML] MathML <a> with href only (NEWLINE_RAW)
  25. [SAFE] [setHTML] MathML <a> with xlink:href only (STANDARD)
  26. [SAFE] [ShadowRoot.setHTML] MathML <a> with xlink:href only (STANDARD)
  27. [SAFE] [parseHTML] MathML <a> with xlink:href only (STANDARD)
  28. [SAFE] [setHTML] MathML <mrow> with href only (STANDARD)
  29. [SAFE] [ShadowRoot.setHTML] MathML <mrow> with href only (STANDARD)
  30. [SAFE] [parseHTML] MathML <mrow> with href only (STANDARD)
  31. [SAFE] [setHTML] MathML <mrow> with xlink:href only (STANDARD)
  32. [SAFE] [ShadowRoot.setHTML] MathML <mrow> with xlink:href only (STANDARD)
  33. [SAFE] [parseHTML] MathML <mrow> with xlink:href only (STANDARD)
  34. [SAFE] [setHTML] MathML <a> with both href (javascript:) and xlink:href (safe) (STANDARD)
  35. [SAFE] [ShadowRoot.setHTML] MathML <a> with both href (javascript:) and xlink:href (safe) (STANDARD)
  36. [SAFE] [parseHTML] MathML <a> with both href (javascript:) and xlink:href (safe) (STANDARD)
  37. [SAFE] [setHTML] MathML <a> with both href (javascript:) and xlink:href (safe) (CASE_MIXED)
  38. [SAFE] [ShadowRoot.setHTML] MathML <a> with both href (javascript:) and xlink:href (safe) (CASE_MIXED)
  39. [SAFE] [parseHTML] MathML <a> with both href (javascript:) and xlink:href (safe) (CASE_MIXED)
  40. [SAFE] [setHTML] MathML <a> with both href (javascript:) and xlink:href (safe) (TAB_ENTITY)
  41. [SAFE] [ShadowRoot.setHTML] MathML <a> with both href (javascript:) and xlink:href (safe) (TAB_ENTITY)
  42. [SAFE] [parseHTML] MathML <a> with both href (javascript:) and xlink:href (safe) (TAB_ENTITY)
  43. [SAFE] [setHTML] MathML <a> with both href (javascript:) and xlink:href (safe) (NEWLINE_ENTITY)
  44. [SAFE] [ShadowRoot.setHTML] MathML <a> with both href (javascript:) and xlink:href (safe) (NEWLINE_ENTITY)
  45. [SAFE] [parseHTML] MathML <a> with both href (javascript:) and xlink:href (safe) (NEWLINE_ENTITY)
  46. [SAFE] [setHTML] MathML <a> with both href (javascript:) and xlink:href (safe) (COLON_ENTITY)
  47. [SAFE] [ShadowRoot.setHTML] MathML <a> with both href (javascript:) and xlink:href (safe) (COLON_ENTITY)
  48. [SAFE] [parseHTML] MathML <a> with both href (javascript:) and xlink:href (safe) (COLON_ENTITY)
  49. [SAFE] [setHTML] MathML <a> with both href (javascript:) and xlink:href (safe) (LEADING_WHITESPACE)
  50. [SAFE] [ShadowRoot.setHTML] MathML <a> with both href (javascript:) and xlink:href (safe) (LEADING_WHITESPACE)
  51. [SAFE] [parseHTML] MathML <a> with both href (javascript:) and xlink:href (safe) (LEADING_WHITESPACE)
  52. [SAFE] [setHTML] MathML <a> with both href (javascript:) and xlink:href (safe) (TAB_RAW)
  53. [SAFE] [ShadowRoot.setHTML] MathML <a> with both href (javascript:) and xlink:href (safe) (TAB_RAW)
  54. [SAFE] [parseHTML] MathML <a> with both href (javascript:) and xlink:href (safe) (TAB_RAW)
  55. [SAFE] [setHTML] MathML <a> with both href (javascript:) and xlink:href (safe) (NEWLINE_RAW)
  56. [SAFE] [ShadowRoot.setHTML] MathML <a> with both href (javascript:) and xlink:href (safe) (NEWLINE_RAW)
  57. [SAFE] [parseHTML] MathML <a> with both href (javascript:) and xlink:href (safe) (NEWLINE_RAW)
  58. [SAFE] [setHTML] MathML <mtext> integration point HTML <a> with href (STANDARD)
  59. [SAFE] [ShadowRoot.setHTML] MathML <mtext> integration point HTML <a> with href (STANDARD)
  60. [SAFE] [parseHTML] MathML <mtext> integration point HTML <a> with href (STANDARD)
  61. [SAFE] [setHTML] MathML <mtext> integration point HTML <a> with href (CASE_MIXED)
  62. [SAFE] [ShadowRoot.setHTML] MathML <mtext> integration point HTML <a> with href (CASE_MIXED)
  63. [SAFE] [parseHTML] MathML <mtext> integration point HTML <a> with href (CASE_MIXED)
  64. [SAFE] [setHTML] MathML <mtext> integration point HTML <a> with href (TAB_ENTITY)
  65. [SAFE] [ShadowRoot.setHTML] MathML <mtext> integration point HTML <a> with href (TAB_ENTITY)
  66. [SAFE] [parseHTML] MathML <mtext> integration point HTML <a> with href (TAB_ENTITY)
  67. [SAFE] [setHTML] MathML <mtext> integration point HTML <a> with href (NEWLINE_ENTITY)
  68. [SAFE] [ShadowRoot.setHTML] MathML <mtext> integration point HTML <a> with href (NEWLINE_ENTITY)
  69. [SAFE] [parseHTML] MathML <mtext> integration point HTML <a> with href (NEWLINE_ENTITY)
  70. [SAFE] [setHTML] MathML <mtext> integration point HTML <a> with href (COLON_ENTITY)
  71. [SAFE] [ShadowRoot.setHTML] MathML <mtext> integration point HTML <a> with href (COLON_ENTITY)
  72. [SAFE] [parseHTML] MathML <mtext> integration point HTML <a> with href (COLON_ENTITY)
  73. [SAFE] [setHTML] MathML <mtext> integration point HTML <a> with href (LEADING_WHITESPACE)
  74. [SAFE] [ShadowRoot.setHTML] MathML <mtext> integration point HTML <a> with href (LEADING_WHITESPACE)
  75. [SAFE] [parseHTML] MathML <mtext> integration point HTML <a> with href (LEADING_WHITESPACE)
  76. [SAFE] [setHTML] MathML <mtext> integration point HTML <a> with href (TAB_RAW)
  77. [SAFE] [ShadowRoot.setHTML] MathML <mtext> integration point HTML <a> with href (TAB_RAW)
  78. [SAFE] [parseHTML] MathML <mtext> integration point HTML <a> with href (TAB_RAW)
  79. [SAFE] [setHTML] MathML <mtext> integration point HTML <a> with href (NEWLINE_RAW)
  80. [SAFE] [ShadowRoot.setHTML] MathML <mtext> integration point HTML <a> with href (NEWLINE_RAW)
  81. [SAFE] [parseHTML] MathML <mtext> integration point HTML <a> with href (NEWLINE_RAW)
  82. [SAFE] [setHTML] MathML <mtext> integration point SVG <a> with xlink:href (STANDARD)
  83. [SAFE] [ShadowRoot.setHTML] MathML <mtext> integration point SVG <a> with xlink:href (STANDARD)
  84. [SAFE] [parseHTML] MathML <mtext> integration point SVG <a> with xlink:href (STANDARD)
  85. [SAFE] [setHTML] MathML <mtext> integration point SVG <a> with xlink:href (CASE_MIXED)
  86. [SAFE] [ShadowRoot.setHTML] MathML <mtext> integration point SVG <a> with xlink:href (CASE_MIXED)
  87. [SAFE] [parseHTML] MathML <mtext> integration point SVG <a> with xlink:href (CASE_MIXED)
  88. [SAFE] [setHTML] MathML <mtext> integration point SVG <a> with xlink:href (TAB_ENTITY)
  89. [SAFE] [ShadowRoot.setHTML] MathML <mtext> integration point SVG <a> with xlink:href (TAB_ENTITY)
  90. [SAFE] [parseHTML] MathML <mtext> integration point SVG <a> with xlink:href (TAB_ENTITY)
  91. [SAFE] [setHTML] MathML <mtext> integration point SVG <a> with xlink:href (NEWLINE_ENTITY)
  92. [SAFE] [ShadowRoot.setHTML] MathML <mtext> integration point SVG <a> with xlink:href (NEWLINE_ENTITY)
  93. [SAFE] [parseHTML] MathML <mtext> integration point SVG <a> with xlink:href (NEWLINE_ENTITY)
  94. [SAFE] [setHTML] MathML <mtext> integration point SVG <a> with xlink:href (COLON_ENTITY)
  95. [SAFE] [ShadowRoot.setHTML] MathML <mtext> integration point SVG <a> with xlink:href (COLON_ENTITY)
  96. [SAFE] [parseHTML] MathML <mtext> integration point SVG <a> with xlink:href (COLON_ENTITY)
  97. [SAFE] [setHTML] MathML <mtext> integration point SVG <a> with xlink:href (LEADING_WHITESPACE)
  98. [SAFE] [ShadowRoot.setHTML] MathML <mtext> integration point SVG <a> with xlink:href (LEADING_WHITESPACE)
  99. [SAFE] [parseHTML] MathML <mtext> integration point SVG <a> with xlink:href (LEADING_WHITESPACE)
  100. [SAFE] [setHTML] MathML <mtext> integration point SVG <a> with xlink:href (TAB_RAW)
  101. [SAFE] [ShadowRoot.setHTML] MathML <mtext> integration point SVG <a> with xlink:href (TAB_RAW)
  102. [SAFE] [parseHTML] MathML <mtext> integration point SVG <a> with xlink:href (TAB_RAW)
  103. [SAFE] [setHTML] MathML <mtext> integration point SVG <a> with xlink:href (NEWLINE_RAW)
  104. [SAFE] [ShadowRoot.setHTML] MathML <mtext> integration point SVG <a> with xlink:href (NEWLINE_RAW)
  105. [SAFE] [parseHTML] MathML <mtext> integration point SVG <a> with xlink:href (NEWLINE_RAW)
  106. [UNSAFE] [setHTMLUnsafe] MathML <a> with href only
  107. [UNSAFE] [ShadowRoot.setHTMLUnsafe] MathML <a> with href only
  108. [UNSAFE] [parseHTMLUnsafe] MathML <a> with href only
  109. [UNSAFE] [setHTMLUnsafe] MathML <a> with both href (javascript:) and xlink:href (safe)
  110. [UNSAFE] [ShadowRoot.setHTMLUnsafe] MathML <a> with both href (javascript:) and xlink:href (safe)
  111. [UNSAFE] [parseHTMLUnsafe] MathML <a> with both href (javascript:) and xlink:href (safe)
  112. [UNSAFE] [setHTMLUnsafe] MathML <mtext> integration point HTML <a> with href
  113. [UNSAFE] [ShadowRoot.setHTMLUnsafe] MathML <mtext> integration point HTML <a> with href
  114. [UNSAFE] [parseHTMLUnsafe] MathML <mtext> integration point HTML <a> with href
  115. [UNSAFE] [setHTMLUnsafe] MathML <mtext> integration point SVG <a> with xlink:href
  116. [UNSAFE] [ShadowRoot.setHTMLUnsafe] MathML <mtext> integration point SVG <a> with xlink:href
  117. [UNSAFE] [parseHTMLUnsafe] MathML <mtext> integration point SVG <a> with xlink:href

/sanitizer-api/sanitizer-a-navigation.html?target=svg OK 81 / 81

81 passing subtests
  1. [SAFE] [setHTML] SVG <a> with href only (STANDARD)
  2. [SAFE] [ShadowRoot.setHTML] SVG <a> with href only (STANDARD)
  3. [SAFE] [parseHTML] SVG <a> with href only (STANDARD)
  4. [SAFE] [setHTML] SVG <a> with href only (CASE_MIXED)
  5. [SAFE] [ShadowRoot.setHTML] SVG <a> with href only (CASE_MIXED)
  6. [SAFE] [parseHTML] SVG <a> with href only (CASE_MIXED)
  7. [SAFE] [setHTML] SVG <a> with href only (TAB_ENTITY)
  8. [SAFE] [ShadowRoot.setHTML] SVG <a> with href only (TAB_ENTITY)
  9. [SAFE] [parseHTML] SVG <a> with href only (TAB_ENTITY)
  10. [SAFE] [setHTML] SVG <a> with href only (NEWLINE_ENTITY)
  11. [SAFE] [ShadowRoot.setHTML] SVG <a> with href only (NEWLINE_ENTITY)
  12. [SAFE] [parseHTML] SVG <a> with href only (NEWLINE_ENTITY)
  13. [SAFE] [setHTML] SVG <a> with href only (COLON_ENTITY)
  14. [SAFE] [ShadowRoot.setHTML] SVG <a> with href only (COLON_ENTITY)
  15. [SAFE] [parseHTML] SVG <a> with href only (COLON_ENTITY)
  16. [SAFE] [setHTML] SVG <a> with href only (LEADING_WHITESPACE)
  17. [SAFE] [ShadowRoot.setHTML] SVG <a> with href only (LEADING_WHITESPACE)
  18. [SAFE] [parseHTML] SVG <a> with href only (LEADING_WHITESPACE)
  19. [SAFE] [setHTML] SVG <a> with href only (TAB_RAW)
  20. [SAFE] [ShadowRoot.setHTML] SVG <a> with href only (TAB_RAW)
  21. [SAFE] [parseHTML] SVG <a> with href only (TAB_RAW)
  22. [SAFE] [setHTML] SVG <a> with href only (NEWLINE_RAW)
  23. [SAFE] [ShadowRoot.setHTML] SVG <a> with href only (NEWLINE_RAW)
  24. [SAFE] [parseHTML] SVG <a> with href only (NEWLINE_RAW)
  25. [SAFE] [setHTML] SVG <a> with xlink:href only (STANDARD)
  26. [SAFE] [ShadowRoot.setHTML] SVG <a> with xlink:href only (STANDARD)
  27. [SAFE] [parseHTML] SVG <a> with xlink:href only (STANDARD)
  28. [SAFE] [setHTML] SVG <a> with xlink:href only (CASE_MIXED)
  29. [SAFE] [ShadowRoot.setHTML] SVG <a> with xlink:href only (CASE_MIXED)
  30. [SAFE] [parseHTML] SVG <a> with xlink:href only (CASE_MIXED)
  31. [SAFE] [setHTML] SVG <a> with xlink:href only (TAB_ENTITY)
  32. [SAFE] [ShadowRoot.setHTML] SVG <a> with xlink:href only (TAB_ENTITY)
  33. [SAFE] [parseHTML] SVG <a> with xlink:href only (TAB_ENTITY)
  34. [SAFE] [setHTML] SVG <a> with xlink:href only (NEWLINE_ENTITY)
  35. [SAFE] [ShadowRoot.setHTML] SVG <a> with xlink:href only (NEWLINE_ENTITY)
  36. [SAFE] [parseHTML] SVG <a> with xlink:href only (NEWLINE_ENTITY)
  37. [SAFE] [setHTML] SVG <a> with xlink:href only (COLON_ENTITY)
  38. [SAFE] [ShadowRoot.setHTML] SVG <a> with xlink:href only (COLON_ENTITY)
  39. [SAFE] [parseHTML] SVG <a> with xlink:href only (COLON_ENTITY)
  40. [SAFE] [setHTML] SVG <a> with xlink:href only (LEADING_WHITESPACE)
  41. [SAFE] [ShadowRoot.setHTML] SVG <a> with xlink:href only (LEADING_WHITESPACE)
  42. [SAFE] [parseHTML] SVG <a> with xlink:href only (LEADING_WHITESPACE)
  43. [SAFE] [setHTML] SVG <a> with xlink:href only (TAB_RAW)
  44. [SAFE] [ShadowRoot.setHTML] SVG <a> with xlink:href only (TAB_RAW)
  45. [SAFE] [parseHTML] SVG <a> with xlink:href only (TAB_RAW)
  46. [SAFE] [setHTML] SVG <a> with xlink:href only (NEWLINE_RAW)
  47. [SAFE] [ShadowRoot.setHTML] SVG <a> with xlink:href only (NEWLINE_RAW)
  48. [SAFE] [parseHTML] SVG <a> with xlink:href only (NEWLINE_RAW)
  49. [SAFE] [setHTML] SVG <a> with both href (javascript:) and xlink:href (safe) (STANDARD)
  50. [SAFE] [ShadowRoot.setHTML] SVG <a> with both href (javascript:) and xlink:href (safe) (STANDARD)
  51. [SAFE] [parseHTML] SVG <a> with both href (javascript:) and xlink:href (safe) (STANDARD)
  52. [SAFE] [setHTML] SVG <a> with both href (javascript:) and xlink:href (safe) (CASE_MIXED)
  53. [SAFE] [ShadowRoot.setHTML] SVG <a> with both href (javascript:) and xlink:href (safe) (CASE_MIXED)
  54. [SAFE] [parseHTML] SVG <a> with both href (javascript:) and xlink:href (safe) (CASE_MIXED)
  55. [SAFE] [setHTML] SVG <a> with both href (javascript:) and xlink:href (safe) (TAB_ENTITY)
  56. [SAFE] [ShadowRoot.setHTML] SVG <a> with both href (javascript:) and xlink:href (safe) (TAB_ENTITY)
  57. [SAFE] [parseHTML] SVG <a> with both href (javascript:) and xlink:href (safe) (TAB_ENTITY)
  58. [SAFE] [setHTML] SVG <a> with both href (javascript:) and xlink:href (safe) (NEWLINE_ENTITY)
  59. [SAFE] [ShadowRoot.setHTML] SVG <a> with both href (javascript:) and xlink:href (safe) (NEWLINE_ENTITY)
  60. [SAFE] [parseHTML] SVG <a> with both href (javascript:) and xlink:href (safe) (NEWLINE_ENTITY)
  61. [SAFE] [setHTML] SVG <a> with both href (javascript:) and xlink:href (safe) (COLON_ENTITY)
  62. [SAFE] [ShadowRoot.setHTML] SVG <a> with both href (javascript:) and xlink:href (safe) (COLON_ENTITY)
  63. [SAFE] [parseHTML] SVG <a> with both href (javascript:) and xlink:href (safe) (COLON_ENTITY)
  64. [SAFE] [setHTML] SVG <a> with both href (javascript:) and xlink:href (safe) (LEADING_WHITESPACE)
  65. [SAFE] [ShadowRoot.setHTML] SVG <a> with both href (javascript:) and xlink:href (safe) (LEADING_WHITESPACE)
  66. [SAFE] [parseHTML] SVG <a> with both href (javascript:) and xlink:href (safe) (LEADING_WHITESPACE)
  67. [SAFE] [setHTML] SVG <a> with both href (javascript:) and xlink:href (safe) (TAB_RAW)
  68. [SAFE] [ShadowRoot.setHTML] SVG <a> with both href (javascript:) and xlink:href (safe) (TAB_RAW)
  69. [SAFE] [parseHTML] SVG <a> with both href (javascript:) and xlink:href (safe) (TAB_RAW)
  70. [SAFE] [setHTML] SVG <a> with both href (javascript:) and xlink:href (safe) (NEWLINE_RAW)
  71. [SAFE] [ShadowRoot.setHTML] SVG <a> with both href (javascript:) and xlink:href (safe) (NEWLINE_RAW)
  72. [SAFE] [parseHTML] SVG <a> with both href (javascript:) and xlink:href (safe) (NEWLINE_RAW)
  73. [UNSAFE] [setHTMLUnsafe] SVG <a> with href only
  74. [UNSAFE] [ShadowRoot.setHTMLUnsafe] SVG <a> with href only
  75. [UNSAFE] [parseHTMLUnsafe] SVG <a> with href only
  76. [UNSAFE] [setHTMLUnsafe] SVG <a> with xlink:href only
  77. [UNSAFE] [ShadowRoot.setHTMLUnsafe] SVG <a> with xlink:href only
  78. [UNSAFE] [parseHTMLUnsafe] SVG <a> with xlink:href only
  79. [UNSAFE] [setHTMLUnsafe] SVG <a> with both href (javascript:) and xlink:href (safe)
  80. [UNSAFE] [ShadowRoot.setHTMLUnsafe] SVG <a> with both href (javascript:) and xlink:href (safe)
  81. [UNSAFE] [parseHTMLUnsafe] SVG <a> with both href (javascript:) and xlink:href (safe)
sanitizer-base-immutable.html27 / 27 passingChrome 26 / 270 failedClean
Standing
Clean runner status OK
Chrome
With failures 26 / 27 WPT subtests passing runner status OK
27 passing subtests
  1. Modifying a Sanitizer instance does not change subsequent new Sanitizer() instances
  2. allowElement() on new Sanitizer() does not affect subsequent instances
  3. removeElement() on new Sanitizer() does not affect subsequent instances
  4. replaceElementWithChildren() on new Sanitizer() does not affect subsequent instances
  5. allowAttribute() on new Sanitizer() does not affect subsequent instances
  6. removeAttribute() on new Sanitizer() does not affect subsequent instances
  7. allowProcessingInstruction() on new Sanitizer() does not affect subsequent instances
  8. removeProcessingInstruction() on new Sanitizer() does not affect subsequent instances
  9. setComments() on new Sanitizer() does not affect subsequent instances
  10. setDataAttributes() on new Sanitizer() does not affect subsequent instances
  11. removeUnsafe() on new Sanitizer() does not affect subsequent instances
  12. Mutating the object returned by sanitizer.get() does not affect the Sanitizer or default configuration
  13. Repeated calls to sanitizer.get() return distinct object copies
  14. Modifying a Sanitizer after removeUnsafe() does not change the built-in safe baseline configuration
  15. Mutating config returned from baseline sanitizer does not affect subsequent removeUnsafe() calls
  16. Modifying input configuration dictionary after new Sanitizer(config) does not affect the Sanitizer
  17. Sanitization with Element.prototype.setHTML() does not change default base configuration
  18. Sanitization with Document.parseHTML() does not change default base configuration
  19. A modified Sanitizer used in setHTML() does not affect default configuration or other Sanitizers
  20. s.get() is unchanged after Element.prototype.setHTML() when Sanitizer has unsafe allowlist entries
  21. s.get() is unchanged after Element.prototype.setHTML() when Sanitizer has unsafe remove-list configuration
  22. s.get() is unchanged after Document.parseHTML() when Sanitizer has unsafe entries
  23. Sanitization with appendHTML() does not change default base configuration or mutate passed Sanitizer
  24. Sanitization with prependHTML() does not change default base configuration or mutate passed Sanitizer
  25. Sanitization with beforeHTML() does not change default base configuration or mutate passed Sanitizer
  26. Sanitization with afterHTML() does not change default base configuration or mutate passed Sanitizer
  27. Sanitization with replaceWithHTML() does not change default base configuration or mutate passed Sanitizer
sanitizer-basic-filtering.html354 / 354 passingChrome 354 / 3540 failedClean
Standing
Clean runner status OK
Chrome
Clean 354 / 354 WPT subtests passing runner status OK
354 passing subtests
  1. setHTML testcase text/0, "text"
  2. setHTMLUnsafe testcase text/0, "text"
  3. ShadowRoot.setHTML testcase text/0, "text"
  4. ShadowRoot.setHTMLUnsafe testcase text/0, "text"
  5. parseHTML testcase text/0, "text"
  6. parseHTMLUnsafe testcase text/0, "text"
  7. setHTML testcase elements/0, "<div><p>Hello <b>World!</b>"
  8. setHTMLUnsafe testcase elements/0, "<div><p>Hello <b>World!</b>"
  9. ShadowRoot.setHTML testcase elements/0, "<div><p>Hello <b>World!</b>"
  10. ShadowRoot.setHTMLUnsafe testcase elements/0, "<div><p>Hello <b>World!</b>"
  11. parseHTML testcase elements/0, "<div><p>Hello <b>World!</b>"
  12. parseHTMLUnsafe testcase elements/0, "<div><p>Hello <b>World!</b>"
  13. setHTML testcase elements/1, "<div><p>Hello <b>World!</b>"
  14. setHTMLUnsafe testcase elements/1, "<div><p>Hello <b>World!</b>"
  15. ShadowRoot.setHTML testcase elements/1, "<div><p>Hello <b>World!</b>"
  16. ShadowRoot.setHTMLUnsafe testcase elements/1, "<div><p>Hello <b>World!</b>"
  17. parseHTML testcase elements/1, "<div><p>Hello <b>World!</b>"
  18. parseHTMLUnsafe testcase elements/1, "<div><p>Hello <b>World!</b>"
  19. setHTML testcase elements/2, "<div><p>Hello <b>World!</b>"
  20. setHTMLUnsafe testcase elements/2, "<div><p>Hello <b>World!</b>"
  21. ShadowRoot.setHTML testcase elements/2, "<div><p>Hello <b>World!</b>"
  22. ShadowRoot.setHTMLUnsafe testcase elements/2, "<div><p>Hello <b>World!</b>"
  23. parseHTML testcase elements/2, "<div><p>Hello <b>World!</b>"
  24. parseHTMLUnsafe testcase elements/2, "<div><p>Hello <b>World!</b>"
  25. setHTML testcase elements/3, "<div><p>Hello <b>World!</b>"
  26. setHTMLUnsafe testcase elements/3, "<div><p>Hello <b>World!</b>"
  27. ShadowRoot.setHTML testcase elements/3, "<div><p>Hello <b>World!</b>"
  28. ShadowRoot.setHTMLUnsafe testcase elements/3, "<div><p>Hello <b>World!</b>"
  29. parseHTML testcase elements/3, "<div><p>Hello <b>World!</b>"
  30. parseHTMLUnsafe testcase elements/3, "<div><p>Hello <b>World!</b>"
  31. setHTML testcase elements/4, "<div><p>Hello <b>World!</b>"
  32. setHTMLUnsafe testcase elements/4, "<div><p>Hello <b>World!</b>"
  33. ShadowRoot.setHTML testcase elements/4, "<div><p>Hello <b>World!</b>"
  34. ShadowRoot.setHTMLUnsafe testcase elements/4, "<div><p>Hello <b>World!</b>"
  35. parseHTML testcase elements/4, "<div><p>Hello <b>World!</b>"
  36. parseHTMLUnsafe testcase elements/4, "<div><p>Hello <b>World!</b>"
  37. setHTML testcase attributes/0, "<p id="hello" style="font-weight: bold">x"
  38. setHTMLUnsafe testcase attributes/0, "<p id="hello" style="font-weight: bold">x"
  39. ShadowRoot.setHTML testcase attributes/0, "<p id="hello" style="font-weight: bold">x"
  40. ShadowRoot.setHTMLUnsafe testcase attributes/0, "<p id="hello" style="font-weight: bold">x"
  41. parseHTML testcase attributes/0, "<p id="hello" style="font-weight: bold">x"
  42. parseHTMLUnsafe testcase attributes/0, "<p id="hello" style="font-weight: bold">x"
  43. setHTML testcase attributes/1, "<p id="hello" style="font-weight: bold">x"
  44. setHTMLUnsafe testcase attributes/1, "<p id="hello" style="font-weight: bold">x"
  45. ShadowRoot.setHTML testcase attributes/1, "<p id="hello" style="font-weight: bold">x"
  46. ShadowRoot.setHTMLUnsafe testcase attributes/1, "<p id="hello" style="font-weight: bold">x"
  47. parseHTML testcase attributes/1, "<p id="hello" style="font-weight: bold">x"
  48. parseHTMLUnsafe testcase attributes/1, "<p id="hello" style="font-weight: bold">x"
  49. setHTML testcase attributes/2, "<p id="hello" style="font-weight: bold">x"
  50. setHTMLUnsafe testcase attributes/2, "<p id="hello" style="font-weight: bold">x"
  51. ShadowRoot.setHTML testcase attributes/2, "<p id="hello" style="font-weight: bold">x"
  52. ShadowRoot.setHTMLUnsafe testcase attributes/2, "<p id="hello" style="font-weight: bold">x"
  53. parseHTML testcase attributes/2, "<p id="hello" style="font-weight: bold">x"
  54. parseHTMLUnsafe testcase attributes/2, "<p id="hello" style="font-weight: bold">x"
  55. setHTML testcase attributes-per-element/0, "<div style="font-weight: bold" class="bourgeoisie">"
  56. setHTMLUnsafe testcase attributes-per-element/0, "<div style="font-weight: bold" class="bourgeoisie">"
  57. ShadowRoot.setHTML testcase attributes-per-element/0, "<div style="font-weight: bold" class="bourgeoisie">"
  58. ShadowRoot.setHTMLUnsafe testcase attributes-per-element/0, "<div style="font-weight: bold" class="bourgeoisie">"
  59. parseHTML testcase attributes-per-element/0, "<div style="font-weight: bold" class="bourgeoisie">"
  60. parseHTMLUnsafe testcase attributes-per-element/0, "<div style="font-weight: bold" class="bourgeoisie">"
  61. setHTML testcase attributes-per-element/1, "<div style="font-weight: bold" class="bourgeoisie">"
  62. setHTMLUnsafe testcase attributes-per-element/1, "<div style="font-weight: bold" class="bourgeoisie">"
  63. ShadowRoot.setHTML testcase attributes-per-element/1, "<div style="font-weight: bold" class="bourgeoisie">"
  64. ShadowRoot.setHTMLUnsafe testcase attributes-per-element/1, "<div style="font-weight: bold" class="bourgeoisie">"
  65. parseHTML testcase attributes-per-element/1, "<div style="font-weight: bold" class="bourgeoisie">"
  66. parseHTMLUnsafe testcase attributes-per-element/1, "<div style="font-weight: bold" class="bourgeoisie">"
  67. setHTML testcase comments/0, "a <!-- comment --> b"
  68. setHTMLUnsafe testcase comments/0, "a <!-- comment --> b"
  69. ShadowRoot.setHTML testcase comments/0, "a <!-- comment --> b"
  70. ShadowRoot.setHTMLUnsafe testcase comments/0, "a <!-- comment --> b"
  71. parseHTML testcase comments/0, "a <!-- comment --> b"
  72. parseHTMLUnsafe testcase comments/0, "a <!-- comment --> b"
  73. setHTML testcase comments/1, "a <!-- comment --> b"
  74. setHTMLUnsafe testcase comments/1, "a <!-- comment --> b"
  75. ShadowRoot.setHTML testcase comments/1, "a <!-- comment --> b"
  76. ShadowRoot.setHTMLUnsafe testcase comments/1, "a <!-- comment --> b"
  77. parseHTML testcase comments/1, "a <!-- comment --> b"
  78. parseHTMLUnsafe testcase comments/1, "a <!-- comment --> b"
  79. setHTML testcase dataAttributes/0, "<p data-x="1" data-y="2" data-z="3">"
  80. setHTMLUnsafe testcase dataAttributes/0, "<p data-x="1" data-y="2" data-z="3">"
  81. ShadowRoot.setHTML testcase dataAttributes/0, "<p data-x="1" data-y="2" data-z="3">"
  82. ShadowRoot.setHTMLUnsafe testcase dataAttributes/0, "<p data-x="1" data-y="2" data-z="3">"
  83. parseHTML testcase dataAttributes/0, "<p data-x="1" data-y="2" data-z="3">"
  84. parseHTMLUnsafe testcase dataAttributes/0, "<p data-x="1" data-y="2" data-z="3">"
  85. setHTML testcase dataAttributes/1, "<p data-x="1" data-y="2" data-z="3">"
  86. setHTMLUnsafe testcase dataAttributes/1, "<p data-x="1" data-y="2" data-z="3">"
  87. ShadowRoot.setHTML testcase dataAttributes/1, "<p data-x="1" data-y="2" data-z="3">"
  88. ShadowRoot.setHTMLUnsafe testcase dataAttributes/1, "<p data-x="1" data-y="2" data-z="3">"
  89. parseHTML testcase dataAttributes/1, "<p data-x="1" data-y="2" data-z="3">"
  90. parseHTMLUnsafe testcase dataAttributes/1, "<p data-x="1" data-y="2" data-z="3">"
  91. setHTML testcase dataAttributes/2, "<p data-x="1" data-y="2" data-z="3">"
  92. setHTMLUnsafe testcase dataAttributes/2, "<p data-x="1" data-y="2" data-z="3">"
  93. ShadowRoot.setHTML testcase dataAttributes/2, "<p data-x="1" data-y="2" data-z="3">"
  94. ShadowRoot.setHTMLUnsafe testcase dataAttributes/2, "<p data-x="1" data-y="2" data-z="3">"
  95. parseHTML testcase dataAttributes/2, "<p data-x="1" data-y="2" data-z="3">"
  96. parseHTMLUnsafe testcase dataAttributes/2, "<p data-x="1" data-y="2" data-z="3">"
  97. setHTML testcase dataAttributes/3, "<div data-="x"></div>": "data-" prefix with an empty suffix is still covered by dataAttributes
  98. setHTMLUnsafe testcase dataAttributes/3, "<div data-="x"></div>": "data-" prefix with an empty suffix is still covered by dataAttributes
  99. ShadowRoot.setHTML testcase dataAttributes/3, "<div data-="x"></div>": "data-" prefix with an empty suffix is still covered by dataAttributes
  100. ShadowRoot.setHTMLUnsafe testcase dataAttributes/3, "<div data-="x"></div>": "data-" prefix with an empty suffix is still covered by dataAttributes
  101. parseHTML testcase dataAttributes/3, "<div data-="x"></div>": "data-" prefix with an empty suffix is still covered by dataAttributes
  102. parseHTMLUnsafe testcase dataAttributes/3, "<div data-="x"></div>": "data-" prefix with an empty suffix is still covered by dataAttributes
  103. setHTML testcase dataAttributes/4, "<div data-="x"></div>": "data-" prefix with an empty suffix is still covered by dataAttributes
  104. setHTMLUnsafe testcase dataAttributes/4, "<div data-="x"></div>": "data-" prefix with an empty suffix is still covered by dataAttributes
  105. ShadowRoot.setHTML testcase dataAttributes/4, "<div data-="x"></div>": "data-" prefix with an empty suffix is still covered by dataAttributes
  106. ShadowRoot.setHTMLUnsafe testcase dataAttributes/4, "<div data-="x"></div>": "data-" prefix with an empty suffix is still covered by dataAttributes
  107. parseHTML testcase dataAttributes/4, "<div data-="x"></div>": "data-" prefix with an empty suffix is still covered by dataAttributes
  108. parseHTMLUnsafe testcase dataAttributes/4, "<div data-="x"></div>": "data-" prefix with an empty suffix is still covered by dataAttributes
  109. setHTML testcase namespaces/0, "<svg><rect></svg><math><mi>x"
  110. setHTMLUnsafe testcase namespaces/0, "<svg><rect></svg><math><mi>x"
  111. ShadowRoot.setHTML testcase namespaces/0, "<svg><rect></svg><math><mi>x"
  112. ShadowRoot.setHTMLUnsafe testcase namespaces/0, "<svg><rect></svg><math><mi>x"
  113. parseHTML testcase namespaces/0, "<svg><rect></svg><math><mi>x"
  114. parseHTMLUnsafe testcase namespaces/0, "<svg><rect></svg><math><mi>x"
  115. setHTML testcase namespaces/1, "<svg><rect>"
  116. setHTMLUnsafe testcase namespaces/1, "<svg><rect>"
  117. ShadowRoot.setHTML testcase namespaces/1, "<svg><rect>"
  118. ShadowRoot.setHTMLUnsafe testcase namespaces/1, "<svg><rect>"
  119. parseHTML testcase namespaces/1, "<svg><rect>"
  120. parseHTMLUnsafe testcase namespaces/1, "<svg><rect>"
  121. setHTML testcase namespaces/2, "<svg><rect>"
  122. setHTMLUnsafe testcase namespaces/2, "<svg><rect>"
  123. ShadowRoot.setHTML testcase namespaces/2, "<svg><rect>"
  124. ShadowRoot.setHTMLUnsafe testcase namespaces/2, "<svg><rect>"
  125. parseHTML testcase namespaces/2, "<svg><rect>"
  126. parseHTMLUnsafe testcase namespaces/2, "<svg><rect>"
  127. setHTML testcase namespaces/3, "<svg><rect>"
  128. setHTMLUnsafe testcase namespaces/3, "<svg><rect>"
  129. ShadowRoot.setHTML testcase namespaces/3, "<svg><rect>"
  130. ShadowRoot.setHTMLUnsafe testcase namespaces/3, "<svg><rect>"
  131. parseHTML testcase namespaces/3, "<svg><rect>"
  132. parseHTMLUnsafe testcase namespaces/3, "<svg><rect>"
  133. setHTML testcase namespaces/4, "<math><mi>x"
  134. setHTMLUnsafe testcase namespaces/4, "<math><mi>x"
  135. ShadowRoot.setHTML testcase namespaces/4, "<math><mi>x"
  136. ShadowRoot.setHTMLUnsafe testcase namespaces/4, "<math><mi>x"
  137. parseHTML testcase namespaces/4, "<math><mi>x"
  138. parseHTMLUnsafe testcase namespaces/4, "<math><mi>x"
  139. setHTML testcase namespaces/5, "<math><mi>x"
  140. setHTMLUnsafe testcase namespaces/5, "<math><mi>x"
  141. ShadowRoot.setHTML testcase namespaces/5, "<math><mi>x"
  142. ShadowRoot.setHTMLUnsafe testcase namespaces/5, "<math><mi>x"
  143. parseHTML testcase namespaces/5, "<math><mi>x"
  144. parseHTMLUnsafe testcase namespaces/5, "<math><mi>x"
  145. setHTML testcase namespaces/6, "<math><mi>x"
  146. setHTMLUnsafe testcase namespaces/6, "<math><mi>x"
  147. ShadowRoot.setHTML testcase namespaces/6, "<math><mi>x"
  148. ShadowRoot.setHTMLUnsafe testcase namespaces/6, "<math><mi>x"
  149. parseHTML testcase namespaces/6, "<math><mi>x"
  150. parseHTMLUnsafe testcase namespaces/6, "<math><mi>x"
  151. setHTML testcase namespaces/7, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
  152. setHTMLUnsafe testcase namespaces/7, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
  153. ShadowRoot.setHTML testcase namespaces/7, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
  154. ShadowRoot.setHTMLUnsafe testcase namespaces/7, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
  155. parseHTML testcase namespaces/7, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
  156. parseHTMLUnsafe testcase namespaces/7, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
  157. setHTML testcase namespaces/8, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
  158. setHTMLUnsafe testcase namespaces/8, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
  159. ShadowRoot.setHTML testcase namespaces/8, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
  160. ShadowRoot.setHTMLUnsafe testcase namespaces/8, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
  161. parseHTML testcase namespaces/8, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
  162. parseHTMLUnsafe testcase namespaces/8, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
  163. setHTML testcase namespaces/9, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
  164. setHTMLUnsafe testcase namespaces/9, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
  165. ShadowRoot.setHTML testcase namespaces/9, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
  166. ShadowRoot.setHTMLUnsafe testcase namespaces/9, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
  167. parseHTML testcase namespaces/9, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
  168. parseHTMLUnsafe testcase namespaces/9, "<svg xml:space="default" xlink:href="about:blank" xmlns:foo="barspace">"
  169. setHTML testcase namespaces/10, "<svg>Hello</svg>"
  170. setHTMLUnsafe testcase namespaces/10, "<svg>Hello</svg>"
  171. ShadowRoot.setHTML testcase namespaces/10, "<svg>Hello</svg>"
  172. ShadowRoot.setHTMLUnsafe testcase namespaces/10, "<svg>Hello</svg>"
  173. parseHTML testcase namespaces/10, "<svg>Hello</svg>"
  174. parseHTMLUnsafe testcase namespaces/10, "<svg>Hello</svg>"
  175. setHTML testcase namespaces/11, "<svg>Hello</svg>"
  176. setHTMLUnsafe testcase namespaces/11, "<svg>Hello</svg>"
  177. ShadowRoot.setHTML testcase namespaces/11, "<svg>Hello</svg>"
  178. ShadowRoot.setHTMLUnsafe testcase namespaces/11, "<svg>Hello</svg>"
  179. parseHTML testcase namespaces/11, "<svg>Hello</svg>"
  180. parseHTMLUnsafe testcase namespaces/11, "<svg>Hello</svg>"
  181. setHTML testcase namespaces/12, "<math>Hello</math>"
  182. setHTMLUnsafe testcase namespaces/12, "<math>Hello</math>"
  183. ShadowRoot.setHTML testcase namespaces/12, "<math>Hello</math>"
  184. ShadowRoot.setHTMLUnsafe testcase namespaces/12, "<math>Hello</math>"
  185. parseHTML testcase namespaces/12, "<math>Hello</math>"
  186. parseHTMLUnsafe testcase namespaces/12, "<math>Hello</math>"
  187. setHTML testcase namespaces/13, "<math>Hello</math>"
  188. setHTMLUnsafe testcase namespaces/13, "<math>Hello</math>"
  189. ShadowRoot.setHTML testcase namespaces/13, "<math>Hello</math>"
  190. ShadowRoot.setHTMLUnsafe testcase namespaces/13, "<math>Hello</math>"
  191. parseHTML testcase namespaces/13, "<math>Hello</math>"
  192. parseHTMLUnsafe testcase namespaces/13, "<math>Hello</math>"
  193. setHTML testcase namespaces/14, "<math>Hello</math>"
  194. setHTMLUnsafe testcase namespaces/14, "<math>Hello</math>"
  195. ShadowRoot.setHTML testcase namespaces/14, "<math>Hello</math>"
  196. ShadowRoot.setHTMLUnsafe testcase namespaces/14, "<math>Hello</math>"
  197. parseHTML testcase namespaces/14, "<math>Hello</math>"
  198. parseHTMLUnsafe testcase namespaces/14, "<math>Hello</math>"
  199. setHTML testcase namespaces/15, "<p style="bla"></p>"
  200. setHTMLUnsafe testcase namespaces/15, "<p style="bla"></p>"
  201. ShadowRoot.setHTML testcase namespaces/15, "<p style="bla"></p>"
  202. ShadowRoot.setHTMLUnsafe testcase namespaces/15, "<p style="bla"></p>"
  203. parseHTML testcase namespaces/15, "<p style="bla"></p>"
  204. parseHTMLUnsafe testcase namespaces/15, "<p style="bla"></p>"
  205. setHTML testcase namespaces/16, "<p href="bla"></p>"
  206. setHTMLUnsafe testcase namespaces/16, "<p href="bla"></p>"
  207. ShadowRoot.setHTML testcase namespaces/16, "<p href="bla"></p>"
  208. ShadowRoot.setHTMLUnsafe testcase namespaces/16, "<p href="bla"></p>"
  209. parseHTML testcase namespaces/16, "<p href="bla"></p>"
  210. parseHTMLUnsafe testcase namespaces/16, "<p href="bla"></p>"
  211. setHTML testcase xlink-href-html-content/0, "<p xlink:href="bla"></p>"
  212. setHTMLUnsafe testcase xlink-href-html-content/0, "<p xlink:href="bla"></p>"
  213. ShadowRoot.setHTML testcase xlink-href-html-content/0, "<p xlink:href="bla"></p>"
  214. ShadowRoot.setHTMLUnsafe testcase xlink-href-html-content/0, "<p xlink:href="bla"></p>"
  215. parseHTML testcase xlink-href-html-content/0, "<p xlink:href="bla"></p>"
  216. parseHTMLUnsafe testcase xlink-href-html-content/0, "<p xlink:href="bla"></p>"
  217. setHTML testcase xlink-href-html-content/1, "<p xlink:href="bla"></p>"
  218. setHTMLUnsafe testcase xlink-href-html-content/1, "<p xlink:href="bla"></p>"
  219. ShadowRoot.setHTML testcase xlink-href-html-content/1, "<p xlink:href="bla"></p>"
  220. ShadowRoot.setHTMLUnsafe testcase xlink-href-html-content/1, "<p xlink:href="bla"></p>"
  221. parseHTML testcase xlink-href-html-content/1, "<p xlink:href="bla"></p>"
  222. parseHTMLUnsafe testcase xlink-href-html-content/1, "<p xlink:href="bla"></p>"
  223. setHTML testcase xlink-href-html-content/2, "<p href='bla'></p>"
  224. setHTMLUnsafe testcase xlink-href-html-content/2, "<p href='bla'></p>"
  225. ShadowRoot.setHTML testcase xlink-href-html-content/2, "<p href='bla'></p>"
  226. ShadowRoot.setHTMLUnsafe testcase xlink-href-html-content/2, "<p href='bla'></p>"
  227. parseHTML testcase xlink-href-html-content/2, "<p href='bla'></p>"
  228. parseHTMLUnsafe testcase xlink-href-html-content/2, "<p href='bla'></p>"
  229. setHTML testcase xlink-href-html-content/3, "<p xlink:href='bla'></p>"
  230. setHTMLUnsafe testcase xlink-href-html-content/3, "<p xlink:href='bla'></p>"
  231. ShadowRoot.setHTML testcase xlink-href-html-content/3, "<p xlink:href='bla'></p>"
  232. ShadowRoot.setHTMLUnsafe testcase xlink-href-html-content/3, "<p xlink:href='bla'></p>"
  233. parseHTML testcase xlink-href-html-content/3, "<p xlink:href='bla'></p>"
  234. parseHTMLUnsafe testcase xlink-href-html-content/3, "<p xlink:href='bla'></p>"
  235. setHTML testcase xlink-href-foreign-content/0, "<svg xlink:href="bla"></svg>"
  236. setHTMLUnsafe testcase xlink-href-foreign-content/0, "<svg xlink:href="bla"></svg>"
  237. ShadowRoot.setHTML testcase xlink-href-foreign-content/0, "<svg xlink:href="bla"></svg>"
  238. ShadowRoot.setHTMLUnsafe testcase xlink-href-foreign-content/0, "<svg xlink:href="bla"></svg>"
  239. parseHTML testcase xlink-href-foreign-content/0, "<svg xlink:href="bla"></svg>"
  240. parseHTMLUnsafe testcase xlink-href-foreign-content/0, "<svg xlink:href="bla"></svg>"
  241. setHTML testcase xlink-href-foreign-content/1, "<svg xlink:href="bla"></svg>"
  242. setHTMLUnsafe testcase xlink-href-foreign-content/1, "<svg xlink:href="bla"></svg>"
  243. ShadowRoot.setHTML testcase xlink-href-foreign-content/1, "<svg xlink:href="bla"></svg>"
  244. ShadowRoot.setHTMLUnsafe testcase xlink-href-foreign-content/1, "<svg xlink:href="bla"></svg>"
  245. parseHTML testcase xlink-href-foreign-content/1, "<svg xlink:href="bla"></svg>"
  246. parseHTMLUnsafe testcase xlink-href-foreign-content/1, "<svg xlink:href="bla"></svg>"
  247. setHTML testcase xlink-href-foreign-content/2, "<svg href='bla'></svg>"
  248. setHTMLUnsafe testcase xlink-href-foreign-content/2, "<svg href='bla'></svg>"
  249. ShadowRoot.setHTML testcase xlink-href-foreign-content/2, "<svg href='bla'></svg>"
  250. ShadowRoot.setHTMLUnsafe testcase xlink-href-foreign-content/2, "<svg href='bla'></svg>"
  251. parseHTML testcase xlink-href-foreign-content/2, "<svg href='bla'></svg>"
  252. parseHTMLUnsafe testcase xlink-href-foreign-content/2, "<svg href='bla'></svg>"
  253. setHTML testcase xlink-href-foreign-content/3, "<svg xlink:href='bla'></svg>"
  254. setHTMLUnsafe testcase xlink-href-foreign-content/3, "<svg xlink:href='bla'></svg>"
  255. ShadowRoot.setHTML testcase xlink-href-foreign-content/3, "<svg xlink:href='bla'></svg>"
  256. ShadowRoot.setHTMLUnsafe testcase xlink-href-foreign-content/3, "<svg xlink:href='bla'></svg>"
  257. parseHTML testcase xlink-href-foreign-content/3, "<svg xlink:href='bla'></svg>"
  258. parseHTMLUnsafe testcase xlink-href-foreign-content/3, "<svg xlink:href='bla'></svg>"
  259. setHTML testcase xlink-href-foreign-content/4, "<svg><a xlink:href="bla"></a></svg>": Namespaced attribute xlink:href inside SVG tree
  260. setHTMLUnsafe testcase xlink-href-foreign-content/4, "<svg><a xlink:href="bla"></a></svg>": Namespaced attribute xlink:href inside SVG tree
  261. ShadowRoot.setHTML testcase xlink-href-foreign-content/4, "<svg><a xlink:href="bla"></a></svg>": Namespaced attribute xlink:href inside SVG tree
  262. ShadowRoot.setHTMLUnsafe testcase xlink-href-foreign-content/4, "<svg><a xlink:href="bla"></a></svg>": Namespaced attribute xlink:href inside SVG tree
  263. parseHTML testcase xlink-href-foreign-content/4, "<svg><a xlink:href="bla"></a></svg>": Namespaced attribute xlink:href inside SVG tree
  264. parseHTMLUnsafe testcase xlink-href-foreign-content/4, "<svg><a xlink:href="bla"></a></svg>": Namespaced attribute xlink:href inside SVG tree
  265. setHTML testcase defaults-with-attributes-per-element/0, "<div start=1 value=5 lang=en><ol start=1 value=5 lang=en><li start=1 value=5 lang=en>xx"
  266. setHTMLUnsafe testcase defaults-with-attributes-per-element/0, "<div start=1 value=5 lang=en><ol start=1 value=5 lang=en><li start=1 value=5 lang=en>xx"
  267. ShadowRoot.setHTML testcase defaults-with-attributes-per-element/0, "<div start=1 value=5 lang=en><ol start=1 value=5 lang=en><li start=1 value=5 lang=en>xx"
  268. ShadowRoot.setHTMLUnsafe testcase defaults-with-attributes-per-element/0, "<div start=1 value=5 lang=en><ol start=1 value=5 lang=en><li start=1 value=5 lang=en>xx"
  269. parseHTML testcase defaults-with-attributes-per-element/0, "<div start=1 value=5 lang=en><ol start=1 value=5 lang=en><li start=1 value=5 lang=en>xx"
  270. parseHTMLUnsafe testcase defaults-with-attributes-per-element/0, "<div start=1 value=5 lang=en><ol start=1 value=5 lang=en><li start=1 value=5 lang=en>xx"
  271. setHTML testcase mixed-case-element-names/0, "<svg><feBlend></feBlend></svg>"
  272. setHTMLUnsafe testcase mixed-case-element-names/0, "<svg><feBlend></feBlend></svg>"
  273. ShadowRoot.setHTML testcase mixed-case-element-names/0, "<svg><feBlend></feBlend></svg>"
  274. ShadowRoot.setHTMLUnsafe testcase mixed-case-element-names/0, "<svg><feBlend></feBlend></svg>"
  275. parseHTML testcase mixed-case-element-names/0, "<svg><feBlend></feBlend></svg>"
  276. parseHTMLUnsafe testcase mixed-case-element-names/0, "<svg><feBlend></feBlend></svg>"
  277. setHTML testcase mixed-case-element-names/1, "<svg><feColorMatrix></feColorMatrix></svg>"
  278. setHTMLUnsafe testcase mixed-case-element-names/1, "<svg><feColorMatrix></feColorMatrix></svg>"
  279. ShadowRoot.setHTML testcase mixed-case-element-names/1, "<svg><feColorMatrix></feColorMatrix></svg>"
  280. ShadowRoot.setHTMLUnsafe testcase mixed-case-element-names/1, "<svg><feColorMatrix></feColorMatrix></svg>"
  281. parseHTML testcase mixed-case-element-names/1, "<svg><feColorMatrix></feColorMatrix></svg>"
  282. parseHTMLUnsafe testcase mixed-case-element-names/1, "<svg><feColorMatrix></feColorMatrix></svg>"
  283. setHTML testcase mixed-case-element-names/2, "<svg><textPath></textPath></svg>"
  284. setHTMLUnsafe testcase mixed-case-element-names/2, "<svg><textPath></textPath></svg>"
  285. ShadowRoot.setHTML testcase mixed-case-element-names/2, "<svg><textPath></textPath></svg>"
  286. ShadowRoot.setHTMLUnsafe testcase mixed-case-element-names/2, "<svg><textPath></textPath></svg>"
  287. parseHTML testcase mixed-case-element-names/2, "<svg><textPath></textPath></svg>"
  288. parseHTMLUnsafe testcase mixed-case-element-names/2, "<svg><textPath></textPath></svg>"
  289. setHTML testcase element-name-case-mismatch/0, "<div>text</div>"
  290. setHTMLUnsafe testcase element-name-case-mismatch/0, "<div>text</div>"
  291. ShadowRoot.setHTML testcase element-name-case-mismatch/0, "<div>text</div>"
  292. ShadowRoot.setHTMLUnsafe testcase element-name-case-mismatch/0, "<div>text</div>"
  293. parseHTML testcase element-name-case-mismatch/0, "<div>text</div>"
  294. parseHTMLUnsafe testcase element-name-case-mismatch/0, "<div>text</div>"
  295. setHTML testcase element-name-case-mismatch/1, "<svg><feBlend></feBlend></svg>"
  296. setHTMLUnsafe testcase element-name-case-mismatch/1, "<svg><feBlend></feBlend></svg>"
  297. ShadowRoot.setHTML testcase element-name-case-mismatch/1, "<svg><feBlend></feBlend></svg>"
  298. ShadowRoot.setHTMLUnsafe testcase element-name-case-mismatch/1, "<svg><feBlend></feBlend></svg>"
  299. parseHTML testcase element-name-case-mismatch/1, "<svg><feBlend></feBlend></svg>"
  300. parseHTMLUnsafe testcase element-name-case-mismatch/1, "<svg><feBlend></feBlend></svg>"
  301. setHTML testcase element-name-case-mismatch/2, "<svg><feBlend></feBlend></svg>"
  302. setHTMLUnsafe testcase element-name-case-mismatch/2, "<svg><feBlend></feBlend></svg>"
  303. ShadowRoot.setHTML testcase element-name-case-mismatch/2, "<svg><feBlend></feBlend></svg>"
  304. ShadowRoot.setHTMLUnsafe testcase element-name-case-mismatch/2, "<svg><feBlend></feBlend></svg>"
  305. parseHTML testcase element-name-case-mismatch/2, "<svg><feBlend></feBlend></svg>"
  306. parseHTMLUnsafe testcase element-name-case-mismatch/2, "<svg><feBlend></feBlend></svg>"
  307. setHTML testcase adjusted-svg-attribute-names/0, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
  308. setHTMLUnsafe testcase adjusted-svg-attribute-names/0, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
  309. ShadowRoot.setHTML testcase adjusted-svg-attribute-names/0, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
  310. ShadowRoot.setHTMLUnsafe testcase adjusted-svg-attribute-names/0, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
  311. parseHTML testcase adjusted-svg-attribute-names/0, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
  312. parseHTMLUnsafe testcase adjusted-svg-attribute-names/0, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
  313. setHTML testcase adjusted-svg-attribute-names/1, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
  314. setHTMLUnsafe testcase adjusted-svg-attribute-names/1, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
  315. ShadowRoot.setHTML testcase adjusted-svg-attribute-names/1, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
  316. ShadowRoot.setHTMLUnsafe testcase adjusted-svg-attribute-names/1, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
  317. parseHTML testcase adjusted-svg-attribute-names/1, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
  318. parseHTMLUnsafe testcase adjusted-svg-attribute-names/1, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
  319. setHTML testcase adjusted-svg-attribute-names/2, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
  320. setHTMLUnsafe testcase adjusted-svg-attribute-names/2, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
  321. ShadowRoot.setHTML testcase adjusted-svg-attribute-names/2, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
  322. ShadowRoot.setHTMLUnsafe testcase adjusted-svg-attribute-names/2, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
  323. parseHTML testcase adjusted-svg-attribute-names/2, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
  324. parseHTMLUnsafe testcase adjusted-svg-attribute-names/2, "<svg><marker viewbox="0 0 1 1"></marker></svg>"
  325. setHTML testcase adjusted-svg-attribute-names/3, "<svg><marker viewbox="0 0 1 1" refx="1" markerwidth="2"></marker></svg>": Default config keeps case-adjusted SVG attribute names
  326. setHTMLUnsafe testcase adjusted-svg-attribute-names/3, "<svg><marker viewbox="0 0 1 1" refx="1" markerwidth="2"></marker></svg>": Default config keeps case-adjusted SVG attribute names
  327. ShadowRoot.setHTML testcase adjusted-svg-attribute-names/3, "<svg><marker viewbox="0 0 1 1" refx="1" markerwidth="2"></marker></svg>": Default config keeps case-adjusted SVG attribute names
  328. ShadowRoot.setHTMLUnsafe testcase adjusted-svg-attribute-names/3, "<svg><marker viewbox="0 0 1 1" refx="1" markerwidth="2"></marker></svg>": Default config keeps case-adjusted SVG attribute names
  329. parseHTML testcase adjusted-svg-attribute-names/3, "<svg><marker viewbox="0 0 1 1" refx="1" markerwidth="2"></marker></svg>": Default config keeps case-adjusted SVG attribute names
  330. parseHTMLUnsafe testcase adjusted-svg-attribute-names/3, "<svg><marker viewbox="0 0 1 1" refx="1" markerwidth="2"></marker></svg>": Default config keeps case-adjusted SVG attribute names
  331. setHTML testcase unknown/0, "<hello><world>": Unknown element names get blocked without being allowed.
  332. setHTMLUnsafe testcase unknown/0, "<hello><world>": Unknown element names get blocked without being allowed.
  333. ShadowRoot.setHTML testcase unknown/0, "<hello><world>": Unknown element names get blocked without being allowed.
  334. ShadowRoot.setHTMLUnsafe testcase unknown/0, "<hello><world>": Unknown element names get blocked without being allowed.
  335. parseHTML testcase unknown/0, "<hello><world>": Unknown element names get blocked without being allowed.
  336. parseHTMLUnsafe testcase unknown/0, "<hello><world>": Unknown element names get blocked without being allowed.
  337. setHTML testcase unknown/1, "<hello><world>": Unknown element names pass when allowed.
  338. setHTMLUnsafe testcase unknown/1, "<hello><world>": Unknown element names pass when allowed.
  339. ShadowRoot.setHTML testcase unknown/1, "<hello><world>": Unknown element names pass when allowed.
  340. ShadowRoot.setHTMLUnsafe testcase unknown/1, "<hello><world>": Unknown element names pass when allowed.
  341. parseHTML testcase unknown/1, "<hello><world>": Unknown element names pass when allowed.
  342. parseHTMLUnsafe testcase unknown/1, "<hello><world>": Unknown element names pass when allowed.
  343. setHTML testcase unknown/2, "<b hello='1' world>": Unknown attribute names get blocked without being allowed.
  344. setHTMLUnsafe testcase unknown/2, "<b hello='1' world>": Unknown attribute names get blocked without being allowed.
  345. ShadowRoot.setHTML testcase unknown/2, "<b hello='1' world>": Unknown attribute names get blocked without being allowed.
  346. ShadowRoot.setHTMLUnsafe testcase unknown/2, "<b hello='1' world>": Unknown attribute names get blocked without being allowed.
  347. parseHTML testcase unknown/2, "<b hello='1' world>": Unknown attribute names get blocked without being allowed.
  348. parseHTMLUnsafe testcase unknown/2, "<b hello='1' world>": Unknown attribute names get blocked without being allowed.
  349. setHTML testcase unknown/3, "<b hello='1' world>": Unknown attribute names pass when allowed.
  350. setHTMLUnsafe testcase unknown/3, "<b hello='1' world>": Unknown attribute names pass when allowed.
  351. ShadowRoot.setHTML testcase unknown/3, "<b hello='1' world>": Unknown attribute names pass when allowed.
  352. ShadowRoot.setHTMLUnsafe testcase unknown/3, "<b hello='1' world>": Unknown attribute names pass when allowed.
  353. parseHTML testcase unknown/3, "<b hello='1' world>": Unknown attribute names pass when allowed.
  354. parseHTMLUnsafe testcase unknown/3, "<b hello='1' world>": Unknown attribute names pass when allowed.
sanitizer-boolean-defaults.html3 / 3 passingChrome 2 / 30 failedClean
Standing
Clean runner status OK
Chrome
With failures 2 / 3 WPT subtests passing runner status OK
3 passing subtests
  1. comments
  2. data attributes
  3. javascript URLs
sanitizer-config.html72 / 72 passingChrome 71 / 720 failedClean
Standing
Clean runner status OK
Chrome
With failures 71 / 72 WPT subtests passing runner status OK
72 passing subtests
  1. Sanitizer constructor without config.
  2. Sanitizer constructor with empty config.
  3. Sanitizer constructor with null as config.
  4. Sanitizer constructor with undefined as config.
  5. Sanitizer constructor with config ignore unknown values.
  6. SanitizerConfig comments field.
  7. SanitizerConfig dataAttributes field.
  8. SanitizerConfig javascriptURLs field.
  9. SanitizerConfig, normalization: elements: ["div"]
  10. SanitizerConfig, normalization: elements: [{"name":"b"}]
  11. SanitizerConfig, normalization: elements: [{"name":"b","namespace":null}]
  12. SanitizerConfig, normalization: elements: [{"name":"b","namespace":""}]
  13. SanitizerConfig, normalization: elements: [{"name":"p","namespace":"http://www.w3.org/1999/xhtml"}]
  14. SanitizerConfig, normalization: elements: [{"name":"bla","namespace":"http://fantasy.org/namespace"}]
  15. SanitizerConfig, normalization: removeElements: ["div"]
  16. SanitizerConfig, normalization: removeElements: [{"name":"b"}]
  17. SanitizerConfig, normalization: removeElements: [{"name":"b","namespace":null}]
  18. SanitizerConfig, normalization: removeElements: [{"name":"b","namespace":""}]
  19. SanitizerConfig, normalization: removeElements: [{"name":"p","namespace":"http://www.w3.org/1999/xhtml"}]
  20. SanitizerConfig, normalization: removeElements: [{"name":"bla","namespace":"http://fantasy.org/namespace"}]
  21. SanitizerConfig, normalization: replaceWithChildrenElements: ["div"]
  22. SanitizerConfig, normalization: replaceWithChildrenElements: [{"name":"b"}]
  23. SanitizerConfig, normalization: replaceWithChildrenElements: [{"name":"b","namespace":null}]
  24. SanitizerConfig, normalization: replaceWithChildrenElements: [{"name":"b","namespace":""}]
  25. SanitizerConfig, normalization: replaceWithChildrenElements: [{"name":"p","namespace":"http://www.w3.org/1999/xhtml"}]
  26. SanitizerConfig, normalization: replaceWithChildrenElements: [{"name":"bla","namespace":"http://fantasy.org/namespace"}]
  27. SanitizerConfig, normalization: processingInstructions: ["target-1"]
  28. SanitizerConfig, normalization: processingInstructions: [{"target":"target-1"}]
  29. SanitizerConfig, normalization: removeProcessingInstructions: ["target-1"]
  30. SanitizerConfig, normalization: removeProcessingInstructions: [{"target":"target-1"}]
  31. SanitizerConfig, normalization: attributes: ["href"]
  32. SanitizerConfig, normalization: attributes: [{"name":"href","namespace":null}]
  33. SanitizerConfig, normalization: attributes: [{"name":"href","namespace":""}]
  34. SanitizerConfig, normalization: attributes: [{"name":"href","namespace":"https://www.w3.org/1999/xlink"}]
  35. SanitizerConfig, normalization: removeAttributes: ["href"]
  36. SanitizerConfig, normalization: removeAttributes: [{"name":"href","namespace":null}]
  37. SanitizerConfig, normalization: removeAttributes: [{"name":"href","namespace":""}]
  38. SanitizerConfig, normalization: removeAttributes: [{"name":"href","namespace":"https://www.w3.org/1999/xlink"}]
  39. Test elements addition.
  40. Test elements removal.
  41. Test elements replacewithchildren.
  42. Test processingInstructions addition.
  43. Test processingInstructions removal.
  44. Test attribute addition.
  45. Test attribute removal.
  46. Test attribute-per-element sets (i.e. overwrites).
  47. Test removeAttribute-per-element sets (i.e. overwrites).
  48. Both elements and removeElements should not be allowed.
  49. Both attributes and removeAttributes should not be allowed.
  50. Both processingInstructions and removeProcessingInstructions should not be allowed.
  51. config[elements] should not allow duplicates
  52. config[removeElements] should not allow duplicates
  53. config[replaceWithChildrenElements] should not allow duplicates
  54. config[attributes] should not allow duplicates
  55. config[removeAttributes] should not allow duplicates
  56. config[processingInstructions] should not allow duplicate targets
  57. config[removeProcessingInstructions] should not allow duplicate targets
  58. config[replaceWithChildrenElements] should not allow non-replaceable elements
  59. config[elements] and config[replaceWithChildrenElements] should not intersect
  60. config[removeElements] and config[replaceWithChildrenElements] should not intersect
  61. Duplicates in element[attributes] with config[attributes] should not be allowed.
  62. Duplicates in element[removeAttributes] with config[attributes] should not be allowed.
  63. config[attributes] and element[attributes] should not intersect.
  64. element[removeAttributes] should be a subset of config[attributes]
  65. element[attributes] with a data attribute must not co-exist with config[dataAttributes] set to true.
  66. config[attributes] with a data attribute must not co-exist with config[dataAttributes] set to true.
  67. element[attributes] and element[removeAttributes] should not both exist with config[removeAttributes].
  68. Duplicates in element[attributes] with config[removeAttributes] should not be allowed.
  69. Duplicates in element[removeAttributes] with config[removeAttributes] should not be allowed.
  70. config[removeAttributes] and element[attributes] should not intersect.
  71. config[removeAttributes] and element[removeAttributes] should not intersect.
  72. Can not use config[dataAttributes] and config[removeAttributes] together.
sanitizer-custom-elements-constructor.html12 / 14 passingChrome 12 / 142 failedWith failures
Standing
With failures runner status OK
Chrome
With failures 12 / 14 WPT subtests passing runner status OK
  1. FAILsetHTML constructs an allowed CE from the scoped registry
    assert_true: Constructor should be called expected true got false
  2. FAILsetHTMLUnsafe constructs an allowed CE from the scoped registry
    assert_true: Constructor should be called expected true got false
12 passing subtests
  1. setHTML blocks CE constructor when element is dropped by explicit sanitizer config (removeElements)
  2. setHTML blocks CE constructor in scoped registry when element is dropped by explicit sanitizer config (removeElements)
  3. setHTML blocks CE constructor when element is dropped by explicit sanitizer config (allowElements)
  4. setHTML blocks CE constructor in scoped registry when element is dropped by explicit sanitizer config (allowElements)
  5. setHTML blocks CE constructor when element is dropped by explicit sanitizer config (replaceWithChildrenElements)
  6. setHTML blocks CE constructor in scoped registry when element is dropped by explicit sanitizer config (replaceWithChildrenElements)
  7. setHTMLUnsafe blocks CE constructor when element is dropped by explicit sanitizer config (removeElements)
  8. setHTMLUnsafe blocks CE constructor in scoped registry when element is dropped by explicit sanitizer config (removeElements)
  9. setHTMLUnsafe blocks CE constructor when element is dropped by explicit sanitizer config (allowElements)
  10. setHTMLUnsafe blocks CE constructor in scoped registry when element is dropped by explicit sanitizer config (allowElements)
  11. setHTMLUnsafe blocks CE constructor when element is dropped by explicit sanitizer config (replaceWithChildrenElements)
  12. setHTMLUnsafe blocks CE constructor in scoped registry when element is dropped by explicit sanitizer config (replaceWithChildrenElements)
sanitizer-custom-elements-is.html20 / 20 passingChrome 16 / 200 failedClean
Standing
Clean runner status OK
Chrome
With failures 16 / 20 WPT subtests passing runner status OK
20 passing subtests
  1. The is= attribute is removed by the default sanitizer config.
  2. The is= attribute is removed by the global removeAttributes
  3. The is= attribute is removed by the local removeAttributes
  4. The is= attribute is removed by the local missing attributes
  5. The is= attribute is kept when allowed with an empty config.
  6. The is= attribute is kept when allowed by global attributes.
  7. The is= attribute is kept when allowed by global removeAttributes.
  8. The is= attribute is kept when allowed by local attributes.
  9. parseHTML removes html is= attribute with the default sanitizer config.
  10. parseHTML removes html is= attribute with global removeAttributes
  11. parseHTML removes html is= attribute with local removeAttributes
  12. parseHTML removes html is= attribute with local allow attributes
  13. parseHTML removes body is= attribute with the default sanitizer config.
  14. parseHTML removes body is= attribute with global removeAttributes
  15. parseHTML removes body is= attribute with local removeAttributes
  16. parseHTML removes body is= attribute with local allow attributes
  17. parseHTML removes div is= attribute with the default sanitizer config.
  18. parseHTML removes div is= attribute with global removeAttributes
  19. parseHTML removes div is= attribute with local removeAttributes
  20. parseHTML removes div is= attribute with local allow attributes
sanitizer-default-config.html1 / 1 passingChrome 0 / 10 failedClean
Standing
Clean runner status OK
Chrome
NONE-PASSED 0 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Get the expected default config
sanitizer-duplicate-html-body.html12 / 12 passingChrome 12 / 120 failedClean
Standing
Clean runner status OK
Chrome
Clean 12 / 12 WPT subtests passing runner status OK
12 passing subtests
  1. Document.parseHTML testcase 0, "<body><body onload="alert(1)" onclick="alert(2)" class="safe-body" data-test="val"></body>"
  2. Document.parseHTML testcase 1, "<body id="initial" class="initial"><body id="duplicate" class="duplicate" dir="rtl" onclick="alert(1)"></body>"
  3. Document.parseHTML testcase 2, "<html lang="en" id="root"><html id="duplicate" dir="rtl" onclick="alert(1)"><body></body>"
  4. Document.parseHTML testcase 3, "<body><body class="allowed" title="forbidden"></body>"
  5. Document.parseHTML testcase 4, "<html lang="en" dir="ltr" class="html-cls"><body id="main" class="body-cls" dir="ltr"></body>"
  6. Document.parseHTML testcase 5, "<html><body><body class="body-cls" data-foo="bar"></body>"
  7. Document.parseHTMLUnsafe testcase 0, "<body><body data-bad="strip-me" data-good="keep-me"></body>"
  8. Document.parseHTMLUnsafe testcase 1, "<html data-bad-html="1" data-good-html="2"><body data-bad-body="3" data-good-body="4"></body>"
  9. Document.parseHTMLUnsafe testcase 2, "<html><body><html data-dup-bad-html="1" data-dup-good-html="2"><body data-dup-bad-body="3" data-dup-good-body="4"></body>"
  10. Document.parseHTMLUnsafe testcase 3, "<html title="html-title"><body title="body-title"><div title="div-title"></div></body>"
  11. Fragment setHTML testcase 0, "<body id="test-body" onclick="alert(1)" class="safe-body"></body>"
  12. Fragment setHTML testcase 1, "<body id="first" class="first"><body id="second" dir="rtl" onclick="alert(1)"></body>"
sanitizer-get.html9 / 9 passingChrome 9 / 90 failedClean
Standing
Clean runner status OK
Chrome
Clean 9 / 9 WPT subtests passing runner status OK
9 passing subtests
  1. Sorting of attributes
  2. Sorting of removeAttributes
  3. Sorting of elements
  4. Sorting of removeElements
  5. Sorting of replaceWithChildrenElements
  6. Sorting of element's attributes
  7. Sorting of element's removeAttributes
  8. Sorting of processingInstructions
  9. Sorting of removeProcessingInstructions
sanitizer-in-adoption-agency.html55 / 55 passingChrome 52 / 550 failedClean
Standing
Clean runner status OK
Chrome
With failures 52 / 55 WPT subtests passing runner status OK
55 passing subtests
  1. Sanitizer Adoption Agency Algorithm testcases
  2. Testcase #0, "<b><i onclick="alert(1)"><div></b>x", config: "undefined".
  3. Testcase #1, "<b><div>Text</b></div>", config: "{ "replaceWithChildrenElements": ["b"] }".
  4. Testcase #2, "<b><i><div>Text</b></div>", config: "{ "replaceWithChildrenElements": ["i"] }".
  5. Testcase #3, "<b><div>Text</b>", config: "{ "removeElements": ["div"] }".
  6. Testcase #4, "<b><div><b>x", config: "{ "removeElements": ["div"] }".
  7. Testcase #5, "<b>1<p>foo</b>bar", config: "{ "replaceWithChildrenElements": ["b"] }".
  8. Testcase #6, "<b><div>Text</b>", config: "{ "replaceWithChildrenElements": ["div"] }".
  9. Testcase #7, "<a href="https://web-platform.test/1"><div><a href="https://web-platform.test/2">Click</a></div></a>", config: "{ "removeElements": ["div"] }".
  10. Testcase #8, "<b><i><p>foo</b>bar</i>", config: "{ "removeElements": ["p"] }".
  11. Testcase #9, "<b><i><p>foo</b>bar</i>", config: "{ "removeElements": ["i"] }".
  12. Testcase #10, "<b><i><div>Text</b></i>", config: "{ "removeElements": ["div"], "replaceWithChildrenElements": ["i"] }".
  13. Testcase #11, "<b><i onclick="alert(1)"><u onclick="alert(2)"><div></b>x", config: "undefined".
  14. Testcase #12, "<b><em><div>Text</b>after", config: "{ "replaceWithChildrenElements": ["div"] }".
  15. Testcase #13, "<b><em><s><div>Text</b>after</div>more", config: "{ "replaceWithChildrenElements": ["div", "s"] }".
  16. Testcase #14, "<b><em><u><div>Text</b>after", config: "{ "replaceWithChildrenElements": ["div"] }".
  17. Testcase #15, "<b><u><em><div>Text</b>after", config: "{ "replaceWithChildrenElements": ["div", "em"] }".
  18. Testcase #16, "<b><em><div>Text</b>after", config: "{ "replaceWithChildrenElements": ["div"], "removeElements": ["em"] }".
  19. Testcase #17, "<b><em><div><p>Text</b>after", config: "{ "replaceWithChildrenElements": ["div"] }".
  20. Testcase #18, "<b><div><section>Text</b>after", config: "{ "replaceWithChildrenElements": ["div", "section"] }".
  21. Testcase #19, "<b><div><span>Text</b>after", config: "{ "replaceWithChildrenElements": ["span"] }".
  22. Testcase #20, "<b><em><div>Text</b>after</div>more", config: "{ "replaceWithChildrenElements": ["div"] }".
  23. Testcase #21, "<b><div><div><div><div><div><div><div><div><section>Text</b>after", config: "{ "replaceWithChildrenElements": ["section"] }".
  24. Testcase #22, "<b><div><div><div><div><div><div><div><div><section>Text</b>after", config: "{ "replaceWithChildrenElements": ["section", "b"] }".
  25. Testcase #23, "<b><div><div><div><div><div><div><div><div><section><span>Text</b>after", config: "{ "replaceWithChildrenElements": ["section", "span"] }".
  26. Testcase #24, "<b><div><div><div><div><div><div><div><div><section><i><span>Text</b>after", config: "{ "replaceWithChildrenElements": ["section", "span"] }".
  27. Testcase #25, "<table><b><div>x</b>y", config: "undefined".
  28. Testcase #26, "<table><b><div>x</b>y", config: "{ "removeElements": ["table"] }".
  29. Testcase #27, "<table><b><div>x</b>y", config: "{ "replaceWithChildrenElements": ["b"] }".
  30. Testcase #28, "<table><tbody><b><div>x</b>y", config: "{ "replaceWithChildrenElements": ["tbody"] }".
  31. Testcase #29, "<table><b><div>x</b>y", config: "{ "replaceWithChildrenElements": ["div"] }".
  32. Testcase #30, "<b><div>Text</b>after", config: "{ "removeElements": ["b"] }".
  33. Testcase #31, "<p><b>x</p>y", config: "{ "replaceWithChildrenElements": ["b"] }".
  34. Testcase #32, "<p><b>x</p>y", config: "{ "removeElements": ["b"] }".
  35. Testcase #33, "<p><i onclick="1">x</p>y", config: "undefined".
  36. Testcase #34, "<p><b a="1"><b a="2"><b a="3"><b a="4"></p>x", config: "{ "removeAttributes": ["a"] }".
  37. Testcase #35, "<b><i><u><p>foo</b>bar", config: "{ "removeElements": ["i"] }".
  38. Testcase #36, "<b><div><p>Text</b>after", config: "{ "removeElements": ["p"] }".
  39. Testcase #37, "<b><div>Text</b>after", config: "{ "replaceWithChildrenElements": ["b", "div"] }".
  40. Testcase #38, "<a href="1">x<div>y<a href="2">z", config: "{ "replaceWithChildrenElements": ["a"] }".
  41. Testcase #39, "<a href="1">x<div>y<a href="2">z", config: "{ "removeElements": ["a"] }".
  42. Testcase #40, "<b><span><div>x</b>y", config: "{ "removeElements": ["span"] }".
  43. Testcase #41, "<b><div><table></b>x", config: "{ "replaceWithChildrenElements": ["b"] }".
  44. Testcase #42, "<b><i><div>Text</b>after", config: "{ "removeElements": ["div"] }".
  45. Testcase #43, "<b><i><div>Text</b>after", config: "{ "replaceWithChildrenElements": ["i", "div"] }".
  46. Testcase #44, "<div><b><p>x</b>y", config: "{ "replaceWithChildrenElements": ["div"] }".
  47. Testcase #45, "<div><b><p>x</b>y", config: "{ "removeElements": ["div"] }".
  48. Testcase #46, "<b><u><em><div>Text</b>after</div>more", config: "{ "replaceWithChildrenElements": ["div", "em"] }".
  49. Testcase #47, "<b><u><em><div>Text</b>after</div>more", config: "{ "replaceWithChildrenElements": ["div", "em"], "removeElements": ["u"] }".
  50. Testcase #48, "<table><b><div>x</b><input type="hidden">", config: "{ "replaceWithChildrenElements": ["div"] }".
  51. Testcase #49, "<article><b><i><section><div><div><div><div><div><div><div><div>x</b>y</article>z", config: "undefined".
  52. Testcase #50, "<article><b><i><section><div><div><div><div><div><div><div><div>x</b>y</article>z", config: "{ "replaceWithChildrenElements": ["section"] }".
  53. Testcase #51, "<b><div><div><div><div><div><div><div><div>x</b>y", config: "undefined".
  54. Testcase #52, "<b><div><div><div><div><div><div><div><div>x</b>y", config: "{ "replaceWithChildrenElements": ["b"] }".
  55. Testcase #53, "<b><u>1<p>foo</b><i>bar</i>baz", config: "{ "replaceWithChildrenElements": ["u"] }".
sanitizer-in-noahs-ark.html22 / 22 passingChrome 22 / 220 failedClean
Standing
Clean runner status OK
Chrome
Clean 22 / 22 WPT subtests passing runner status OK
22 passing subtests
  1. Testcase #0, "<p><b title=1>1<b title=2>2<b title=3>3<b title=4>4</p>x", config: "{ "removeAttributes": ["title"] }", with setHTML()
  2. Testcase #0, "<p><b title=1>1<b title=2>2<b title=3>3<b title=4>4</p>x", config: "{ "removeAttributes": ["title"] }", with setHTMLUnsafe()
  3. Testcase #0, "<p><b title=1>1<b title=2>2<b title=3>3<b title=4>4</p>x", config: "{ "removeAttributes": ["title"] }", with Document.parseHTML()
  4. Testcase #1, "<p><b title=1>1<b title=1>2<b title=1>3<b title=1>4</p>x", config: "{ "removeAttributes": ["title"] }", with setHTML()
  5. Testcase #1, "<p><b title=1>1<b title=1>2<b title=1>3<b title=1>4</p>x", config: "{ "removeAttributes": ["title"] }", with setHTMLUnsafe()
  6. Testcase #1, "<p><b title=1>1<b title=1>2<b title=1>3<b title=1>4</p>x", config: "{ "removeAttributes": ["title"] }", with Document.parseHTML()
  7. Testcase #2, "<p><b>1<b>2<b>3<b title=1>4</p>x", config: "{ "removeAttributes": ["title"] }", with setHTML()
  8. Testcase #2, "<p><b>1<b>2<b>3<b title=1>4</p>x", config: "{ "removeAttributes": ["title"] }", with setHTMLUnsafe()
  9. Testcase #2, "<p><b>1<b>2<b>3<b title=1>4</p>x", config: "{ "removeAttributes": ["title"] }", with Document.parseHTML()
  10. Testcase #3, "<p><b title=1>1<b>2<b>3<b>4</p>x", config: "{ "removeAttributes": ["title"] }", with setHTML()
  11. Testcase #3, "<p><b title=1>1<b>2<b>3<b>4</p>x", config: "{ "removeAttributes": ["title"] }", with setHTMLUnsafe()
  12. Testcase #3, "<p><b title=1>1<b>2<b>3<b>4</p>x", config: "{ "removeAttributes": ["title"] }", with Document.parseHTML()
  13. Testcase #4, "<p><b class=c title=1>1<b class=c title=2>2<b class=c title=3>3<b class=c title=4>4</p>x", config: "{ "removeAttributes": ["title"] }", with setHTML()
  14. Testcase #4, "<p><b class=c title=1>1<b class=c title=2>2<b class=c title=3>3<b class=c title=4>4</p>x", config: "{ "removeAttributes": ["title"] }", with setHTMLUnsafe()
  15. Testcase #4, "<p><b class=c title=1>1<b class=c title=2>2<b class=c title=3>3<b class=c title=4>4</p>x", config: "{ "removeAttributes": ["title"] }", with Document.parseHTML()
  16. Testcase #5, "<p><b class=c title=1>1<b class=c title=2>2<b class=c title=3>3<b class=c title=4>4</p>x", config: "{ "attributes": ["class"] }", with setHTML()
  17. Testcase #5, "<p><b class=c title=1>1<b class=c title=2>2<b class=c title=3>3<b class=c title=4>4</p>x", config: "{ "attributes": ["class"] }", with setHTMLUnsafe()
  18. Testcase #5, "<p><b class=c title=1>1<b class=c title=2>2<b class=c title=3>3<b class=c title=4>4</p>x", config: "{ "attributes": ["class"] }", with Document.parseHTML()
  19. Testcase #6, "<p><b onclick=1>1<b onclick=2>2<b onclick=3>3<b onclick=4>4</p>x", config: "undefined", with setHTML()
  20. Testcase #6, "<p><b onclick=1>1<b onclick=2>2<b onclick=3>3<b onclick=4>4</p>x", config: "undefined", with Document.parseHTML()
  21. Testcase #7, "<p><b onclick=1>1<b onclick=1>2<b onclick=1>3<b onclick=1>4</p>x", config: "undefined", with setHTML()
  22. Testcase #7, "<p><b onclick=1>1<b onclick=1>2<b onclick=1>3<b onclick=1>4</p>x", config: "undefined", with Document.parseHTML()
sanitizer-inert-document.html4 / 4 passingChrome 4 / 40 failedClean
Standing
Clean runner status OK
Chrome
Clean 4 / 4 WPT subtests passing runner status OK
4 passing subtests
  1. Test whether setHTML executes the fail handler.
  2. Test whether setHTMLUnsafe executes the fail handler.
  3. Test whether setHTML loads the image.
  4. Test whether setHTMLUnsafe loads the image.
sanitizer-javascript-url.html1,334 / 1,334 passingChrome 783 / 1,3340 failedClean
Standing
Clean runner status OK
Chrome
With failures 783 / 1,334 WPT subtests passing runner status OK

1,334 passing subtests are not listed: this file has more than 500 subtests, so only those that did not pass are kept.

sanitizer-mathml-elements.html84 / 84 passingChrome 75 / 840 failedClean
Standing
Clean runner status OK
Chrome
With failures 75 / 84 WPT subtests passing runner status OK
84 passing subtests
  1. Element.setHTML [all] #0, "<math><a href="https://example.com" hreflang="en" type="text/html">MathML Link</a></math>"
  2. ShadowRoot.setHTML [all] #0, "<math><a href="https://example.com" hreflang="en" type="text/html">MathML Link</a></math>"
  3. Document.parseHTML [all] #0, "<math><a href="https://example.com" hreflang="en" type="text/html">MathML Link</a></math>"
  4. Element.setHTMLUnsafe [all] #0, "<math><a href="https://example.com" hreflang="en" type="text/html">MathML Link</a></math>"
  5. ShadowRoot.setHTMLUnsafe [all] #0, "<math><a href="https://example.com" hreflang="en" type="text/html">MathML Link</a></math>"
  6. Document.parseHTMLUnsafe [all] #0, "<math><a href="https://example.com" hreflang="en" type="text/html">MathML Link</a></math>"
  7. Element.setHTML [all] #1, "<math><mo fence="true" form="prefix" largeop="true" lspace="1em" maxsize="100%" minsize="10%" movablelimits="true" rspace="1em" separator="true" stretchy="true" symmetric="true">+</mo></math>"
  8. ShadowRoot.setHTML [all] #1, "<math><mo fence="true" form="prefix" largeop="true" lspace="1em" maxsize="100%" minsize="10%" movablelimits="true" rspace="1em" separator="true" stretchy="true" symmetric="true">+</mo></math>"
  9. Document.parseHTML [all] #1, "<math><mo fence="true" form="prefix" largeop="true" lspace="1em" maxsize="100%" minsize="10%" movablelimits="true" rspace="1em" separator="true" stretchy="true" symmetric="true">+</mo></math>"
  10. Element.setHTMLUnsafe [all] #1, "<math><mo fence="true" form="prefix" largeop="true" lspace="1em" maxsize="100%" minsize="10%" movablelimits="true" rspace="1em" separator="true" stretchy="true" symmetric="true">+</mo></math>"
  11. ShadowRoot.setHTMLUnsafe [all] #1, "<math><mo fence="true" form="prefix" largeop="true" lspace="1em" maxsize="100%" minsize="10%" movablelimits="true" rspace="1em" separator="true" stretchy="true" symmetric="true">+</mo></math>"
  12. Document.parseHTMLUnsafe [all] #1, "<math><mo fence="true" form="prefix" largeop="true" lspace="1em" maxsize="100%" minsize="10%" movablelimits="true" rspace="1em" separator="true" stretchy="true" symmetric="true">+</mo></math>"
  13. Element.setHTML [all] #2, "<math><mover accent="true"><mi>x</mi><mo>-</mo></mover></math>"
  14. ShadowRoot.setHTML [all] #2, "<math><mover accent="true"><mi>x</mi><mo>-</mo></mover></math>"
  15. Document.parseHTML [all] #2, "<math><mover accent="true"><mi>x</mi><mo>-</mo></mover></math>"
  16. Element.setHTMLUnsafe [all] #2, "<math><mover accent="true"><mi>x</mi><mo>-</mo></mover></math>"
  17. ShadowRoot.setHTMLUnsafe [all] #2, "<math><mover accent="true"><mi>x</mi><mo>-</mo></mover></math>"
  18. Document.parseHTMLUnsafe [all] #2, "<math><mover accent="true"><mi>x</mi><mo>-</mo></mover></math>"
  19. Element.setHTML [all] #3, "<math><mpadded depth="1px" height="2px" lspace="3px" voffset="4px" width="5px"><mi>x</mi></mpadded></math>"
  20. ShadowRoot.setHTML [all] #3, "<math><mpadded depth="1px" height="2px" lspace="3px" voffset="4px" width="5px"><mi>x</mi></mpadded></math>"
  21. Document.parseHTML [all] #3, "<math><mpadded depth="1px" height="2px" lspace="3px" voffset="4px" width="5px"><mi>x</mi></mpadded></math>"
  22. Element.setHTMLUnsafe [all] #3, "<math><mpadded depth="1px" height="2px" lspace="3px" voffset="4px" width="5px"><mi>x</mi></mpadded></math>"
  23. ShadowRoot.setHTMLUnsafe [all] #3, "<math><mpadded depth="1px" height="2px" lspace="3px" voffset="4px" width="5px"><mi>x</mi></mpadded></math>"
  24. Document.parseHTMLUnsafe [all] #3, "<math><mpadded depth="1px" height="2px" lspace="3px" voffset="4px" width="5px"><mi>x</mi></mpadded></math>"
  25. Element.setHTML [all] #4, "<math><mspace depth="1px" height="2px" width="3px"></mspace></math>"
  26. ShadowRoot.setHTML [all] #4, "<math><mspace depth="1px" height="2px" width="3px"></mspace></math>"
  27. Document.parseHTML [all] #4, "<math><mspace depth="1px" height="2px" width="3px"></mspace></math>"
  28. Element.setHTMLUnsafe [all] #4, "<math><mspace depth="1px" height="2px" width="3px"></mspace></math>"
  29. ShadowRoot.setHTMLUnsafe [all] #4, "<math><mspace depth="1px" height="2px" width="3px"></mspace></math>"
  30. Document.parseHTMLUnsafe [all] #4, "<math><mspace depth="1px" height="2px" width="3px"></mspace></math>"
  31. Element.setHTML [all] #5, "<math><mtable><mtr><mtd columnspan="2" rowspan="2"><mi>x</mi></mtd></mtr></mtable></math>"
  32. ShadowRoot.setHTML [all] #5, "<math><mtable><mtr><mtd columnspan="2" rowspan="2"><mi>x</mi></mtd></mtr></mtable></math>"
  33. Document.parseHTML [all] #5, "<math><mtable><mtr><mtd columnspan="2" rowspan="2"><mi>x</mi></mtd></mtr></mtable></math>"
  34. Element.setHTMLUnsafe [all] #5, "<math><mtable><mtr><mtd columnspan="2" rowspan="2"><mi>x</mi></mtd></mtr></mtable></math>"
  35. ShadowRoot.setHTMLUnsafe [all] #5, "<math><mtable><mtr><mtd columnspan="2" rowspan="2"><mi>x</mi></mtd></mtr></mtable></math>"
  36. Document.parseHTMLUnsafe [all] #5, "<math><mtable><mtr><mtd columnspan="2" rowspan="2"><mi>x</mi></mtd></mtr></mtable></math>"
  37. Element.setHTML [all] #6, "<math><munder accentunder="true"><mi>x</mi><mo>→</mo></munder></math>"
  38. ShadowRoot.setHTML [all] #6, "<math><munder accentunder="true"><mi>x</mi><mo>→</mo></munder></math>"
  39. Document.parseHTML [all] #6, "<math><munder accentunder="true"><mi>x</mi><mo>→</mo></munder></math>"
  40. Element.setHTMLUnsafe [all] #6, "<math><munder accentunder="true"><mi>x</mi><mo>→</mo></munder></math>"
  41. ShadowRoot.setHTMLUnsafe [all] #6, "<math><munder accentunder="true"><mi>x</mi><mo>→</mo></munder></math>"
  42. Document.parseHTMLUnsafe [all] #6, "<math><munder accentunder="true"><mi>x</mi><mo>→</mo></munder></math>"
  43. Element.setHTML [all] #7, "<math><munderover accent="true" accentunder="true"><mi>x</mi><mo>‾</mo><mo>‾</mo></munderover></math>"
  44. ShadowRoot.setHTML [all] #7, "<math><munderover accent="true" accentunder="true"><mi>x</mi><mo>‾</mo><mo>‾</mo></munderover></math>"
  45. Document.parseHTML [all] #7, "<math><munderover accent="true" accentunder="true"><mi>x</mi><mo>‾</mo><mo>‾</mo></munderover></math>"
  46. Element.setHTMLUnsafe [all] #7, "<math><munderover accent="true" accentunder="true"><mi>x</mi><mo>‾</mo><mo>‾</mo></munderover></math>"
  47. ShadowRoot.setHTMLUnsafe [all] #7, "<math><munderover accent="true" accentunder="true"><mi>x</mi><mo>‾</mo><mo>‾</mo></munderover></math>"
  48. Document.parseHTMLUnsafe [all] #7, "<math><munderover accent="true" accentunder="true"><mi>x</mi><mo>‾</mo><mo>‾</mo></munderover></math>"
  49. Element.setHTML [all] #8, "<math><merror><mfrac><mmultiscripts><mn>1</mn><mprescripts/><mroot><mrow><ms>s</ms></mrow><mphantom><msqrt><mstyle><msub><msubsup><msup><mtext>t</mtext></msup></msub></mstyle></msqrt></mphantom></mroot></mmultiscripts></mfrac></merror></math>"
  50. ShadowRoot.setHTML [all] #8, "<math><merror><mfrac><mmultiscripts><mn>1</mn><mprescripts/><mroot><mrow><ms>s</ms></mrow><mphantom><msqrt><mstyle><msub><msubsup><msup><mtext>t</mtext></msup></msub></mstyle></msqrt></mphantom></mroot></mmultiscripts></mfrac></merror></math>"
  51. Document.parseHTML [all] #8, "<math><merror><mfrac><mmultiscripts><mn>1</mn><mprescripts/><mroot><mrow><ms>s</ms></mrow><mphantom><msqrt><mstyle><msub><msubsup><msup><mtext>t</mtext></msup></msub></mstyle></msqrt></mphantom></mroot></mmultiscripts></mfrac></merror></math>"
  52. Element.setHTMLUnsafe [all] #8, "<math><merror><mfrac><mmultiscripts><mn>1</mn><mprescripts/><mroot><mrow><ms>s</ms></mrow><mphantom><msqrt><mstyle><msub><msubsup><msup><mtext>t</mtext></msup></msub></mstyle></msqrt></mphantom></mroot></mmultiscripts></mfrac></merror></math>"
  53. ShadowRoot.setHTMLUnsafe [all] #8, "<math><merror><mfrac><mmultiscripts><mn>1</mn><mprescripts/><mroot><mrow><ms>s</ms></mrow><mphantom><msqrt><mstyle><msub><msubsup><msup><mtext>t</mtext></msup></msub></mstyle></msqrt></mphantom></mroot></mmultiscripts></mfrac></merror></math>"
  54. Document.parseHTMLUnsafe [all] #8, "<math><merror><mfrac><mmultiscripts><mn>1</mn><mprescripts/><mroot><mrow><ms>s</ms></mrow><mphantom><msqrt><mstyle><msub><msubsup><msup><mtext>t</mtext></msup></msub></mstyle></msqrt></mphantom></mroot></mmultiscripts></mfrac></merror></math>"
  55. Element.setHTML [safe] #0, "<math><a xlink:href="https://example.com">xlink Link</a></math>"
  56. ShadowRoot.setHTML [safe] #0, "<math><a xlink:href="https://example.com">xlink Link</a></math>"
  57. Document.parseHTML [safe] #0, "<math><a xlink:href="https://example.com">xlink Link</a></math>"
  58. Element.setHTML [safe] #1, "<math><a href="https://example.com" download="file" ping="https://track.com" target="_blank">Restricted</a></math>"
  59. ShadowRoot.setHTML [safe] #1, "<math><a href="https://example.com" download="file" ping="https://track.com" target="_blank">Restricted</a></math>"
  60. Document.parseHTML [safe] #1, "<math><a href="https://example.com" download="file" ping="https://track.com" target="_blank">Restricted</a></math>"
  61. Element.setHTML [safe] #2, "<math><mrow hreflang="en" type="text/html" href="https://example.com" fence="true" accent="true" depth="1px" columnspan="2"></mrow></math>"
  62. ShadowRoot.setHTML [safe] #2, "<math><mrow hreflang="en" type="text/html" href="https://example.com" fence="true" accent="true" depth="1px" columnspan="2"></mrow></math>"
  63. Document.parseHTML [safe] #2, "<math><mrow hreflang="en" type="text/html" href="https://example.com" fence="true" accent="true" depth="1px" columnspan="2"></mrow></math>"
  64. Element.setHTML [safe] #3, "<math><mi fence="true" depth="1px" columnspan="2"></mi></math>"
  65. ShadowRoot.setHTML [safe] #3, "<math><mi fence="true" depth="1px" columnspan="2"></mi></math>"
  66. Document.parseHTML [safe] #3, "<math><mi fence="true" depth="1px" columnspan="2"></mi></math>"
  67. Element.setHTML [safe] #4, "<math><mtext><a href="javascript:alert(1)">Integration Point</a></mtext></math>"
  68. ShadowRoot.setHTML [safe] #4, "<math><mtext><a href="javascript:alert(1)">Integration Point</a></mtext></math>"
  69. Document.parseHTML [safe] #4, "<math><mtext><a href="javascript:alert(1)">Integration Point</a></mtext></math>"
  70. Element.setHTMLUnsafe [unsafe] #0, "<math><a xlink:href="https://example.com">xlink Link</a></math>"
  71. ShadowRoot.setHTMLUnsafe [unsafe] #0, "<math><a xlink:href="https://example.com">xlink Link</a></math>"
  72. Document.parseHTMLUnsafe [unsafe] #0, "<math><a xlink:href="https://example.com">xlink Link</a></math>"
  73. Element.setHTMLUnsafe [unsafe] #1, "<math><a href="https://example.com" download="file" ping="https://track.com" target="_blank">Restricted</a></math>"
  74. ShadowRoot.setHTMLUnsafe [unsafe] #1, "<math><a href="https://example.com" download="file" ping="https://track.com" target="_blank">Restricted</a></math>"
  75. Document.parseHTMLUnsafe [unsafe] #1, "<math><a href="https://example.com" download="file" ping="https://track.com" target="_blank">Restricted</a></math>"
  76. Element.setHTMLUnsafe [unsafe] #2, "<math><mrow hreflang="en" type="text/html" href="https://example.com" fence="true" accent="true" depth="1px" columnspan="2"></mrow></math>"
  77. ShadowRoot.setHTMLUnsafe [unsafe] #2, "<math><mrow hreflang="en" type="text/html" href="https://example.com" fence="true" accent="true" depth="1px" columnspan="2"></mrow></math>"
  78. Document.parseHTMLUnsafe [unsafe] #2, "<math><mrow hreflang="en" type="text/html" href="https://example.com" fence="true" accent="true" depth="1px" columnspan="2"></mrow></math>"
  79. Element.setHTMLUnsafe [unsafe] #3, "<math><mi fence="true" depth="1px" columnspan="2"></mi></math>"
  80. ShadowRoot.setHTMLUnsafe [unsafe] #3, "<math><mi fence="true" depth="1px" columnspan="2"></mi></math>"
  81. Document.parseHTMLUnsafe [unsafe] #3, "<math><mi fence="true" depth="1px" columnspan="2"></mi></math>"
  82. Element.setHTMLUnsafe [unsafe] #4, "<math><mtext><a href="javascript:alert(1)">Integration Point</a></mtext></math>"
  83. ShadowRoot.setHTMLUnsafe [unsafe] #4, "<math><mtext><a href="javascript:alert(1)">Integration Point</a></mtext></math>"
  84. Document.parseHTMLUnsafe [unsafe] #4, "<math><mtext><a href="javascript:alert(1)">Integration Point</a></mtext></math>"
sanitizer-modifiers.html22 / 22 passingChrome 21 / 220 failedClean
Standing
Clean runner status OK
Chrome
With failures 21 / 22 WPT subtests passing runner status OK
22 passing subtests
  1. sanitizer.allowAttribute() with global attributes
  2. sanitizer.allowAttribute() with global removeAttributes
  3. sanitizer.allowAttribute() with global attributes and elements
  4. sanitizer.allowAttribute() with global removeAttributes and element's attributes
  5. sanitizer.allowAttribute() with global removeAttributes and element's removeAttributes
  6. sanitizer.removeAttribute() with global attributes
  7. sanitizer.removeAttribute() with global removeAttributes
  8. sanitizer.removeAttribute() with global attributes and elements
  9. sanitizer.removeAttribute() with global removeAttributes and element's attributes
  10. sanitizer.removeAttribute() with global removeAttributes and element's removeAttributes
  11. sanitizer.removeElement() with global elements
  12. sanitizer.removeElement() with global removeElements
  13. sanitizer.replaceElementWithChildren() with global elements
  14. sanitizer.replaceElementWithChildren() with global removeElements
  15. sanitizer.allowElement() with global elements
  16. sanitizer.allowElement() with global removeElements
  17. sanitizer.allowElement() with global elements and attributes
  18. sanitizer.allowElement() with global elements and removeAttributes
  19. sanitizer.replaceElementWithChildren() does not allow non-replaceable elements.
  20. sanitizer.setJavascriptURLs()
  21. sanitizer.setComments()
  22. sanitizer.setDataAttributes()
sanitizer-parseHTML.html49 / 49 passingChrome 45 / 490 failedClean
Standing
Clean runner status OK
Chrome
With failures 45 / 49 WPT subtests passing runner status OK
49 passing subtests
  1. parseHTML testcase 0, "text"
  2. parseHTML testcase 1, "<div>text"
  3. parseHTML testcase 2, "<div>text"
  4. parseHTML testcase 3, "<div>text"
  5. parseHTML testcase 4, "<html onload="3 + 3"><div>a"
  6. parseHTML testcase 5, "<body><body onload="alert(1)">Hello"
  7. parseHTML testcase 6, "<!-- a --><html><body>x<!-- b --></body></html><!-- c -->"
  8. parseHTML testcase 7, "<?a b?><html><body>x<?c d?></body></html><?e f?>"
  9. parseHTML testcase 8, "x<p>y"
  10. parseHTML testcase 9, "<noscript><p>x</noscript>y"
  11. parseHTML testcase 10, "<noscript><p>x</noscript>y"
  12. parseHTML testcase 11, "<script>hello"
  13. parseHTML testcase 12, "<html onload="2+2"><body onload="3+3"><div>hello"
  14. parseHTML testcase 13, "<div data-xyz="1" id="2" title="3">"
  15. parseHTML testcase 14, "<div>a<!-- xx -->b"
  16. parseHTML testcase 15, "<html onload="2 + 2"><div>a"
  17. parseHTML testcase 16, "<br id="document">"
  18. parseHTML testcase 17, "<br id="document">"
  19. parseHTML testcase 18, "<p onclick="alert(document.cookie)">Click handler!</p>"
  20. parseHTML testcase 19, "<p onclick="alert(document.cookie)">Click handler!</p>"
  21. parseHTML testcase 20, "<noscript><p>x</noscript>y"
  22. parseHTMLUnsafe testcase 0, "text"
  23. parseHTMLUnsafe testcase 1, "<div>text"
  24. parseHTMLUnsafe testcase 2, "<div>text"
  25. parseHTMLUnsafe testcase 3, "<div>text"
  26. parseHTMLUnsafe testcase 4, "<html onload="3 + 3"><div>a"
  27. parseHTMLUnsafe testcase 5, "<body><body onload="alert(1)">Hello"
  28. parseHTMLUnsafe testcase 6, "<!-- a --><html><body>x<!-- b --></body></html><!-- c -->"
  29. parseHTMLUnsafe testcase 7, "<?a b?><html><body>x<?c d?></body></html><?e f?>"
  30. parseHTMLUnsafe testcase 8, "x<p>y"
  31. parseHTMLUnsafe testcase 9, "<noscript><p>x</noscript>y"
  32. parseHTMLUnsafe testcase 10, "<noscript><p>x</noscript>y"
  33. parseHTMLUnsafe testcase 11, "<script>hello"
  34. parseHTMLUnsafe testcase 12, "<html onload="2+2"><body onload="3+3"><div>hello"
  35. parseHTMLUnsafe testcase 13, "<div data-xyz="1" id="2" title="3">"
  36. parseHTMLUnsafe testcase 14, "<div>a<!-- xx -->b"
  37. parseHTMLUnsafe testcase 15, "<html onload="2 + 2"><div>a"
  38. parseHTMLUnsafe testcase 16, "<div>a<!-- xx -->b"
  39. parseHTMLUnsafe testcase 17, "<!-- 1 --><html><body>x<!-- 2 --></body></html><!-- 3 -->"
  40. parseHTMLUnsafe testcase 18, "a<template>x</template>b"
  41. parseHTMLUnsafe testcase 19, "<noscript><p>x</noscript>y"
  42. parseHTMLUnsafe testcase 20, "<head><meta></head><body>x"
  43. parseHTMLUnsafe testcase 21, "<head></head><body>x<p>y"
  44. parseHTMLUnsafe testcase 22, "<head></head><meta><body>x"
  45. parseHTMLUnsafe testcase 23, "<div></div><frameset>"
  46. parseHTMLUnsafe testcase 24, "<div></div><frameset>"
  47. parseHTMLUnsafe() without options keeps comments
  48. parseHTMLUnsafe full document testcase 0, "<!DOCTYPE html> text"
  49. parseHTML full document testcase 0, "<!DOCTYPE html> text"
sanitizer-processing-instructions.html63 / 63 passingChrome 63 / 630 failedClean
Standing
Clean runner status OK
Chrome
Clean 63 / 63 WPT subtests passing runner status OK
63 passing subtests
  1. setHTMLUnsafe testcase agnostic/0, "<?target data?>"
  2. ShadowRoot.setHTMLUnsafe testcase agnostic/0, "<?target data?>"
  3. setHTML testcase agnostic/0, "<?target data?>"
  4. ShadowRoot.setHTML testcase agnostic/0, "<?target data?>"
  5. parseHTML testcase agnostic/0, "<?target data?>"
  6. parseHTMLUnsafe testcase agnostic/0, "<?target data?>"
  7. setHTMLUnsafe testcase agnostic/1, "<?target data?>"
  8. ShadowRoot.setHTMLUnsafe testcase agnostic/1, "<?target data?>"
  9. setHTML testcase agnostic/1, "<?target data?>"
  10. ShadowRoot.setHTML testcase agnostic/1, "<?target data?>"
  11. parseHTML testcase agnostic/1, "<?target data?>"
  12. parseHTMLUnsafe testcase agnostic/1, "<?target data?>"
  13. setHTMLUnsafe testcase agnostic/2, "<?Target data?>"
  14. ShadowRoot.setHTMLUnsafe testcase agnostic/2, "<?Target data?>"
  15. setHTML testcase agnostic/2, "<?Target data?>"
  16. ShadowRoot.setHTML testcase agnostic/2, "<?Target data?>"
  17. parseHTML testcase agnostic/2, "<?Target data?>"
  18. parseHTMLUnsafe testcase agnostic/2, "<?Target data?>"
  19. setHTMLUnsafe testcase agnostic/3, "<?target data?>"
  20. ShadowRoot.setHTMLUnsafe testcase agnostic/3, "<?target data?>"
  21. setHTML testcase agnostic/3, "<?target data?>"
  22. ShadowRoot.setHTML testcase agnostic/3, "<?target data?>"
  23. parseHTML testcase agnostic/3, "<?target data?>"
  24. parseHTMLUnsafe testcase agnostic/3, "<?target data?>"
  25. setHTMLUnsafe testcase agnostic/4, "<?target-1 data?><?target-2 data?>"
  26. ShadowRoot.setHTMLUnsafe testcase agnostic/4, "<?target-1 data?><?target-2 data?>"
  27. setHTML testcase agnostic/4, "<?target-1 data?><?target-2 data?>"
  28. ShadowRoot.setHTML testcase agnostic/4, "<?target-1 data?><?target-2 data?>"
  29. parseHTML testcase agnostic/4, "<?target-1 data?><?target-2 data?>"
  30. parseHTMLUnsafe testcase agnostic/4, "<?target-1 data?><?target-2 data?>"
  31. setHTMLUnsafe testcase agnostic/5, "<?target-1 data?><?target-2 data?>"
  32. ShadowRoot.setHTMLUnsafe testcase agnostic/5, "<?target-1 data?><?target-2 data?>"
  33. setHTML testcase agnostic/5, "<?target-1 data?><?target-2 data?>"
  34. ShadowRoot.setHTML testcase agnostic/5, "<?target-1 data?><?target-2 data?>"
  35. parseHTML testcase agnostic/5, "<?target-1 data?><?target-2 data?>"
  36. parseHTMLUnsafe testcase agnostic/5, "<?target-1 data?><?target-2 data?>"
  37. setHTMLUnsafe testcase agnostic/6, "<div><?target data?></div>"
  38. ShadowRoot.setHTMLUnsafe testcase agnostic/6, "<div><?target data?></div>"
  39. setHTML testcase agnostic/6, "<div><?target data?></div>"
  40. ShadowRoot.setHTML testcase agnostic/6, "<div><?target data?></div>"
  41. parseHTML testcase agnostic/6, "<div><?target data?></div>"
  42. parseHTMLUnsafe testcase agnostic/6, "<div><?target data?></div>"
  43. setHTMLUnsafe testcase agnostic/7, "<div><?unlisted-target data?></div>"
  44. ShadowRoot.setHTMLUnsafe testcase agnostic/7, "<div><?unlisted-target data?></div>"
  45. setHTML testcase agnostic/7, "<div><?unlisted-target data?></div>"
  46. ShadowRoot.setHTML testcase agnostic/7, "<div><?unlisted-target data?></div>"
  47. parseHTML testcase agnostic/7, "<div><?unlisted-target data?></div>"
  48. parseHTMLUnsafe testcase agnostic/7, "<div><?unlisted-target data?></div>"
  49. setHTMLUnsafe testcase unsafe-only/0, "<?target data?>"
  50. ShadowRoot.setHTMLUnsafe testcase unsafe-only/0, "<?target data?>"
  51. parseHTMLUnsafe testcase unsafe-only/0, "<?target data?>"
  52. setHTMLUnsafe testcase unsafe-only/1, "<?target data?>"
  53. ShadowRoot.setHTMLUnsafe testcase unsafe-only/1, "<?target data?>"
  54. parseHTMLUnsafe testcase unsafe-only/1, "<?target data?>"
  55. setHTMLUnsafe testcase unsafe-only/2, "<div><?target data?></div>"
  56. ShadowRoot.setHTMLUnsafe testcase unsafe-only/2, "<div><?target data?></div>"
  57. parseHTMLUnsafe testcase unsafe-only/2, "<div><?target data?></div>"
  58. setHTMLUnsafe testcase unsafe-only/3, "<div><?target data?></div>"
  59. ShadowRoot.setHTMLUnsafe testcase unsafe-only/3, "<div><?target data?></div>"
  60. parseHTMLUnsafe testcase unsafe-only/3, "<div><?target data?></div>"
  61. setHTML testcase safe-only/0, "<div><?target data?></div>"
  62. ShadowRoot.setHTML testcase safe-only/0, "<div><?target data?></div>"
  63. parseHTML testcase safe-only/0, "<div><?target data?></div>"
sanitizer-removeUnsafe.html8 / 8 passingChrome 5 / 80 failedClean
Standing
Clean runner status OK
Chrome
With failures 5 / 8 WPT subtests passing runner status OK
8 passing subtests
  1. removeUnsafe removes the right elements and attributes
  2. removeUnsafe with default config
  3. removeUnsafe sets javascriptURLs to false
  4. Baseline remove list is namespace specific #0: {"name":"script","namespace":"http://www.w3.org/1999/xhtml"}
  5. Baseline remove list is namespace specific #1: {"name":"script","namespace":"http://www.w3.org/2000/svg"}
  6. Baseline remove list is namespace specific #2: {"name":"use","namespace":"http://www.w3.org/2000/svg"}
  7. Baseline remove list is namespace specific #3: {"name":"use","namespace":"http://www.w3.org/1999/xhtml"}
  8. Baseline remove list is namespace specific #4: {"name":"script","namespace":"http://www.w3.org/1998/Math/MathML"}
sanitizer-script-tokenizer.html10 / 10 passingChrome 10 / 100 failedClean
Standing
Clean runner status OK
Chrome
Clean 10 / 10 WPT subtests passing runner status OK
10 passing subtests
  1. Sanitizer script and raw text tokenizer testcases from sub.dat
  2. Testcase #0 [setHTML], "<script><img src=x onerror='window.scriptRan=true;'><div>content</div></script>", config: "{}"
  3. Testcase #1 [setHTML], "<script><img src=x onerror='window.scriptRan=true;'><div>content</div></script>", config: "{ "removeElements": ["script"] }"
  4. Testcase #2 [setHTMLUnsafe], "<script><b>bold text</b><img src=x></script>", config: "{ "replaceWithChildrenElements": ["script"] }"
  5. Testcase #3 [setHTMLUnsafe], "<style><img src=x><div>test</div></style>", config: "{ "replaceWithChildrenElements": ["style"] }"
  6. Testcase #4 [setHTMLUnsafe], "<textarea><img src=x><div>test</div></textarea>", config: "{ "replaceWithChildrenElements": ["textarea"] }"
  7. Testcase #5 [setHTML], "<script><b>Hello</b></script>", config: "{ "replaceWithChildrenElements": ["script"] }"
  8. Testcase #6 [setHTMLUnsafe], "<script><b>Hello</b></script>", config: "{ "removeElements": ["script"] }"
  9. Testcase #7 [setHTMLUnsafe], "<p>before</p><script><b>bold text</b><img src=x></script><p>after</p>", config: "{ "replaceWithChildrenElements": ["script"] }"
  10. Testcase #8 [setHTML], "<p>before</p><script><b>bold text</b><img src=x></script><p>after</p>", config: "{}"
sanitizer-svg-animate.html22 / 22 passingChrome 20 / 220 failedClean
Standing
Clean runner status OK
Chrome
With failures 20 / 22 WPT subtests passing runner status OK
22 passing subtests
  1. setHTML testcase should not retain attributeName and should not animate: "<svg><a href="about:blank"><set attributeName="href" to="https://example.org/" begin="0s">".
  2. setHTMLUnsafe testcase should retain attributeName and should animate: "<svg><a href="about:blank"><set attributeName="href" to="https://example.org/" begin="0s">".
  3. setHTML testcase should not retain attributeName and should not animate: "<svg ><a href="about:blank"><set attributeName="xlink:href" to="https://example.org/" begin="0s">".
  4. setHTMLUnsafe testcase should retain attributeName and should not animate: "<svg ><a href="about:blank"><set attributeName="xlink:href" to="https://example.org/" begin="0s">".
  5. setHTML testcase should retain attributeName and should not animate: "<svg><a href="about:blank" hreflang="en"><set attributeName="hreflang" to="https://example.org/" begin="0s">".
  6. setHTMLUnsafe testcase should retain attributeName and should not animate: "<svg><a href="about:blank" hreflang="en"><set attributeName="hreflang" to="https://example.org/" begin="0s">".
  7. setHTML testcase should retain attributeName and should not animate: "<svg><a href="about:blank"><set attributeName="xref" to="https://example.org/" begin="0s">".
  8. setHTMLUnsafe testcase should retain attributeName and should not animate: "<svg><a href="about:blank"><set attributeName="xref" to="https://example.org/" begin="0s">".
  9. setHTML testcase should not retain attributeName and should not animate: "<svg><a href="about:blank"><set attributeName="ylink:href" to="https://example.org/" begin="0s">".
  10. setHTMLUnsafe testcase should retain attributeName and should not animate: "<svg><a href="about:blank"><set attributeName="ylink:href" to="https://example.org/" begin="0s">".
  11. setHTML testcase should not retain attributeName and should not animate: "<svg><a xmlns:zlink="https://www.w3.org/1999/xlink" href="about:blank"><set attributeName="zlink:href" to="https://example.org/" begin="0s">".
  12. setHTMLUnsafe testcase should retain attributeName and should not animate: "<svg><a xmlns:zlink="https://www.w3.org/1999/xlink" href="about:blank"><set attributeName="zlink:href" to="https://example.org/" begin="0s">".
  13. setHTML testcase should not retain attributeName and should not animate: "<svg xmlns:zlink="https://www.w3.org/1999/xlink"><a href="about:blank"><set attributeName="zlink:href" to="https://example.org/" begin="0s">".
  14. setHTMLUnsafe testcase should retain attributeName and should not animate: "<svg xmlns:zlink="https://www.w3.org/1999/xlink"><a href="about:blank"><set attributeName="zlink:href" to="https://example.org/" begin="0s">".
  15. setHTML testcase should not retain attributeName and should not animate: "<svg><a xmlns:zlink="https://www.w3.org/1999/xlink" xlink:href="about:blank"><set attributeName="zlink:href" to="https://example.org/" begin="0s">".
  16. setHTMLUnsafe testcase should retain attributeName and should not animate: "<svg><a xmlns:zlink="https://www.w3.org/1999/xlink" xlink:href="about:blank"><set attributeName="zlink:href" to="https://example.org/" begin="0s">".
  17. setHTML testcase should not retain attributeName and should not animate: "<svg xmlns:zlink="https://www.w3.org/1999/xlink"><a xlink:href="about:blank"><set attributeName="zlink:href" to="https://example.org/" begin="0s">".
  18. setHTMLUnsafe testcase should retain attributeName and should not animate: "<svg xmlns:zlink="https://www.w3.org/1999/xlink"><a xlink:href="about:blank"><set attributeName="zlink:href" to="https://example.org/" begin="0s">".
  19. setHTML testcase should retain attributeName and should not animate: "<svg><a href="about:blank"><set attributeName="xlink:href:x" to="https://example.org/" begin="0s">".
  20. setHTMLUnsafe testcase should retain attributeName and should not animate: "<svg><a href="about:blank"><set attributeName="xlink:href:x" to="https://example.org/" begin="0s">".
  21. setHTML testcase should retain attributeName and should not animate: "<svg xmlns:xlink="http://www.w3.org/1999/xlink"><a id="foo"><set attributeName="xlink:href:x" to="javascript:alert()" begin="0s"></set></a></svg>".
  22. setHTMLUnsafe testcase should retain attributeName and should not animate: "<svg xmlns:xlink="http://www.w3.org/1999/xlink"><a id="foo"><set attributeName="xlink:href:x" to="javascript:alert()" begin="0s"></set></a></svg>".
sethtml-custom-element-reactions.html4 / 8 passingChrome 4 / 84 failedWith failures
Standing
With failures runner status OK
Chrome
With failures 4 / 8 WPT subtests passing runner status OK
  1. FAILElement.setHTML with a sanitizer runs disconnectedCallback for the replaced children before returning
    assert_array_equals: expected property 0 to be "constructed" but got "disconnected" (expected array ["constructed", "connected", "disconnected"] got ["disconnected", "constructed", "connected"])
  2. FAILElement.setHTMLUnsafe with a sanitizer runs disconnectedCallback for the replaced children before returning
    assert_array_equals: expected property 0 to be "constructed" but got "disconnected" (expected array ["constructed", "connected", "disconnected"] got ["disconnected", "constructed", "connected"])
  3. FAILShadowRoot.setHTML with a sanitizer runs disconnectedCallback for the replaced children before returning
    assert_array_equals: expected property 0 to be "constructed" but got "disconnected" (expected array ["constructed", "connected", "disconnected"] got ["disconnected", "constructed", "connected"])
  4. FAILShadowRoot.setHTMLUnsafe with a sanitizer runs disconnectedCallback for the replaced children before returning
    assert_array_equals: expected property 0 to be "constructed" but got "disconnected" (expected array ["constructed", "connected", "disconnected"] got ["disconnected", "constructed", "connected"])
4 passing subtests
  1. Element.setHTML with a sanitizer runs custom element reactions before returning
  2. Element.setHTMLUnsafe with a sanitizer runs custom element reactions before returning
  3. ShadowRoot.setHTML with a sanitizer runs custom element reactions before returning
  4. ShadowRoot.setHTMLUnsafe with a sanitizer runs custom element reactions before returning
sethtml-form-owner.html4 / 4 passingChrome 4 / 40 failedClean
Standing
Clean runner status OK
Chrome
Clean 4 / 4 WPT subtests passing runner status OK
4 passing subtests
  1. Without a sanitizer, the input's form owner is the parsed form
  2. With the form replaced with its children, the input has no form owner
  3. parseHTMLUnsafe(): without a sanitizer, the input's form owner is the parsed form
  4. parseHTMLUnsafe(): with the form replaced with its children, the input has no form owner
sethtml-noscript.html6 / 6 passingChrome 3 / 60 failedClean
Standing
Clean runner status OK
Chrome
With failures 3 / 6 WPT subtests passing runner status OK
6 passing subtests
  1. setHTMLUnsafe() parses noscript as raw text (no options)
  2. setHTMLUnsafe() parses noscript as raw text (empty options)
  3. setHTMLUnsafe() parses noscript as raw text (sanitizer: undefined)
  4. setHTMLUnsafe() parses noscript as raw text (empty sanitizer config)
  5. setHTML() parses noscript as raw text when noscript is allowed
  6. setHTML() removes noscript with its raw text content by default
sethtml-replace-with-children.html6 / 6 passingChrome 6 / 60 failedClean
Standing
Clean runner status OK
Chrome
Clean 6 / 6 WPT subtests passing runner status OK
6 passing subtests
  1. setHTML: children of a replaced element get the target's node document
  2. setHTML: a declarative shadow root inside a replaced element is not attached
  3. setHTMLUnsafe: children of a replaced element get the target's node document
  4. setHTMLUnsafe: a declarative shadow root inside a replaced element is not attached
  5. setHTMLUnsafe: a custom element inside a replaced element is constructed and connected to the target
  6. setHTMLUnsafe: a custom element inside a foster-parented replaced element is connected before the table
sethtml-safety.html33 / 33 passingChrome 33 / 330 failedClean
Standing
Clean runner status OK
Chrome
Clean 33 / 33 WPT subtests passing runner status OK
33 passing subtests
  1. wrapper
  2. Testcase #0, setHTML("test").
  3. Testcase #1, setHTML("<p>Hello</p>").
  4. Testcase #2, setHTML("<div>Hello<script>World</script>xxx").
  5. Testcase #3, setHTML("<div>Hello<script>World</script>xxx").
  6. Testcase #4, setHTML("<svg>Hello<script>World</script>xxx").
  7. Testcase #5, setHTML("<a href="https://web-platform.test/" onclick="2+2" one="two">").
  8. Testcase #6, setHTML("<a href="https://web-platform.test/" onclick="2+2" one="two">").
  9. Testcase #7, setHTML("<img src="https://web-platform.test/test-image" onclick="2+2" one="two">").
  10. Testcase #8, setHTML("<p data-x="1" data-y="2" data-z="3">").
  11. Testcase #9, setHTML("<div><base href="https://example.org/"></base></div>").
  12. Testcase #10, setHTML("<div><embed src="https://example.org/"></embed></div>").
  13. Testcase #11, setHTML("<div><iframe src="https://example.org/"></iframe></div>").
  14. Testcase #12, setHTML("<div><object data="https://example.org/"></object></div>").
  15. Testcase #13, setHTML("<div><script src="https://example.org/"></script></div>").
  16. Testcase #14, setHTML("<svg><script src="https://example.org/"></script></svg>").
  17. Testcase #15, setHTML("<svg><use href="https://example.org/"></use></svg>").
  18. Testcase #0, setHTMLUnsafe("test").
  19. Testcase #1, setHTMLUnsafe("<p>Hello</p>").
  20. Testcase #2, setHTMLUnsafe("<div>Hello<script>World</script>xxx").
  21. Testcase #3, setHTMLUnsafe("<div>Hello<script>World</script>xxx").
  22. Testcase #4, setHTMLUnsafe("<svg>Hello<script>World</script>xxx").
  23. Testcase #5, setHTMLUnsafe("<a href="https://web-platform.test/" onclick="2+2" one="two">").
  24. Testcase #6, setHTMLUnsafe("<a href="https://web-platform.test/" onclick="2+2" one="two">").
  25. Testcase #7, setHTMLUnsafe("<img src="https://web-platform.test/test-image" onclick="2+2" one="two">").
  26. Testcase #8, setHTMLUnsafe("<p data-x="1" data-y="2" data-z="3">").
  27. Testcase #9, setHTMLUnsafe("<div><base href="https://example.org/"></base></div>").
  28. Testcase #10, setHTMLUnsafe("<div><embed src="https://example.org/"></embed></div>").
  29. Testcase #11, setHTMLUnsafe("<div><iframe src="https://example.org/"></iframe></div>").
  30. Testcase #12, setHTMLUnsafe("<div><object data="https://example.org/"></object></div>").
  31. Testcase #13, setHTMLUnsafe("<div><script src="https://example.org/"></script></div>").
  32. Testcase #14, setHTMLUnsafe("<svg><script src="https://example.org/"></script></svg>").
  33. Testcase #15, setHTMLUnsafe("<svg><use href="https://example.org/"></use></svg>").
sethtml-scoped-custom-element-registry.html3 / 9 passingChrome 3 / 96 failedWith failures
Standing
With failures runner status OK
Chrome
With failures 3 / 9 WPT subtests passing runner status OK
  1. FAILsetHTML uses the target's scoped custom element registry
    assert_array_equals: lengths differ, expected array ["constructed", "connected"] length 2, got [] length 0
  2. FAILsetHTML with replaceWithChildrenElements preserves the scoped custom element registry for children
    assert_array_equals: lengths differ, expected array ["constructed", "connected"] length 2, got [] length 0
  3. FAILsetHTML on a shadow root uses the shadow root's registry, not the host's
    assert_array_equals: lengths differ, expected array ["shadow-registry"] length 1, got [] length 0
  4. FAILsetHTML constructs nested custom elements with the scoped registry
    assert_array_equals: lengths differ, expected array ["constructed"] length 1, got [] length 0
  5. FAILsetHTMLUnsafe with a sanitizer uses the target's scoped custom element registry
    assert_array_equals: lengths differ, expected array ["constructed", "connected"] length 2, got [] length 0
  6. FAILsetHTMLUnsafe with replaceWithChildrenElements preserves the scoped custom element registry for children
    assert_array_equals: lengths differ, expected array ["constructed", "connected"] length 2, got [] length 0
3 passing subtests
  1. setHTMLUnsafe uses the target's scoped custom element registry
  2. setHTMLUnsafe on a shadow root uses the shadow root's registry, not the host's
  3. setHTMLUnsafe constructs nested custom elements with the scoped registry
sethtml-tree-construction.html126 / 126 passingChrome 126 / 1260 failedClean
Standing
Clean runner status OK
Chrome
Clean 126 / 126 WPT subtests passing runner status OK
126 passing subtests
  1. wrapper
  2. Non-string input: empty object.
  3. Non-string input: number.
  4. Non-string input: octal number.
  5. Non-string input: expression.
  6. Non-string input: undefined.
  7. Testcase #0, "test", config: "undefined".
  8. Testcase #1, "<b>bla</b>", config: "undefined".
  9. Testcase #2, "<a<embla", config: "undefined".
  10. Testcase #3, "<html><head></head><body>test</body></html>", config: "undefined".
  11. Testcase #4, "<div>test", config: "undefined".
  12. Testcase #5, "<script>alert('i am a test')</script>", config: "undefined".
  13. Testcase #6, "hello<script>alert('i am a test')</script>", config: "undefined".
  14. Testcase #7, "<div><b>hello<script>alert('i am a test')</script>", config: "undefined".
  15. Testcase #8, "<p onclick='a= 123'>Click.</p>", config: "undefined".
  16. Testcase #9, "<plaintext><p>text</p>", config: "{}".
  17. Testcase #10, "<xmp>TEXT</xmp>", config: "{}".
  18. Testcase #11, "test", config: "{ "test": 123 }".
  19. Testcase #12, "test", config: "{ "removeElements": [] }".
  20. Testcase #13, "<div>test</div><p>bla", config: "{ "removeElements": ["div"] }".
  21. Testcase #14, "<custom-element>test1</custom-element>bla", config: "undefined".
  22. Testcase #15, "<custom-element>test3</custom-element>bla", config: "{ "elements": ["custom-element"] }".
  23. Testcase #16, "<custom-element>test5</custom-element>bla", config: "{ "removeElements": ["custom-element"] }".
  24. Testcase #17, "<script>alert('i am a test')</script>", config: "{ "removeElements": ["script"] }".
  25. Testcase #18, "<div>balabala<i>test</i></div><test-element>t</test-element>", config: "{ "removeElements": ["test-element", "i"] }".
  26. Testcase #19, "<div>balabala<i>i</i><p>t</p></div>", config: "{ "removeElements": ["dl", "p"] }".
  27. Testcase #20, "<div>test<div>p</div>tt<p>div</p></div>", config: "{ "elements": ["p"], "replaceWithChildrenElements": ["div"] }".
  28. Testcase #21, "<div>test</div><p>bla", config: "{ "removeElements": ["div"], "elements": ["div"] }".
  29. Testcase #22, "<p id='test'>Click.</p>", config: "{ "removeAttributes": [] }".
  30. Testcase #23, "<p id='test'>Click.</p>", config: "{ "removeAttributes": ["id"] }".
  31. Testcase #24, "<p id='test'>Click.</p>", config: "{ "elements": ["p"], "removeAttributes": ["id"] }".
  32. Testcase #25, "<p id='p' data-attribute-with-dashes='123'>Click.</p><script>document.getElementById('p').dataset.attributeWithDashes=123;</script>", config: "{ "elements": ["p"], "removeAttributes": ["data-attribute-with-dashes"] }".
  33. Testcase #26, "<p id='p' title='p'>P</p><div id='div' title='div'>DIV</div>", config: "{ "elements": [ { "name": "p", "attributes": ["title"] }, { "name": "div", "attributes": ["id"] } ]}".
  34. Testcase #27, "<p id='p' title='p'>P</p><div id='div' title='div'>DIV</div>", config: "{ "elements": [ { "name": "p", "removeAttributes": ["title"] }, { "name": "div", "removeAttributes": ["id"] } ] }".
  35. Testcase #28, "<div id='div' title='div'>DIV</div>", config: "{ "elements": [{ "name": "div", "attributes": ["id"], "removeAttributes": ["id"] }]}".
  36. Testcase #29, "<div id='div' title='div'>DIV</div>", config: "{ "elements": [{ "name": "div", "attributes": ["id", "title"] }], "attributes": []}".
  37. Testcase #30, "<div id='div' title='div'>DIV</div>", config: "{ "elements": [{ "name": "div", "attributes": [] }], "removeAttributes": ["id", "title"] }".
  38. Testcase #31, "<div id='div' title='div'>DIV</div>", config: "{ "elements": [{ "name": "div", "removeAttributes": ["id", "title"] }], "attributes": ["id", "title"] }".
  39. Testcase #32, "<p id='test' onclick='a= 123'>Click.</p>", config: "{ "attributes": ["id"] }".
  40. Testcase #33, "<p style='color: black'>Click.</p>", config: "{ "removeAttributes": ["style"], "attributes": ["style"] }".
  41. Testcase #34, "<template><script>test</script><div>hello</div></template>", config: "{ "elements": ["template", "div"] }".
  42. Testcase #35, "<a href='javascript:evil.com'>Click.</a>", config: "undefined".
  43. Testcase #36, "<a href=' javascript:evil.com'>Click.</a>", config: "undefined".
  44. Testcase #37, "<a href='http:evil.com'>Click.</a>", config: "undefined".
  45. Testcase #38, "<area href='javascript:evil.com'>", config: "{}".
  46. Testcase #39, "<area href=' javascript:evil.com'>", config: "{}".
  47. Testcase #40, "<area href='http:evil.com'>", config: "{}".
  48. Testcase #41, "<form action='javascript:evil.com'>Click.</form>", config: "{}".
  49. Testcase #42, "<form action=' javascript:evil.com'>Click.</form>", config: "{}".
  50. Testcase #43, "<form action='http:evil.com'>Click.</form>", config: "{}".
  51. Testcase #44, "<input formaction='javascript:evil.com'>", config: "{}".
  52. Testcase #45, "<input formaction=' javascript:evil.com'>", config: "{}".
  53. Testcase #46, "<input formaction='http:evil.com'>", config: "{}".
  54. Testcase #47, "<button formaction='javascript:evil.com'>Click.</button>", config: "{}".
  55. Testcase #48, "<button formaction=' javascript:evil.com'>Click.</button>", config: "{}".
  56. Testcase #49, "<button formaction='http:evil.com'>Click.</button>", config: "{}".
  57. Testcase #50, "<p>Some text</p></body><!-- 1 --></html><!-- 2 --><p>Some more text</p>", config: "undefined".
  58. Testcase #51, "<p>Some text</p><!-- 1 --><!-- 2 --><p>Some more text</p>", config: "undefined".
  59. Testcase #52, "<p>Some text</p><!-- 1 --><!-- 2 --><p>Some more text</p>", config: "{ "comments": true }".
  60. Testcase #53, "<p>Some text</p><!-- 1 --><!-- 2 --><p>Some more text</p>", config: "{ "comments": false }".
  61. Testcase #54, "<p>comment<!-- hello -->in<!-- </p> -->text</p>", config: "undefined".
  62. Testcase #55, "<p>comment<!-- hello -->in<!-- </p> -->text</p>", config: "{ "comments": true }".
  63. Testcase #56, "<p>comment<!-- hello -->in<!-- </p> -->text</p>", config: "{ "comments": false }".
  64. Testcase #57, "<svg></svg>", config: "{ "elements": ["svg"] }".
  65. Testcase #58, "<div><svg></svg></div>", config: "{ "elements": ["div", "svg"] }".
  66. Testcase #59, "<div>balabala<dl>test</dl></div>", config: "{ "removeElements": ["I", "DL"] }".
  67. Testcase #60, "<div>balabala<dl>test</dl></div>", config: "{ "removeElements": ["i", "dl"] }".
  68. Testcase #61, "<DIV>balabala<DL>test</DL></DIV>", config: "{ "removeElements": ["i", "dl"] }".
  69. Testcase #62, "<p id="test">Click.</p>", config: "{ "removeAttributes": ["ID"] }".
  70. Testcase #63, "<p ID="test">Click.</p>", config: "{ "removeAttributes": ["ID"] }".
  71. Testcase #64, "<p ID="test">Click.</p>", config: "{ "removeAttributes": ["id"] }".
  72. Testcase #65, "<div>balabala<i>test</i></div><test>t</test><custom-element>custom-element</custom-element>", config: "{ "removeElements": [123, "test", "i", "custom-element"] }".
  73. Testcase #66, "<div>balabala<i>test</i></div><test>t</test><custom-element>custom-element</custom-element>", config: "{ "replaceWithChildrenElements": [123, "test", "i", "custom-element"], "elements": ["div"]}".
  74. Testcase #67, "<div>test<div>p</div>tt<p>div</p></div><test>test</test>", config: "{ "elements": ["p", "test"], "replaceWithChildrenElements": ["div"] }".
  75. Testcase #68, "test<div>p</div>tt<p>div</p><test>test</test>", config: "{ "elements": ["p", "test"], "replaceWithChildrenElements": ["div"] }".
  76. Testcase #69, "<div hello='1' world='2'><b hello='3' world='4'>", config: "{ "elements": ["div", "b"], "attributes": ["hello", "world"] }".
  77. Testcase #70, "<div hello='1' world='2'><b hello='3' world='4'>", config: "{ "elements": ["div", "b"], "removeAttributes": ["hello", "world"] }".
  78. Testcase #71, "<table><div><td>", config: "{ "replaceWithChildrenElements": ["table"] }".
  79. Testcase #72, "<template><div>Hello</div></template>", config: "{}".
  80. Testcase #73, "<template><div>Hello</div></template>", config: "{ "elements": ["div"]}".
  81. Testcase #74, "<template><div>Hello</div></template>", config: "{ "elements": ["template"]}".
  82. Testcase #75, "<template><div>Hello</div></template>", config: "{ "elements": ["div", "template"]}".
  83. Testcase #76, "<template><div>Hello</div></template>", config: "{ "elements": ["template"], "replaceWithChildrenElements": ["div"]}".
  84. Testcase #77, "<a href="about:blank" rel="opener">Click.</a>", config: "undefined".
  85. Testcase #78, "<div><b><em><foo><foob><fooc><aside></b></em></div>", config: "{ "removeElements": ["em"] }".
  86. Testcase #79, "<template><b>Hello</b></template>", config: "{ "replaceWithChildrenElements": ["template"] }".
  87. Testcase #80, "<div><template><b>Hello</b></template>after</div>", config: "{ "replaceWithChildrenElements": ["template"] }".
  88. Testcase #81, "<b>before</b><template><span>A</span><template><i>nested</i></template></template><b>after</b>", config: "{ "replaceWithChildrenElements": ["template"] }".
  89. Testcase #82, "<table><template><span>A</span></template><td>cell</td></table>", config: "{ "replaceWithChildrenElements": ["template"] }".
  90. Testcase #83, "<div><div><b>Hello</b></div>after</div>", config: "{ "replaceWithChildrenElements": ["div"] }".
  91. Testcase #84, "<div><table><tr>foster<td>cell</td></tr></table></div>", config: "{ "replaceWithChildrenElements": ["div"] }".
  92. Testcase #85, "<table><div><span>Content</span></div><td>cell</td></table>", config: "{ "replaceWithChildrenElements": ["div"] }".
  93. Testcase #86, "<table><tr><div><span>Content</span></div><td>cell</td></tr></table>", config: "{ "replaceWithChildrenElements": ["div"] }".
  94. Testcase #87, "<table>x<tr><td>y", config: "{ "replaceWithChildrenElements": ["table"] }".
  95. Testcase #88, "<table><tr><td>y</td></tr>x</table>", config: "{ "replaceWithChildrenElements": ["table"] }".
  96. Testcase #89, "<table><tr><td>y</td></tr><div>x</div></table>", config: "{ "replaceWithChildrenElements": ["table"] }".
  97. Testcase #90, "a<table><tr><td>y</td></tr>b</table>c", config: "{ "replaceWithChildrenElements": ["table"] }".
  98. Testcase #91, "<table><tbody><tr><td>y</td></tr>x</table>", config: "{ "replaceWithChildrenElements": ["table", "tbody"] }".
  99. Testcase #92, "<table><tr><div>x</div><td>y", config: "{ "replaceWithChildrenElements": ["div"] }".
  100. Testcase #93, "<table>a<b>y</b>c<tr><td>z", config: "{ "replaceWithChildrenElements": ["b"] }".
  101. Testcase #94, "<table><template>x</template><tr><td>y", config: "{ "replaceWithChildrenElements": ["template"] }".
  102. Testcase #95, "<template><table>x</table></template>", config: "{ "replaceWithChildrenElements": ["table"] }".
  103. Testcase #96, "a<table>b<tr><td>c</table>d", config: "{ "removeElements": ["table"] }".
  104. Testcase #97, "<table><tr>x<td>y", config: "{ "removeElements": ["tr"] }".
  105. Testcase #98, "<div><table>x", config: "{ "removeElements": ["div"] }".
  106. Testcase #99, "<b><table>x", config: "{ "replaceWithChildrenElements": ["b"] }".
  107. Testcase #100, "<b><table><div>x", config: "{ "replaceWithChildrenElements": ["b"], "removeElements": ["table"] }".
  108. Testcase #101, "<table><div><input type="hidden"><td>x", config: "{ "replaceWithChildrenElements": ["div"] }".
  109. Testcase #102, "<table><div><template>t</template><td>x", config: "{ "replaceWithChildrenElements": ["div"] }".
  110. Testcase #103, "<table><div><!-- c --><td>x", config: "{ "replaceWithChildrenElements": ["div"], "comments": true }".
  111. Testcase #104, "<table><tr><td>y", config: "{ "replaceWithChildrenElements": ["tr"] }".
  112. Testcase #105, "<table><!-- x --><tr><td>y", config: "{ "replaceWithChildrenElements": ["table"], "comments": true }".
  113. Testcase #106, "<template><!-- x --></template>", config: "{ "comments": true }".
  114. Testcase #107, "<td>a</td><div>b</div>", config: "{ "replaceWithChildrenElements": ["td"] }".
  115. Testcase #108, "<select><option>a<option>b</select>", config: "{ "replaceWithChildrenElements": ["option"] }".
  116. Testcase #109, "<select><option>a</option></select>", config: "{ "replaceWithChildrenElements": ["select"] }".
  117. Testcase #110, "<title>a&amp;b<b></title>c", config: "{ "replaceWithChildrenElements": ["title"] }".
  118. Testcase #111, "<plaintext>x</plaintext>y", config: "{ "replaceWithChildrenElements": ["plaintext"] }".
  119. Testcase #112, "<xmp><b>x</xmp>y", config: "{ "removeElements": ["xmp"] }".
  120. Testcase #113, "<image src="x">", config: "{ "removeElements": ["image"] }".
  121. Testcase #114, "<image src="x">", config: "{ "elements": ["img"] }".
  122. Testcase #115, "<table><tr><td>x", config: "{ "replaceWithChildrenElements": ["tbody"] }".
  123. Testcase #116, "<table><col></table>", config: "{ "replaceWithChildrenElements": ["colgroup"] }".
  124. Testcase #117, "<p>a<div>b</div>c", config: "{ "removeElements": ["p"] }".
  125. Testcase #118, "<svg><g><rect></g></svg>", config: "{ "replaceWithChildrenElements": [{ "name": "g", "namespace": "http://www.w3.org/2000/svg" }] }".
  126. Testcase #119, "<svg><foreignObject><div>x</div></foreignObject></svg>", config: "{ "replaceWithChildrenElements": [{ "name": "foreignObject", "namespace": "http://www.w3.org/2000/svg" }] }".
sethtml-with-custom-elements.html19 / 24 passingChrome 19 / 245 failedWith failures
Standing
With failures runner status OK
Chrome
With failures 19 / 24 WPT subtests passing runner status OK
  1. FAILCustom element that is allowed, on a disconnected element.
    assert_equals: constructed before setHTML() returns expected 1 but got 0
  2. FAILCustom element inside an element that is replaced with its children, on a disconnected element, setHTML().
    assert_equals: constructed before setHTML() returns expected 1 but got 0
  3. FAILCustom element inside an element that is replaced with its children uses the target's scoped registry, setHTML().
    assert_equals: element uses the scoped registry expected object "[object CustomElementRegistry]" but got object "[object CustomElementRegistry]"
  4. FAILCustom element inside an element that is replaced with its children, on a disconnected element, setHTMLUnsafe().
    assert_equals: constructed before setHTMLUnsafe() returns expected 1 but got 0
  5. FAILCustom element inside an element that is replaced with its children uses the target's scoped registry, setHTMLUnsafe().
    assert_equals: element uses the scoped registry expected object "[object CustomElementRegistry]" but got object "[object CustomElementRegistry]"
19 passing subtests
  1. Custom element that is removed during sanitization.
  2. Custom element that is allowed.
  3. Custom element on a disconnected element, setHTMLUnsafe().
  4. Custom element inside nested elements that are replaced with their children, setHTML().
  5. Custom element inside nested elements that are replaced with their children, setHTMLUnsafe().
  6. Custom element in a declarative shadow root on a removed host is not constructed.
  7. Custom element inside a removed element is not constructed.
  8. attributeChangedCallback only fires for attributes the sanitizer keeps.
  9. Custom element via is-attribute, where is attribute is not default-allowed.
  10. Custom element via is-attribute, where is attribute is removed.
  11. Custom element via is-attribute, where is attribute is removed but the custom element would have been allowed.
  12. Custom element with an is-attribute, where the is=-attribute is blocked.
  13. Custom element via is-attribute, where is attribute is allowed, but the element is not.
  14. Custom element via is-attribute, where is attribute is allowed, but the element is removed.
  15. Custom element via is-attribute, where is attribute is allowed, but the element is replaced.
  16. Custom element via is-attribute with unsafe, where is attribute is not default-allowed.
  17. Sanity check, that is= processing still works when allowed.
  18. Custom element via is-attribute on script element, where is attribute is not allowed.
  19. Custom element via is-attribute on html element, where is attribute is not default-allowed.
sethtml-with-declarative-shadow-root.html13 / 14 passingChrome 14 / 141 failedWith failures
Standing
With failures runner status OK
Chrome
Clean 14 / 14 WPT subtests passing runner status OK
  1. FAILshadowRoot.referenceTarget does not propagate to the shadow root when shadowrootreferencetarget is removed by sanitizer
    assert_equals: expected (object) null but got (undefined) undefined
13 passing subtests
  1. template with shadowrootmode should be removed by safe default
  2. template with shadowrootmode should not be removed in unsafe mode
  3. template with shadowrootmode should not be processed when <template> is forbidden
  4. template with shadowrootmode should be processed as a normal template when the shadowRootMode attribute is forbidden
  5. template with shadowrootmode replaced with its children has no children in the tree
  6. declarative shadow root on a host replaced with its children is not attached to the parent; the template is kept as a regular template
  7. declarative shadow root on a removed host is dropped with it
  8. template with shadowrootmode in removeElements does not attach a shadow root (setHTMLUnsafe)
  9. shadowRoot.delegatesFocus does not propagate to the shadow root when shadowrootdelegatesfocus is removed by sanitizer
  10. shadowRoot.serializable does not propagate to the shadow root when shadowrootserializable is removed by sanitizer
  11. shadowRoot.clonable does not propagate to the shadow root when shadowrootclonable is removed by sanitizer
  12. shadowRoot.customElementRegistry does not propagate to the shadow root when shadowrootcustomelementregistry is removed by sanitizer
  13. shadowRoot.adoptedStyleSheets does not propagate to the shadow root when shadowrootadoptedstylesheets is removed by sanitizer
sethtml-with-trustedhtml-createParserOptions.html166 / 166 passingChrome 166 / 1660 failedClean
Standing
Clean runner status OK
Chrome
Clean 166 / 166 WPT subtests passing runner status OK
166 passing subtests
  1. ShadowRoot.setHTMLUnsafe: sending TrustedHTML applies sanitizer in default policy createParserOptions
  2. ShadowRoot.setHTMLUnsafe: sending TrustedHTML does not call default policy createHTML
  3. ShadowRoot.setHTMLUnsafe: exception in default createParserOptions rethrows when TrustedHTML is passed
  4. ShadowRoot.setHTMLUnsafe: default createParserOptions returning null throws TypeError when TrustedHTML is passed
  5. ShadowRoot.setHTMLUnsafe: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
  6. ShadowRoot.appendHTMLUnsafe: sending TrustedHTML applies sanitizer in default policy createParserOptions
  7. ShadowRoot.appendHTMLUnsafe: sending TrustedHTML does not call default policy createHTML
  8. ShadowRoot.appendHTMLUnsafe: exception in default createParserOptions rethrows when TrustedHTML is passed
  9. ShadowRoot.appendHTMLUnsafe: default createParserOptions returning null throws TypeError when TrustedHTML is passed
  10. ShadowRoot.appendHTMLUnsafe: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
  11. ShadowRoot.prependHTMLUnsafe: sending TrustedHTML applies sanitizer in default policy createParserOptions
  12. ShadowRoot.prependHTMLUnsafe: sending TrustedHTML does not call default policy createHTML
  13. ShadowRoot.prependHTMLUnsafe: exception in default createParserOptions rethrows when TrustedHTML is passed
  14. ShadowRoot.prependHTMLUnsafe: default createParserOptions returning null throws TypeError when TrustedHTML is passed
  15. ShadowRoot.prependHTMLUnsafe: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
  16. ShadowRoot.innerHTML: sending TrustedHTML applies sanitizer in default policy createParserOptions
  17. ShadowRoot.innerHTML: sending TrustedHTML does not call default policy createHTML
  18. ShadowRoot.innerHTML: exception in default createParserOptions rethrows when TrustedHTML is passed
  19. ShadowRoot.innerHTML: default createParserOptions returning null throws TypeError when TrustedHTML is passed
  20. ShadowRoot.innerHTML: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
  21. ShadowRoot.setHTMLUnsafe: default policy createParserOptions sanitizer overrides caller sanitizer dictionary with TrustedHTML
  22. ShadowRoot.setHTMLUnsafe: caller-provided sanitizer dictionary is applied with TrustedHTML when default policy passes it through
  23. ShadowRoot.setHTMLUnsafe: caller-provided TrustedHTMLParserOptions sanitizer is applied with TrustedHTML while default policy is bypassed
  24. ShadowRoot.setHTMLUnsafe: default policy createParserOptions can disable runScripts
  25. ShadowRoot.setHTMLUnsafe: default policy createParserOptions can enable runScripts
  26. ShadowRoot.setHTMLUnsafe: TrustedHTML runs scripts when caller requests runScripts and default policy allows it
  27. ShadowRoot.appendHTMLUnsafe: default policy createParserOptions sanitizer overrides caller sanitizer dictionary with TrustedHTML
  28. ShadowRoot.appendHTMLUnsafe: caller-provided sanitizer dictionary is applied with TrustedHTML when default policy passes it through
  29. ShadowRoot.appendHTMLUnsafe: caller-provided TrustedHTMLParserOptions sanitizer is applied with TrustedHTML while default policy is bypassed
  30. ShadowRoot.appendHTMLUnsafe: default policy createParserOptions can disable runScripts
  31. ShadowRoot.appendHTMLUnsafe: default policy createParserOptions can enable runScripts
  32. ShadowRoot.appendHTMLUnsafe: TrustedHTML runs scripts when caller requests runScripts and default policy allows it
  33. ShadowRoot.prependHTMLUnsafe: default policy createParserOptions sanitizer overrides caller sanitizer dictionary with TrustedHTML
  34. ShadowRoot.prependHTMLUnsafe: caller-provided sanitizer dictionary is applied with TrustedHTML when default policy passes it through
  35. ShadowRoot.prependHTMLUnsafe: caller-provided TrustedHTMLParserOptions sanitizer is applied with TrustedHTML while default policy is bypassed
  36. ShadowRoot.prependHTMLUnsafe: default policy createParserOptions can disable runScripts
  37. ShadowRoot.prependHTMLUnsafe: default policy createParserOptions can enable runScripts
  38. ShadowRoot.prependHTMLUnsafe: TrustedHTML runs scripts when caller requests runScripts and default policy allows it
  39. ShadowRoot.innerHTML: default policy createParserOptions returning {runScripts: true} enables script execution with TrustedHTML
  40. Element.setHTMLUnsafe: sending TrustedHTML applies sanitizer in default policy createParserOptions
  41. Element.setHTMLUnsafe: sending TrustedHTML does not call default policy createHTML
  42. Element.setHTMLUnsafe: exception in default createParserOptions rethrows when TrustedHTML is passed
  43. Element.setHTMLUnsafe: default createParserOptions returning null throws TypeError when TrustedHTML is passed
  44. Element.setHTMLUnsafe: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
  45. Element.appendHTMLUnsafe: sending TrustedHTML applies sanitizer in default policy createParserOptions
  46. Element.appendHTMLUnsafe: sending TrustedHTML does not call default policy createHTML
  47. Element.appendHTMLUnsafe: exception in default createParserOptions rethrows when TrustedHTML is passed
  48. Element.appendHTMLUnsafe: default createParserOptions returning null throws TypeError when TrustedHTML is passed
  49. Element.appendHTMLUnsafe: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
  50. Element.prependHTMLUnsafe: sending TrustedHTML applies sanitizer in default policy createParserOptions
  51. Element.prependHTMLUnsafe: sending TrustedHTML does not call default policy createHTML
  52. Element.prependHTMLUnsafe: exception in default createParserOptions rethrows when TrustedHTML is passed
  53. Element.prependHTMLUnsafe: default createParserOptions returning null throws TypeError when TrustedHTML is passed
  54. Element.prependHTMLUnsafe: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
  55. Element.beforeHTMLUnsafe: sending TrustedHTML applies sanitizer in default policy createParserOptions
  56. Element.beforeHTMLUnsafe: sending TrustedHTML does not call default policy createHTML
  57. Element.beforeHTMLUnsafe: exception in default createParserOptions rethrows when TrustedHTML is passed
  58. Element.beforeHTMLUnsafe: default createParserOptions returning null throws TypeError when TrustedHTML is passed
  59. Element.beforeHTMLUnsafe: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
  60. Element.afterHTMLUnsafe: sending TrustedHTML applies sanitizer in default policy createParserOptions
  61. Element.afterHTMLUnsafe: sending TrustedHTML does not call default policy createHTML
  62. Element.afterHTMLUnsafe: exception in default createParserOptions rethrows when TrustedHTML is passed
  63. Element.afterHTMLUnsafe: default createParserOptions returning null throws TypeError when TrustedHTML is passed
  64. Element.afterHTMLUnsafe: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
  65. Element.replaceWithHTMLUnsafe: sending TrustedHTML applies sanitizer in default policy createParserOptions
  66. Element.replaceWithHTMLUnsafe: sending TrustedHTML does not call default policy createHTML
  67. Element.replaceWithHTMLUnsafe: exception in default createParserOptions rethrows when TrustedHTML is passed
  68. Element.replaceWithHTMLUnsafe: default createParserOptions returning null throws TypeError when TrustedHTML is passed
  69. Element.replaceWithHTMLUnsafe: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
  70. Element.innerHTML: sending TrustedHTML applies sanitizer in default policy createParserOptions
  71. Element.innerHTML: sending TrustedHTML does not call default policy createHTML
  72. Element.innerHTML: exception in default createParserOptions rethrows when TrustedHTML is passed
  73. Element.innerHTML: default createParserOptions returning null throws TypeError when TrustedHTML is passed
  74. Element.innerHTML: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
  75. Element.outerHTML: sending TrustedHTML applies sanitizer in default policy createParserOptions
  76. Element.outerHTML: sending TrustedHTML does not call default policy createHTML
  77. Element.outerHTML: exception in default createParserOptions rethrows when TrustedHTML is passed
  78. Element.outerHTML: default createParserOptions returning null throws TypeError when TrustedHTML is passed
  79. Element.outerHTML: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
  80. Element.createContextualFragment: sending TrustedHTML applies sanitizer in default policy createParserOptions
  81. Element.createContextualFragment: sending TrustedHTML does not call default policy createHTML
  82. Element.createContextualFragment: exception in default createParserOptions rethrows when TrustedHTML is passed
  83. Element.createContextualFragment: default createParserOptions returning null throws TypeError when TrustedHTML is passed
  84. Element.createContextualFragment: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
  85. Element.afterbegin: sending TrustedHTML applies sanitizer in default policy createParserOptions
  86. Element.afterbegin: sending TrustedHTML does not call default policy createHTML
  87. Element.afterbegin: exception in default createParserOptions rethrows when TrustedHTML is passed
  88. Element.afterbegin: default createParserOptions returning null throws TypeError when TrustedHTML is passed
  89. Element.afterbegin: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
  90. Element.beforeend: sending TrustedHTML applies sanitizer in default policy createParserOptions
  91. Element.beforeend: sending TrustedHTML does not call default policy createHTML
  92. Element.beforeend: exception in default createParserOptions rethrows when TrustedHTML is passed
  93. Element.beforeend: default createParserOptions returning null throws TypeError when TrustedHTML is passed
  94. Element.beforeend: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
  95. Element.beforebegin: sending TrustedHTML applies sanitizer in default policy createParserOptions
  96. Element.beforebegin: sending TrustedHTML does not call default policy createHTML
  97. Element.beforebegin: exception in default createParserOptions rethrows when TrustedHTML is passed
  98. Element.beforebegin: default createParserOptions returning null throws TypeError when TrustedHTML is passed
  99. Element.beforebegin: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
  100. Element.afterend: sending TrustedHTML applies sanitizer in default policy createParserOptions
  101. Element.afterend: sending TrustedHTML does not call default policy createHTML
  102. Element.afterend: exception in default createParserOptions rethrows when TrustedHTML is passed
  103. Element.afterend: default createParserOptions returning null throws TypeError when TrustedHTML is passed
  104. Element.afterend: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
  105. Element.parseHTMLUnsafe: sending TrustedHTML applies sanitizer in default policy createParserOptions
  106. Element.parseHTMLUnsafe: sending TrustedHTML does not call default policy createHTML
  107. Element.parseHTMLUnsafe: exception in default createParserOptions rethrows when TrustedHTML is passed
  108. Element.parseHTMLUnsafe: default createParserOptions returning null throws TypeError when TrustedHTML is passed
  109. Element.parseHTMLUnsafe: default createParserOptions returning undefined throws TypeError when TrustedHTML is passed
  110. Element.setHTMLUnsafe: default policy createParserOptions sanitizer overrides caller sanitizer dictionary with TrustedHTML
  111. Element.setHTMLUnsafe: caller-provided sanitizer dictionary is applied with TrustedHTML when default policy passes it through
  112. Element.setHTMLUnsafe: caller-provided TrustedHTMLParserOptions sanitizer is applied with TrustedHTML while default policy is bypassed
  113. Element.setHTMLUnsafe: default policy createParserOptions can disable runScripts
  114. Element.setHTMLUnsafe: default policy createParserOptions can enable runScripts
  115. Element.setHTMLUnsafe: TrustedHTML runs scripts when caller requests runScripts and default policy allows it
  116. Element.appendHTMLUnsafe: default policy createParserOptions sanitizer overrides caller sanitizer dictionary with TrustedHTML
  117. Element.appendHTMLUnsafe: caller-provided sanitizer dictionary is applied with TrustedHTML when default policy passes it through
  118. Element.appendHTMLUnsafe: caller-provided TrustedHTMLParserOptions sanitizer is applied with TrustedHTML while default policy is bypassed
  119. Element.appendHTMLUnsafe: default policy createParserOptions can disable runScripts
  120. Element.appendHTMLUnsafe: default policy createParserOptions can enable runScripts
  121. Element.appendHTMLUnsafe: TrustedHTML runs scripts when caller requests runScripts and default policy allows it
  122. Element.prependHTMLUnsafe: default policy createParserOptions sanitizer overrides caller sanitizer dictionary with TrustedHTML
  123. Element.prependHTMLUnsafe: caller-provided sanitizer dictionary is applied with TrustedHTML when default policy passes it through
  124. Element.prependHTMLUnsafe: caller-provided TrustedHTMLParserOptions sanitizer is applied with TrustedHTML while default policy is bypassed
  125. Element.prependHTMLUnsafe: default policy createParserOptions can disable runScripts
  126. Element.prependHTMLUnsafe: default policy createParserOptions can enable runScripts
  127. Element.prependHTMLUnsafe: TrustedHTML runs scripts when caller requests runScripts and default policy allows it
  128. Element.beforeHTMLUnsafe: default policy createParserOptions sanitizer overrides caller sanitizer dictionary with TrustedHTML
  129. Element.beforeHTMLUnsafe: caller-provided sanitizer dictionary is applied with TrustedHTML when default policy passes it through
  130. Element.beforeHTMLUnsafe: caller-provided TrustedHTMLParserOptions sanitizer is applied with TrustedHTML while default policy is bypassed
  131. Element.beforeHTMLUnsafe: default policy createParserOptions can disable runScripts
  132. Element.beforeHTMLUnsafe: default policy createParserOptions can enable runScripts
  133. Element.beforeHTMLUnsafe: TrustedHTML runs scripts when caller requests runScripts and default policy allows it
  134. Element.afterHTMLUnsafe: default policy createParserOptions sanitizer overrides caller sanitizer dictionary with TrustedHTML
  135. Element.afterHTMLUnsafe: caller-provided sanitizer dictionary is applied with TrustedHTML when default policy passes it through
  136. Element.afterHTMLUnsafe: caller-provided TrustedHTMLParserOptions sanitizer is applied with TrustedHTML while default policy is bypassed
  137. Element.afterHTMLUnsafe: default policy createParserOptions can disable runScripts
  138. Element.afterHTMLUnsafe: default policy createParserOptions can enable runScripts
  139. Element.afterHTMLUnsafe: TrustedHTML runs scripts when caller requests runScripts and default policy allows it
  140. Element.replaceWithHTMLUnsafe: default policy createParserOptions sanitizer overrides caller sanitizer dictionary with TrustedHTML
  141. Element.replaceWithHTMLUnsafe: caller-provided sanitizer dictionary is applied with TrustedHTML when default policy passes it through
  142. Element.replaceWithHTMLUnsafe: caller-provided TrustedHTMLParserOptions sanitizer is applied with TrustedHTML while default policy is bypassed
  143. Element.replaceWithHTMLUnsafe: default policy createParserOptions can disable runScripts
  144. Element.replaceWithHTMLUnsafe: default policy createParserOptions can enable runScripts
  145. Element.replaceWithHTMLUnsafe: TrustedHTML runs scripts when caller requests runScripts and default policy allows it
  146. Element.innerHTML: default policy createParserOptions returning {runScripts: true} enables script execution with TrustedHTML
  147. Element.outerHTML: default policy createParserOptions returning {runScripts: true} enables script execution with TrustedHTML
  148. Element.afterbegin: default policy createParserOptions returning {runScripts: true} enables script execution with TrustedHTML
  149. Element.beforeend: default policy createParserOptions returning {runScripts: true} enables script execution with TrustedHTML
  150. Element.beforebegin: default policy createParserOptions returning {runScripts: true} enables script execution with TrustedHTML
  151. Element.afterend: default policy createParserOptions returning {runScripts: true} enables script execution with TrustedHTML
  152. Element: createContextualFragment with TrustedHTML and createParserOptions(runScripts=false) does not run scripts
  153. Element: createContextualFragment with TrustedHTML runs scripts by default
  154. Document.parseHTMLUnsafe: default policy createParserOptions sanitizer overrides caller sanitizer dictionary with TrustedHTML
  155. Document.parseHTMLUnsafe: caller-provided sanitizer dictionary is applied with TrustedHTML when default policy passes it through
  156. Document.parseHTMLUnsafe: caller-provided TrustedHTMLParserOptions sanitizer is applied with TrustedHTML while default policy is bypassed
  157. innerHTML on XML document does not call createParserOptions or throw TypeError when TrustedHTML is passed
  158. outerHTML on XML document does not call createParserOptions or throw TypeError when TrustedHTML is passed
  159. insertAdjacentHTML on XML document does not call createParserOptions or throw TypeError when TrustedHTML is passed
  160. createContextualFragment on XML document does not call createParserOptions or throw TypeError when TrustedHTML is passed
  161. setHTMLUnsafe on XML document calls createParserOptions and applies sanitizer when TrustedHTML is passed
  162. appendHTMLUnsafe on XML document calls createParserOptions and applies sanitizer when TrustedHTML is passed
  163. prependHTMLUnsafe on XML document calls createParserOptions and applies sanitizer when TrustedHTML is passed
  164. beforeHTMLUnsafe on XML document calls createParserOptions and applies sanitizer when TrustedHTML is passed
  165. afterHTMLUnsafe on XML document calls createParserOptions and applies sanitizer when TrustedHTML is passed
  166. replaceWithHTMLUnsafe on XML document calls createParserOptions and applies sanitizer when TrustedHTML is passed
sethtml-with-trustedtypes-createParserOptions-null.html2 / 2 passingChrome 0 / 20 failedClean
Standing
Clean runner status OK
Chrome
NONE-PASSED 0 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. Named policy createParserOptions returning null throws TypeError
  2. Named policy createParserOptions returning undefined throws TypeError
sethtml-with-trustedtypes-createParserOptions-report-only.html134 / 134 passingChrome 134 / 1340 failedClean
Standing
Clean runner status OK
Chrome
Clean 134 / 134 WPT subtests passing runner status OK
134 passing subtests
  1. Element.setHTMLUnsafe: without default policy, report-only does not throw and reports violation
  2. Element.appendHTMLUnsafe: without default policy, report-only does not throw and reports violation
  3. Element.prependHTMLUnsafe: without default policy, report-only does not throw and reports violation
  4. ShadowRoot.setHTMLUnsafe: without default policy, report-only does not throw and reports violation
  5. ShadowRoot.appendHTMLUnsafe: without default policy, report-only does not throw and reports violation
  6. ShadowRoot.prependHTMLUnsafe: without default policy, report-only does not throw and reports violation
  7. Node.beforeHTMLUnsafe: without default policy, report-only does not throw and reports violation
  8. Node.afterHTMLUnsafe: without default policy, report-only does not throw and reports violation
  9. Node.replaceWithHTMLUnsafe: without default policy, report-only does not throw and reports violation
  10. Element.innerHTML: without default policy, report-only does not throw and reports violation
  11. Document.parseHTMLUnsafe: without default policy, report-only does not throw and reports violation
  12. Initialize default policy
  13. Element.setHTMLUnsafe: default policy createParserOptions with sanitizer does not report violation
  14. Element.setHTMLUnsafe: default policy createParserOptions without sanitizer does not report violation
  15. Element.setHTMLUnsafe: caller-provided TrustedHTMLParserOptions without sanitizer does not report violation
  16. Element.appendHTMLUnsafe: default policy createParserOptions with sanitizer does not report violation
  17. Element.appendHTMLUnsafe: default policy createParserOptions without sanitizer does not report violation
  18. Element.appendHTMLUnsafe: caller-provided TrustedHTMLParserOptions without sanitizer does not report violation
  19. Element.prependHTMLUnsafe: default policy createParserOptions with sanitizer does not report violation
  20. Element.prependHTMLUnsafe: default policy createParserOptions without sanitizer does not report violation
  21. Element.prependHTMLUnsafe: caller-provided TrustedHTMLParserOptions without sanitizer does not report violation
  22. ShadowRoot.setHTMLUnsafe: default policy createParserOptions with sanitizer does not report violation
  23. ShadowRoot.setHTMLUnsafe: default policy createParserOptions without sanitizer does not report violation
  24. ShadowRoot.setHTMLUnsafe: caller-provided TrustedHTMLParserOptions without sanitizer does not report violation
  25. ShadowRoot.appendHTMLUnsafe: default policy createParserOptions with sanitizer does not report violation
  26. ShadowRoot.appendHTMLUnsafe: default policy createParserOptions without sanitizer does not report violation
  27. ShadowRoot.appendHTMLUnsafe: caller-provided TrustedHTMLParserOptions without sanitizer does not report violation
  28. ShadowRoot.prependHTMLUnsafe: default policy createParserOptions with sanitizer does not report violation
  29. ShadowRoot.prependHTMLUnsafe: default policy createParserOptions without sanitizer does not report violation
  30. ShadowRoot.prependHTMLUnsafe: caller-provided TrustedHTMLParserOptions without sanitizer does not report violation
  31. Node.beforeHTMLUnsafe: default policy createParserOptions with sanitizer does not report violation
  32. Node.beforeHTMLUnsafe: default policy createParserOptions without sanitizer does not report violation
  33. Node.beforeHTMLUnsafe: caller-provided TrustedHTMLParserOptions without sanitizer does not report violation
  34. Node.afterHTMLUnsafe: default policy createParserOptions with sanitizer does not report violation
  35. Node.afterHTMLUnsafe: default policy createParserOptions without sanitizer does not report violation
  36. Node.afterHTMLUnsafe: caller-provided TrustedHTMLParserOptions without sanitizer does not report violation
  37. Node.replaceWithHTMLUnsafe: default policy createParserOptions with sanitizer does not report violation
  38. Node.replaceWithHTMLUnsafe: default policy createParserOptions without sanitizer does not report violation
  39. Node.replaceWithHTMLUnsafe: caller-provided TrustedHTMLParserOptions without sanitizer does not report violation
  40. Element.innerHTML: default policy createParserOptions with sanitizer does not report violation
  41. Document.parseHTMLUnsafe: default policy createParserOptions with sanitizer does not report violation
  42. Element.setHTMLUnsafe: default createParserOptions returning null does not throw in report-only mode and reports violation
  43. Element.setHTMLUnsafe: default createParserOptions returning null with TrustedHTML does not throw in report-only mode and reports violation
  44. Element.appendHTMLUnsafe: default createParserOptions returning null does not throw in report-only mode and reports violation
  45. Element.appendHTMLUnsafe: default createParserOptions returning null with TrustedHTML does not throw in report-only mode and reports violation
  46. Element.prependHTMLUnsafe: default createParserOptions returning null does not throw in report-only mode and reports violation
  47. Element.prependHTMLUnsafe: default createParserOptions returning null with TrustedHTML does not throw in report-only mode and reports violation
  48. ShadowRoot.setHTMLUnsafe: default createParserOptions returning null does not throw in report-only mode and reports violation
  49. ShadowRoot.setHTMLUnsafe: default createParserOptions returning null with TrustedHTML does not throw in report-only mode and reports violation
  50. ShadowRoot.appendHTMLUnsafe: default createParserOptions returning null does not throw in report-only mode and reports violation
  51. ShadowRoot.appendHTMLUnsafe: default createParserOptions returning null with TrustedHTML does not throw in report-only mode and reports violation
  52. ShadowRoot.prependHTMLUnsafe: default createParserOptions returning null does not throw in report-only mode and reports violation
  53. ShadowRoot.prependHTMLUnsafe: default createParserOptions returning null with TrustedHTML does not throw in report-only mode and reports violation
  54. Node.beforeHTMLUnsafe: default createParserOptions returning null does not throw in report-only mode and reports violation
  55. Node.beforeHTMLUnsafe: default createParserOptions returning null with TrustedHTML does not throw in report-only mode and reports violation
  56. Node.afterHTMLUnsafe: default createParserOptions returning null does not throw in report-only mode and reports violation
  57. Node.afterHTMLUnsafe: default createParserOptions returning null with TrustedHTML does not throw in report-only mode and reports violation
  58. Node.replaceWithHTMLUnsafe: default createParserOptions returning null does not throw in report-only mode and reports violation
  59. Node.replaceWithHTMLUnsafe: default createParserOptions returning null with TrustedHTML does not throw in report-only mode and reports violation
  60. Element.innerHTML: default createParserOptions returning null with TrustedHTML does not throw in report-only mode and reports violation
  61. Document.parseHTMLUnsafe: default createParserOptions returning null with TrustedHTML does not throw in report-only mode and reports violation
  62. Element.setHTMLUnsafe: default createParserOptions returning null and createHTML returning null reports two violations in report-only mode
  63. Element.appendHTMLUnsafe: default createParserOptions returning null and createHTML returning null reports two violations in report-only mode
  64. Element.prependHTMLUnsafe: default createParserOptions returning null and createHTML returning null reports two violations in report-only mode
  65. ShadowRoot.setHTMLUnsafe: default createParserOptions returning null and createHTML returning null reports two violations in report-only mode
  66. ShadowRoot.appendHTMLUnsafe: default createParserOptions returning null and createHTML returning null reports two violations in report-only mode
  67. ShadowRoot.prependHTMLUnsafe: default createParserOptions returning null and createHTML returning null reports two violations in report-only mode
  68. Node.beforeHTMLUnsafe: default createParserOptions returning null and createHTML returning null reports two violations in report-only mode
  69. Node.afterHTMLUnsafe: default createParserOptions returning null and createHTML returning null reports two violations in report-only mode
  70. Node.replaceWithHTMLUnsafe: default createParserOptions returning null and createHTML returning null reports two violations in report-only mode
  71. Element.innerHTML: default createParserOptions returning null and createHTML returning null reports two violations in report-only mode
  72. Document.parseHTMLUnsafe: default createParserOptions returning null and createHTML returning null reports two violations in report-only mode
  73. Element.setHTMLUnsafe: default createParserOptions returning null and createHTML returning undefined reports two violations in report-only mode
  74. Element.appendHTMLUnsafe: default createParserOptions returning null and createHTML returning undefined reports two violations in report-only mode
  75. Element.prependHTMLUnsafe: default createParserOptions returning null and createHTML returning undefined reports two violations in report-only mode
  76. ShadowRoot.setHTMLUnsafe: default createParserOptions returning null and createHTML returning undefined reports two violations in report-only mode
  77. ShadowRoot.appendHTMLUnsafe: default createParserOptions returning null and createHTML returning undefined reports two violations in report-only mode
  78. ShadowRoot.prependHTMLUnsafe: default createParserOptions returning null and createHTML returning undefined reports two violations in report-only mode
  79. Node.beforeHTMLUnsafe: default createParserOptions returning null and createHTML returning undefined reports two violations in report-only mode
  80. Node.afterHTMLUnsafe: default createParserOptions returning null and createHTML returning undefined reports two violations in report-only mode
  81. Node.replaceWithHTMLUnsafe: default createParserOptions returning null and createHTML returning undefined reports two violations in report-only mode
  82. Element.innerHTML: default createParserOptions returning null and createHTML returning undefined reports two violations in report-only mode
  83. Document.parseHTMLUnsafe: default createParserOptions returning null and createHTML returning undefined reports two violations in report-only mode
  84. Element.setHTMLUnsafe: default createParserOptions returning undefined does not throw in report-only mode and reports violation
  85. Element.setHTMLUnsafe: default createParserOptions returning undefined with TrustedHTML does not throw in report-only mode and reports violation
  86. Element.appendHTMLUnsafe: default createParserOptions returning undefined does not throw in report-only mode and reports violation
  87. Element.appendHTMLUnsafe: default createParserOptions returning undefined with TrustedHTML does not throw in report-only mode and reports violation
  88. Element.prependHTMLUnsafe: default createParserOptions returning undefined does not throw in report-only mode and reports violation
  89. Element.prependHTMLUnsafe: default createParserOptions returning undefined with TrustedHTML does not throw in report-only mode and reports violation
  90. ShadowRoot.setHTMLUnsafe: default createParserOptions returning undefined does not throw in report-only mode and reports violation
  91. ShadowRoot.setHTMLUnsafe: default createParserOptions returning undefined with TrustedHTML does not throw in report-only mode and reports violation
  92. ShadowRoot.appendHTMLUnsafe: default createParserOptions returning undefined does not throw in report-only mode and reports violation
  93. ShadowRoot.appendHTMLUnsafe: default createParserOptions returning undefined with TrustedHTML does not throw in report-only mode and reports violation
  94. ShadowRoot.prependHTMLUnsafe: default createParserOptions returning undefined does not throw in report-only mode and reports violation
  95. ShadowRoot.prependHTMLUnsafe: default createParserOptions returning undefined with TrustedHTML does not throw in report-only mode and reports violation
  96. Node.beforeHTMLUnsafe: default createParserOptions returning undefined does not throw in report-only mode and reports violation
  97. Node.beforeHTMLUnsafe: default createParserOptions returning undefined with TrustedHTML does not throw in report-only mode and reports violation
  98. Node.afterHTMLUnsafe: default createParserOptions returning undefined does not throw in report-only mode and reports violation
  99. Node.afterHTMLUnsafe: default createParserOptions returning undefined with TrustedHTML does not throw in report-only mode and reports violation
  100. Node.replaceWithHTMLUnsafe: default createParserOptions returning undefined does not throw in report-only mode and reports violation
  101. Node.replaceWithHTMLUnsafe: default createParserOptions returning undefined with TrustedHTML does not throw in report-only mode and reports violation
  102. Element.innerHTML: default createParserOptions returning undefined with TrustedHTML does not throw in report-only mode and reports violation
  103. Document.parseHTMLUnsafe: default createParserOptions returning undefined with TrustedHTML does not throw in report-only mode and reports violation
  104. Element.setHTMLUnsafe: default createParserOptions returning undefined and createHTML returning null reports two violations in report-only mode
  105. Element.appendHTMLUnsafe: default createParserOptions returning undefined and createHTML returning null reports two violations in report-only mode
  106. Element.prependHTMLUnsafe: default createParserOptions returning undefined and createHTML returning null reports two violations in report-only mode
  107. ShadowRoot.setHTMLUnsafe: default createParserOptions returning undefined and createHTML returning null reports two violations in report-only mode
  108. ShadowRoot.appendHTMLUnsafe: default createParserOptions returning undefined and createHTML returning null reports two violations in report-only mode
  109. ShadowRoot.prependHTMLUnsafe: default createParserOptions returning undefined and createHTML returning null reports two violations in report-only mode
  110. Node.beforeHTMLUnsafe: default createParserOptions returning undefined and createHTML returning null reports two violations in report-only mode
  111. Node.afterHTMLUnsafe: default createParserOptions returning undefined and createHTML returning null reports two violations in report-only mode
  112. Node.replaceWithHTMLUnsafe: default createParserOptions returning undefined and createHTML returning null reports two violations in report-only mode
  113. Element.innerHTML: default createParserOptions returning undefined and createHTML returning null reports two violations in report-only mode
  114. Document.parseHTMLUnsafe: default createParserOptions returning undefined and createHTML returning null reports two violations in report-only mode
  115. Element.setHTMLUnsafe: default createParserOptions returning undefined and createHTML returning undefined reports two violations in report-only mode
  116. Element.appendHTMLUnsafe: default createParserOptions returning undefined and createHTML returning undefined reports two violations in report-only mode
  117. Element.prependHTMLUnsafe: default createParserOptions returning undefined and createHTML returning undefined reports two violations in report-only mode
  118. ShadowRoot.setHTMLUnsafe: default createParserOptions returning undefined and createHTML returning undefined reports two violations in report-only mode
  119. ShadowRoot.appendHTMLUnsafe: default createParserOptions returning undefined and createHTML returning undefined reports two violations in report-only mode
  120. ShadowRoot.prependHTMLUnsafe: default createParserOptions returning undefined and createHTML returning undefined reports two violations in report-only mode
  121. Node.beforeHTMLUnsafe: default createParserOptions returning undefined and createHTML returning undefined reports two violations in report-only mode
  122. Node.afterHTMLUnsafe: default createParserOptions returning undefined and createHTML returning undefined reports two violations in report-only mode
  123. Node.replaceWithHTMLUnsafe: default createParserOptions returning undefined and createHTML returning undefined reports two violations in report-only mode
  124. Element.innerHTML: default createParserOptions returning undefined and createHTML returning undefined reports two violations in report-only mode
  125. Document.parseHTMLUnsafe: default createParserOptions returning undefined and createHTML returning undefined reports two violations in report-only mode
  126. Element.setHTMLUnsafe: JS exception in createParserOptions is rethrown in report-only mode
  127. Element.appendHTMLUnsafe: JS exception in createParserOptions is rethrown in report-only mode
  128. Element.prependHTMLUnsafe: JS exception in createParserOptions is rethrown in report-only mode
  129. ShadowRoot.setHTMLUnsafe: JS exception in createParserOptions is rethrown in report-only mode
  130. ShadowRoot.appendHTMLUnsafe: JS exception in createParserOptions is rethrown in report-only mode
  131. ShadowRoot.prependHTMLUnsafe: JS exception in createParserOptions is rethrown in report-only mode
  132. Node.beforeHTMLUnsafe: JS exception in createParserOptions is rethrown in report-only mode
  133. Node.afterHTMLUnsafe: JS exception in createParserOptions is rethrown in report-only mode
  134. Node.replaceWithHTMLUnsafe: JS exception in createParserOptions is rethrown in report-only mode
sethtml-with-trustedtypes-createParserOptions.html97 / 97 passingChrome 97 / 970 failedClean
Standing
Clean runner status OK
Chrome
Clean 97 / 97 WPT subtests passing runner status OK
97 passing subtests
  1. ShadowRoot.setHTMLUnsafe: passing a TrustedHTMLParserOptions overrides default policy
  2. ShadowRoot.setHTMLUnsafe: policy with only createParserOptions allows raw strings when sanitizer is present
  3. ShadowRoot.setHTMLUnsafe: policy with only createParserOptions allows raw strings without sanitizer
  4. ShadowRoot.setHTMLUnsafe: TrustedHTMLParserOptions without sanitizer satisfies Trusted Types and does not require createHTML
  5. ShadowRoot.setHTMLUnsafe: exception in default createParserOptions prevents createHTML from running
  6. ShadowRoot.setHTMLUnsafe: default policy createParserOptions with sanitizer prevents createHTML from running
  7. ShadowRoot.setHTMLUnsafe: default policy createParserOptions without sanitizer prevents createHTML from running
  8. ShadowRoot.setHTMLUnsafe: default policy createParserOptions can override runScripts from false to true
  9. ShadowRoot.setHTMLUnsafe: default policy createParserOptions can override runScripts from true to false
  10. ShadowRoot.appendHTMLUnsafe: passing a TrustedHTMLParserOptions overrides default policy
  11. ShadowRoot.appendHTMLUnsafe: policy with only createParserOptions allows raw strings when sanitizer is present
  12. ShadowRoot.appendHTMLUnsafe: policy with only createParserOptions allows raw strings without sanitizer
  13. ShadowRoot.appendHTMLUnsafe: TrustedHTMLParserOptions without sanitizer satisfies Trusted Types and does not require createHTML
  14. ShadowRoot.appendHTMLUnsafe: exception in default createParserOptions prevents createHTML from running
  15. ShadowRoot.appendHTMLUnsafe: default policy createParserOptions with sanitizer prevents createHTML from running
  16. ShadowRoot.appendHTMLUnsafe: default policy createParserOptions without sanitizer prevents createHTML from running
  17. ShadowRoot.appendHTMLUnsafe: default policy createParserOptions can override runScripts from false to true
  18. ShadowRoot.appendHTMLUnsafe: default policy createParserOptions can override runScripts from true to false
  19. ShadowRoot.prependHTMLUnsafe: passing a TrustedHTMLParserOptions overrides default policy
  20. ShadowRoot.prependHTMLUnsafe: policy with only createParserOptions allows raw strings when sanitizer is present
  21. ShadowRoot.prependHTMLUnsafe: policy with only createParserOptions allows raw strings without sanitizer
  22. ShadowRoot.prependHTMLUnsafe: TrustedHTMLParserOptions without sanitizer satisfies Trusted Types and does not require createHTML
  23. ShadowRoot.prependHTMLUnsafe: exception in default createParserOptions prevents createHTML from running
  24. ShadowRoot.prependHTMLUnsafe: default policy createParserOptions with sanitizer prevents createHTML from running
  25. ShadowRoot.prependHTMLUnsafe: default policy createParserOptions without sanitizer prevents createHTML from running
  26. ShadowRoot.prependHTMLUnsafe: default policy createParserOptions can override runScripts from false to true
  27. ShadowRoot.prependHTMLUnsafe: default policy createParserOptions can override runScripts from true to false
  28. Element.setHTMLUnsafe: passing a TrustedHTMLParserOptions overrides default policy
  29. Element.setHTMLUnsafe: policy with only createParserOptions allows raw strings when sanitizer is present
  30. Element.setHTMLUnsafe: policy with only createParserOptions allows raw strings without sanitizer
  31. Element.setHTMLUnsafe: TrustedHTMLParserOptions without sanitizer satisfies Trusted Types and does not require createHTML
  32. Element.setHTMLUnsafe: exception in default createParserOptions prevents createHTML from running
  33. Element.setHTMLUnsafe: default policy createParserOptions with sanitizer prevents createHTML from running
  34. Element.setHTMLUnsafe: default policy createParserOptions without sanitizer prevents createHTML from running
  35. Element.setHTMLUnsafe: default policy createParserOptions can override runScripts from false to true
  36. Element.setHTMLUnsafe: default policy createParserOptions can override runScripts from true to false
  37. Element.appendHTMLUnsafe: passing a TrustedHTMLParserOptions overrides default policy
  38. Element.appendHTMLUnsafe: policy with only createParserOptions allows raw strings when sanitizer is present
  39. Element.appendHTMLUnsafe: policy with only createParserOptions allows raw strings without sanitizer
  40. Element.appendHTMLUnsafe: TrustedHTMLParserOptions without sanitizer satisfies Trusted Types and does not require createHTML
  41. Element.appendHTMLUnsafe: exception in default createParserOptions prevents createHTML from running
  42. Element.appendHTMLUnsafe: default policy createParserOptions with sanitizer prevents createHTML from running
  43. Element.appendHTMLUnsafe: default policy createParserOptions without sanitizer prevents createHTML from running
  44. Element.appendHTMLUnsafe: default policy createParserOptions can override runScripts from false to true
  45. Element.appendHTMLUnsafe: default policy createParserOptions can override runScripts from true to false
  46. Element.prependHTMLUnsafe: passing a TrustedHTMLParserOptions overrides default policy
  47. Element.prependHTMLUnsafe: policy with only createParserOptions allows raw strings when sanitizer is present
  48. Element.prependHTMLUnsafe: policy with only createParserOptions allows raw strings without sanitizer
  49. Element.prependHTMLUnsafe: TrustedHTMLParserOptions without sanitizer satisfies Trusted Types and does not require createHTML
  50. Element.prependHTMLUnsafe: exception in default createParserOptions prevents createHTML from running
  51. Element.prependHTMLUnsafe: default policy createParserOptions with sanitizer prevents createHTML from running
  52. Element.prependHTMLUnsafe: default policy createParserOptions without sanitizer prevents createHTML from running
  53. Element.prependHTMLUnsafe: default policy createParserOptions can override runScripts from false to true
  54. Element.prependHTMLUnsafe: default policy createParserOptions can override runScripts from true to false
  55. Element.beforeHTMLUnsafe: passing a TrustedHTMLParserOptions overrides default policy
  56. Element.beforeHTMLUnsafe: policy with only createParserOptions allows raw strings when sanitizer is present
  57. Element.beforeHTMLUnsafe: policy with only createParserOptions allows raw strings without sanitizer
  58. Element.beforeHTMLUnsafe: TrustedHTMLParserOptions without sanitizer satisfies Trusted Types and does not require createHTML
  59. Element.beforeHTMLUnsafe: exception in default createParserOptions prevents createHTML from running
  60. Element.beforeHTMLUnsafe: default policy createParserOptions with sanitizer prevents createHTML from running
  61. Element.beforeHTMLUnsafe: default policy createParserOptions without sanitizer prevents createHTML from running
  62. Element.beforeHTMLUnsafe: default policy createParserOptions can override runScripts from false to true
  63. Element.beforeHTMLUnsafe: default policy createParserOptions can override runScripts from true to false
  64. Element.afterHTMLUnsafe: passing a TrustedHTMLParserOptions overrides default policy
  65. Element.afterHTMLUnsafe: policy with only createParserOptions allows raw strings when sanitizer is present
  66. Element.afterHTMLUnsafe: policy with only createParserOptions allows raw strings without sanitizer
  67. Element.afterHTMLUnsafe: TrustedHTMLParserOptions without sanitizer satisfies Trusted Types and does not require createHTML
  68. Element.afterHTMLUnsafe: exception in default createParserOptions prevents createHTML from running
  69. Element.afterHTMLUnsafe: default policy createParserOptions with sanitizer prevents createHTML from running
  70. Element.afterHTMLUnsafe: default policy createParserOptions without sanitizer prevents createHTML from running
  71. Element.afterHTMLUnsafe: default policy createParserOptions can override runScripts from false to true
  72. Element.afterHTMLUnsafe: default policy createParserOptions can override runScripts from true to false
  73. Element.replaceWithHTMLUnsafe: passing a TrustedHTMLParserOptions overrides default policy
  74. Element.replaceWithHTMLUnsafe: policy with only createParserOptions allows raw strings when sanitizer is present
  75. Element.replaceWithHTMLUnsafe: policy with only createParserOptions allows raw strings without sanitizer
  76. Element.replaceWithHTMLUnsafe: TrustedHTMLParserOptions without sanitizer satisfies Trusted Types and does not require createHTML
  77. Element.replaceWithHTMLUnsafe: exception in default createParserOptions prevents createHTML from running
  78. Element.replaceWithHTMLUnsafe: default policy createParserOptions with sanitizer prevents createHTML from running
  79. Element.replaceWithHTMLUnsafe: default policy createParserOptions without sanitizer prevents createHTML from running
  80. Element.replaceWithHTMLUnsafe: default policy createParserOptions can override runScripts from false to true
  81. Element.replaceWithHTMLUnsafe: default policy createParserOptions can override runScripts from true to false
  82. TrustedTypePolicy.createParserOptions forwards extra arguments to callback
  83. TrustedTypePolicy.createParserOptions callback receives converted options dictionary
  84. TrustedHTMLParserOptions applies runScripts option without exposing public members
  85. TrustedTypePolicy.createParserOptions returning something other than an object (number: 0) throws a TypeError
  86. Element.setHTMLUnsafe: default policy createParserOptions returning something other than an object (number: 0) throws a TypeError
  87. TrustedTypePolicy.createParserOptions returning something other than an object (number: 123) throws a TypeError
  88. Element.setHTMLUnsafe: default policy createParserOptions returning something other than an object (number: 123) throws a TypeError
  89. TrustedTypePolicy.createParserOptions returning something other than an object (boolean: true) throws a TypeError
  90. Element.setHTMLUnsafe: default policy createParserOptions returning something other than an object (boolean: true) throws a TypeError
  91. TrustedTypePolicy.createParserOptions returning something other than an object (boolean: false) throws a TypeError
  92. Element.setHTMLUnsafe: default policy createParserOptions returning something other than an object (boolean: false) throws a TypeError
  93. TrustedTypePolicy.createParserOptions returning something other than an object (string: "string") throws a TypeError
  94. Element.setHTMLUnsafe: default policy createParserOptions returning something other than an object (string: "string") throws a TypeError
  95. Document.parseHTMLUnsafe: TrustedHTMLParserOptions without sanitizer satisfies Trusted Types and does not require createHTML
  96. Document.parseHTMLUnsafe: default policy createParserOptions without sanitizer prevents createHTML from running
  97. Element.setHTMLUnsafe: default policy without createParserOptions falls back to createHTML
sethtml-with-trustedtypes-immutable.html16 / 16 passingChrome 16 / 160 failedClean
Standing
Clean runner status OK
Chrome
Clean 16 / 16 WPT subtests passing runner status OK
16 passing subtests
  1. setHTMLUnsafe: createParserOptions doesn't mutate original object
  2. setHTMLUnsafe: createParserOptions doesn't mutate sanitizer object
  3. appendHTMLUnsafe: createParserOptions doesn't mutate original object
  4. appendHTMLUnsafe: createParserOptions doesn't mutate sanitizer object
  5. prependHTMLUnsafe: createParserOptions doesn't mutate original object
  6. prependHTMLUnsafe: createParserOptions doesn't mutate sanitizer object
  7. beforeHTMLUnsafe: createParserOptions doesn't mutate original object
  8. beforeHTMLUnsafe: createParserOptions doesn't mutate sanitizer object
  9. afterHTMLUnsafe: createParserOptions doesn't mutate original object
  10. afterHTMLUnsafe: createParserOptions doesn't mutate sanitizer object
  11. replaceWithHTMLUnsafe: createParserOptions doesn't mutate original object
  12. replaceWithHTMLUnsafe: createParserOptions doesn't mutate sanitizer object
  13. TrustedHTMLParserOptions interface has no public members
  14. TrustedHTMLParserOptions with config input applies sanitization without public members
  15. TrustedHTMLParserOptions clone testing with Sanitizer object input
  16. TrustedHTMLParserOptions with Preset string input
sethtml-with-trustedtypes.html253 / 253 passingChrome 253 / 2530 failedClean
Standing
Clean runner status OK
Chrome
Clean 253 / 253 WPT subtests passing runner status OK
253 passing subtests
  1. ShadowRoot.setHTMLUnsafe: createParserOptions can inject a sanitizer config
  2. ShadowRoot.setHTMLUnsafe: createParserOptions receives correct type and sink name
  3. ShadowRoot.setHTMLUnsafe: createParserOptions can inject a sanitizer
  4. ShadowRoot.setHTMLUnsafe: createParserOptions can override a sanitizer config
  5. ShadowRoot.setHTMLUnsafe: createParserOptions can remove a sanitizer
  6. ShadowRoot.setHTMLUnsafe: createParserOptions returning null fails
  7. ShadowRoot.setHTMLUnsafe: createParserOptions returning undefined fails
  8. ShadowRoot.setHTMLUnsafe: createParserOptions returning 0 fails
  9. ShadowRoot.setHTMLUnsafe: createParserOptions returning 123 fails
  10. ShadowRoot.setHTMLUnsafe: createParserOptions returning "foo" fails
  11. ShadowRoot.setHTMLUnsafe: createParserOptions returning true fails
  12. ShadowRoot.setHTMLUnsafe: createParserOptions returning false fails
  13. ShadowRoot.appendHTMLUnsafe: createParserOptions can inject a sanitizer config
  14. ShadowRoot.appendHTMLUnsafe: createParserOptions receives correct type and sink name
  15. ShadowRoot.appendHTMLUnsafe: createParserOptions can inject a sanitizer
  16. ShadowRoot.appendHTMLUnsafe: createParserOptions can override a sanitizer config
  17. ShadowRoot.appendHTMLUnsafe: createParserOptions can remove a sanitizer
  18. ShadowRoot.appendHTMLUnsafe: createParserOptions returning null fails
  19. ShadowRoot.appendHTMLUnsafe: createParserOptions returning undefined fails
  20. ShadowRoot.appendHTMLUnsafe: createParserOptions returning 0 fails
  21. ShadowRoot.appendHTMLUnsafe: createParserOptions returning 123 fails
  22. ShadowRoot.appendHTMLUnsafe: createParserOptions returning "foo" fails
  23. ShadowRoot.appendHTMLUnsafe: createParserOptions returning true fails
  24. ShadowRoot.appendHTMLUnsafe: createParserOptions returning false fails
  25. ShadowRoot.prependHTMLUnsafe: createParserOptions can inject a sanitizer config
  26. ShadowRoot.prependHTMLUnsafe: createParserOptions receives correct type and sink name
  27. ShadowRoot.prependHTMLUnsafe: createParserOptions can inject a sanitizer
  28. ShadowRoot.prependHTMLUnsafe: createParserOptions can override a sanitizer config
  29. ShadowRoot.prependHTMLUnsafe: createParserOptions can remove a sanitizer
  30. ShadowRoot.prependHTMLUnsafe: createParserOptions returning null fails
  31. ShadowRoot.prependHTMLUnsafe: createParserOptions returning undefined fails
  32. ShadowRoot.prependHTMLUnsafe: createParserOptions returning 0 fails
  33. ShadowRoot.prependHTMLUnsafe: createParserOptions returning 123 fails
  34. ShadowRoot.prependHTMLUnsafe: createParserOptions returning "foo" fails
  35. ShadowRoot.prependHTMLUnsafe: createParserOptions returning true fails
  36. ShadowRoot.prependHTMLUnsafe: createParserOptions returning false fails
  37. ShadowRoot.innerHTML: createParserOptions can inject a sanitizer config
  38. ShadowRoot.innerHTML: createParserOptions receives correct type and sink name
  39. ShadowRoot.innerHTML: createParserOptions can inject a sanitizer
  40. ShadowRoot.innerHTML: createParserOptions returning null fails
  41. ShadowRoot.innerHTML: createParserOptions returning undefined fails
  42. ShadowRoot.innerHTML: createParserOptions returning 0 fails
  43. ShadowRoot.innerHTML: createParserOptions returning 123 fails
  44. ShadowRoot.innerHTML: createParserOptions returning "foo" fails
  45. ShadowRoot.innerHTML: createParserOptions returning true fails
  46. ShadowRoot.innerHTML: createParserOptions returning false fails
  47. ShadowRoot.setHTMLUnsafe: createParserOptions can override runScripts from true to false
  48. ShadowRoot.setHTMLUnsafe: createParserOptions can override runScripts from false to true
  49. ShadowRoot.setHTMLUnsafe: createParserOptions with sanitizer prevents createHTML from running
  50. ShadowRoot.appendHTMLUnsafe: createParserOptions can override runScripts from true to false
  51. ShadowRoot.appendHTMLUnsafe: createParserOptions can override runScripts from false to true
  52. ShadowRoot.appendHTMLUnsafe: createParserOptions with sanitizer prevents createHTML from running
  53. ShadowRoot.prependHTMLUnsafe: createParserOptions can override runScripts from true to false
  54. ShadowRoot.prependHTMLUnsafe: createParserOptions can override runScripts from false to true
  55. ShadowRoot.prependHTMLUnsafe: createParserOptions with sanitizer prevents createHTML from running
  56. ShadowRoot.innerHTML: createParserOptions returning {runScripts: true} enables script execution
  57. ShadowRoot.setHTMLUnsafe: exception in createParserOptions is rethrown and prevents createHTML
  58. ShadowRoot.appendHTMLUnsafe: exception in createParserOptions is rethrown and prevents createHTML
  59. ShadowRoot.prependHTMLUnsafe: exception in createParserOptions is rethrown and prevents createHTML
  60. ShadowRoot.innerHTML: exception in createParserOptions is rethrown and prevents createHTML
  61. Element.setHTMLUnsafe: createParserOptions can inject a sanitizer config
  62. Element.setHTMLUnsafe: createParserOptions receives correct type and sink name
  63. Element.setHTMLUnsafe: createParserOptions can inject a sanitizer
  64. Element.setHTMLUnsafe: createParserOptions can override a sanitizer config
  65. Element.setHTMLUnsafe: createParserOptions can remove a sanitizer
  66. Element.setHTMLUnsafe: createParserOptions returning null fails
  67. Element.setHTMLUnsafe: createParserOptions returning undefined fails
  68. Element.setHTMLUnsafe: createParserOptions returning 0 fails
  69. Element.setHTMLUnsafe: createParserOptions returning 123 fails
  70. Element.setHTMLUnsafe: createParserOptions returning "foo" fails
  71. Element.setHTMLUnsafe: createParserOptions returning true fails
  72. Element.setHTMLUnsafe: createParserOptions returning false fails
  73. Element.appendHTMLUnsafe: createParserOptions can inject a sanitizer config
  74. Element.appendHTMLUnsafe: createParserOptions receives correct type and sink name
  75. Element.appendHTMLUnsafe: createParserOptions can inject a sanitizer
  76. Element.appendHTMLUnsafe: createParserOptions can override a sanitizer config
  77. Element.appendHTMLUnsafe: createParserOptions can remove a sanitizer
  78. Element.appendHTMLUnsafe: createParserOptions returning null fails
  79. Element.appendHTMLUnsafe: createParserOptions returning undefined fails
  80. Element.appendHTMLUnsafe: createParserOptions returning 0 fails
  81. Element.appendHTMLUnsafe: createParserOptions returning 123 fails
  82. Element.appendHTMLUnsafe: createParserOptions returning "foo" fails
  83. Element.appendHTMLUnsafe: createParserOptions returning true fails
  84. Element.appendHTMLUnsafe: createParserOptions returning false fails
  85. Element.prependHTMLUnsafe: createParserOptions can inject a sanitizer config
  86. Element.prependHTMLUnsafe: createParserOptions receives correct type and sink name
  87. Element.prependHTMLUnsafe: createParserOptions can inject a sanitizer
  88. Element.prependHTMLUnsafe: createParserOptions can override a sanitizer config
  89. Element.prependHTMLUnsafe: createParserOptions can remove a sanitizer
  90. Element.prependHTMLUnsafe: createParserOptions returning null fails
  91. Element.prependHTMLUnsafe: createParserOptions returning undefined fails
  92. Element.prependHTMLUnsafe: createParserOptions returning 0 fails
  93. Element.prependHTMLUnsafe: createParserOptions returning 123 fails
  94. Element.prependHTMLUnsafe: createParserOptions returning "foo" fails
  95. Element.prependHTMLUnsafe: createParserOptions returning true fails
  96. Element.prependHTMLUnsafe: createParserOptions returning false fails
  97. Element.beforeHTMLUnsafe: createParserOptions can inject a sanitizer config
  98. Element.beforeHTMLUnsafe: createParserOptions receives correct type and sink name
  99. Element.beforeHTMLUnsafe: createParserOptions can inject a sanitizer
  100. Element.beforeHTMLUnsafe: createParserOptions can override a sanitizer config
  101. Element.beforeHTMLUnsafe: createParserOptions can remove a sanitizer
  102. Element.beforeHTMLUnsafe: createParserOptions returning null fails
  103. Element.beforeHTMLUnsafe: createParserOptions returning undefined fails
  104. Element.beforeHTMLUnsafe: createParserOptions returning 0 fails
  105. Element.beforeHTMLUnsafe: createParserOptions returning 123 fails
  106. Element.beforeHTMLUnsafe: createParserOptions returning "foo" fails
  107. Element.beforeHTMLUnsafe: createParserOptions returning true fails
  108. Element.beforeHTMLUnsafe: createParserOptions returning false fails
  109. Element.afterHTMLUnsafe: createParserOptions can inject a sanitizer config
  110. Element.afterHTMLUnsafe: createParserOptions receives correct type and sink name
  111. Element.afterHTMLUnsafe: createParserOptions can inject a sanitizer
  112. Element.afterHTMLUnsafe: createParserOptions can override a sanitizer config
  113. Element.afterHTMLUnsafe: createParserOptions can remove a sanitizer
  114. Element.afterHTMLUnsafe: createParserOptions returning null fails
  115. Element.afterHTMLUnsafe: createParserOptions returning undefined fails
  116. Element.afterHTMLUnsafe: createParserOptions returning 0 fails
  117. Element.afterHTMLUnsafe: createParserOptions returning 123 fails
  118. Element.afterHTMLUnsafe: createParserOptions returning "foo" fails
  119. Element.afterHTMLUnsafe: createParserOptions returning true fails
  120. Element.afterHTMLUnsafe: createParserOptions returning false fails
  121. Element.replaceWithHTMLUnsafe: createParserOptions can inject a sanitizer config
  122. Element.replaceWithHTMLUnsafe: createParserOptions receives correct type and sink name
  123. Element.replaceWithHTMLUnsafe: createParserOptions can inject a sanitizer
  124. Element.replaceWithHTMLUnsafe: createParserOptions can override a sanitizer config
  125. Element.replaceWithHTMLUnsafe: createParserOptions can remove a sanitizer
  126. Element.replaceWithHTMLUnsafe: createParserOptions returning null fails
  127. Element.replaceWithHTMLUnsafe: createParserOptions returning undefined fails
  128. Element.replaceWithHTMLUnsafe: createParserOptions returning 0 fails
  129. Element.replaceWithHTMLUnsafe: createParserOptions returning 123 fails
  130. Element.replaceWithHTMLUnsafe: createParserOptions returning "foo" fails
  131. Element.replaceWithHTMLUnsafe: createParserOptions returning true fails
  132. Element.replaceWithHTMLUnsafe: createParserOptions returning false fails
  133. Element.innerHTML: createParserOptions can inject a sanitizer config
  134. Element.innerHTML: createParserOptions receives correct type and sink name
  135. Element.innerHTML: createParserOptions can inject a sanitizer
  136. Element.innerHTML: createParserOptions returning null fails
  137. Element.innerHTML: createParserOptions returning undefined fails
  138. Element.innerHTML: createParserOptions returning 0 fails
  139. Element.innerHTML: createParserOptions returning 123 fails
  140. Element.innerHTML: createParserOptions returning "foo" fails
  141. Element.innerHTML: createParserOptions returning true fails
  142. Element.innerHTML: createParserOptions returning false fails
  143. Element.outerHTML: createParserOptions can inject a sanitizer config
  144. Element.outerHTML: createParserOptions receives correct type and sink name
  145. Element.outerHTML: createParserOptions can inject a sanitizer
  146. Element.outerHTML: createParserOptions returning null fails
  147. Element.outerHTML: createParserOptions returning undefined fails
  148. Element.outerHTML: createParserOptions returning 0 fails
  149. Element.outerHTML: createParserOptions returning 123 fails
  150. Element.outerHTML: createParserOptions returning "foo" fails
  151. Element.outerHTML: createParserOptions returning true fails
  152. Element.outerHTML: createParserOptions returning false fails
  153. Element.createContextualFragment: createParserOptions can inject a sanitizer config
  154. Element.createContextualFragment: createParserOptions receives correct type and sink name
  155. Element.createContextualFragment: createParserOptions can inject a sanitizer
  156. Element.createContextualFragment: createParserOptions returning null fails
  157. Element.createContextualFragment: createParserOptions returning undefined fails
  158. Element.createContextualFragment: createParserOptions returning 0 fails
  159. Element.createContextualFragment: createParserOptions returning 123 fails
  160. Element.createContextualFragment: createParserOptions returning "foo" fails
  161. Element.createContextualFragment: createParserOptions returning true fails
  162. Element.createContextualFragment: createParserOptions returning false fails
  163. Element.afterbegin: createParserOptions can inject a sanitizer config
  164. Element.afterbegin: createParserOptions receives correct type and sink name
  165. Element.afterbegin: createParserOptions can inject a sanitizer
  166. Element.afterbegin: createParserOptions returning null fails
  167. Element.afterbegin: createParserOptions returning undefined fails
  168. Element.afterbegin: createParserOptions returning 0 fails
  169. Element.afterbegin: createParserOptions returning 123 fails
  170. Element.afterbegin: createParserOptions returning "foo" fails
  171. Element.afterbegin: createParserOptions returning true fails
  172. Element.afterbegin: createParserOptions returning false fails
  173. Element.beforeend: createParserOptions can inject a sanitizer config
  174. Element.beforeend: createParserOptions receives correct type and sink name
  175. Element.beforeend: createParserOptions can inject a sanitizer
  176. Element.beforeend: createParserOptions returning null fails
  177. Element.beforeend: createParserOptions returning undefined fails
  178. Element.beforeend: createParserOptions returning 0 fails
  179. Element.beforeend: createParserOptions returning 123 fails
  180. Element.beforeend: createParserOptions returning "foo" fails
  181. Element.beforeend: createParserOptions returning true fails
  182. Element.beforeend: createParserOptions returning false fails
  183. Element.beforebegin: createParserOptions can inject a sanitizer config
  184. Element.beforebegin: createParserOptions receives correct type and sink name
  185. Element.beforebegin: createParserOptions can inject a sanitizer
  186. Element.beforebegin: createParserOptions returning null fails
  187. Element.beforebegin: createParserOptions returning undefined fails
  188. Element.beforebegin: createParserOptions returning 0 fails
  189. Element.beforebegin: createParserOptions returning 123 fails
  190. Element.beforebegin: createParserOptions returning "foo" fails
  191. Element.beforebegin: createParserOptions returning true fails
  192. Element.beforebegin: createParserOptions returning false fails
  193. Element.afterend: createParserOptions can inject a sanitizer config
  194. Element.afterend: createParserOptions receives correct type and sink name
  195. Element.afterend: createParserOptions can inject a sanitizer
  196. Element.afterend: createParserOptions returning null fails
  197. Element.afterend: createParserOptions returning undefined fails
  198. Element.afterend: createParserOptions returning 0 fails
  199. Element.afterend: createParserOptions returning 123 fails
  200. Element.afterend: createParserOptions returning "foo" fails
  201. Element.afterend: createParserOptions returning true fails
  202. Element.afterend: createParserOptions returning false fails
  203. Element.parseHTMLUnsafe: createParserOptions can inject a sanitizer config
  204. Element.parseHTMLUnsafe: createParserOptions receives correct type and sink name
  205. Element.parseHTMLUnsafe: createParserOptions can inject a sanitizer
  206. Element.parseHTMLUnsafe: createParserOptions can override a sanitizer config
  207. Element.parseHTMLUnsafe: createParserOptions can remove a sanitizer
  208. Element.parseHTMLUnsafe: createParserOptions returning null fails
  209. Element.parseHTMLUnsafe: createParserOptions returning undefined fails
  210. Element.parseHTMLUnsafe: createParserOptions returning 0 fails
  211. Element.parseHTMLUnsafe: createParserOptions returning 123 fails
  212. Element.parseHTMLUnsafe: createParserOptions returning "foo" fails
  213. Element.parseHTMLUnsafe: createParserOptions returning true fails
  214. Element.parseHTMLUnsafe: createParserOptions returning false fails
  215. Element.setHTMLUnsafe: createParserOptions can override runScripts from true to false
  216. Element.setHTMLUnsafe: createParserOptions can override runScripts from false to true
  217. Element.setHTMLUnsafe: createParserOptions with sanitizer prevents createHTML from running
  218. Element.appendHTMLUnsafe: createParserOptions can override runScripts from true to false
  219. Element.appendHTMLUnsafe: createParserOptions can override runScripts from false to true
  220. Element.appendHTMLUnsafe: createParserOptions with sanitizer prevents createHTML from running
  221. Element.prependHTMLUnsafe: createParserOptions can override runScripts from true to false
  222. Element.prependHTMLUnsafe: createParserOptions can override runScripts from false to true
  223. Element.prependHTMLUnsafe: createParserOptions with sanitizer prevents createHTML from running
  224. Element.beforeHTMLUnsafe: createParserOptions can override runScripts from true to false
  225. Element.beforeHTMLUnsafe: createParserOptions can override runScripts from false to true
  226. Element.beforeHTMLUnsafe: createParserOptions with sanitizer prevents createHTML from running
  227. Element.afterHTMLUnsafe: createParserOptions can override runScripts from true to false
  228. Element.afterHTMLUnsafe: createParserOptions can override runScripts from false to true
  229. Element.afterHTMLUnsafe: createParserOptions with sanitizer prevents createHTML from running
  230. Element.replaceWithHTMLUnsafe: createParserOptions can override runScripts from true to false
  231. Element.replaceWithHTMLUnsafe: createParserOptions can override runScripts from false to true
  232. Element.replaceWithHTMLUnsafe: createParserOptions with sanitizer prevents createHTML from running
  233. Element.innerHTML: createParserOptions returning {runScripts: true} enables script execution
  234. Element.outerHTML: createParserOptions returning {runScripts: true} enables script execution
  235. Element.afterbegin: createParserOptions returning {runScripts: true} enables script execution
  236. Element.beforeend: createParserOptions returning {runScripts: true} enables script execution
  237. Element.beforebegin: createParserOptions returning {runScripts: true} enables script execution
  238. Element.afterend: createParserOptions returning {runScripts: true} enables script execution
  239. Element: createContextualFragment with createParserOptions(runScripts=false) does not run scripts
  240. Element: createContextualFragment runs scripts by default
  241. Element.setHTMLUnsafe: exception in createParserOptions is rethrown and prevents createHTML
  242. Element.appendHTMLUnsafe: exception in createParserOptions is rethrown and prevents createHTML
  243. Element.prependHTMLUnsafe: exception in createParserOptions is rethrown and prevents createHTML
  244. Element.beforeHTMLUnsafe: exception in createParserOptions is rethrown and prevents createHTML
  245. Element.afterHTMLUnsafe: exception in createParserOptions is rethrown and prevents createHTML
  246. Element.replaceWithHTMLUnsafe: exception in createParserOptions is rethrown and prevents createHTML
  247. Element.innerHTML: exception in createParserOptions is rethrown and prevents createHTML
  248. Element.outerHTML: exception in createParserOptions is rethrown and prevents createHTML
  249. Element.createContextualFragment: exception in createParserOptions is rethrown and prevents createHTML
  250. Element.afterbegin: exception in createParserOptions is rethrown and prevents createHTML
  251. Element.beforeend: exception in createParserOptions is rethrown and prevents createHTML
  252. Element.beforebegin: exception in createParserOptions is rethrown and prevents createHTML
  253. Element.afterend: exception in createParserOptions is rethrown and prevents createHTML
sethtml-xml-document-sanitizer-report-only.html21 / 21 passingChrome 21 / 210 failedClean
Standing
Clean runner status OK
Chrome
Clean 21 / 21 WPT subtests passing runner status OK
21 passing subtests
  1. innerHTML on XML document does not call createParserOptions or throw TypeError in report-only mode and reports violation when createHTML is missing
  2. outerHTML on XML document does not call createParserOptions or throw TypeError in report-only mode and reports violation when createHTML is missing
  3. insertAdjacentHTML on XML document does not call createParserOptions or throw TypeError in report-only mode and reports violation when createHTML is missing
  4. createContextualFragment on XML document does not call createParserOptions or throw TypeError in report-only mode and reports violation when createHTML is missing
  5. setHTMLUnsafe on XML document does not report violation in report-only mode when createParserOptions has sanitizer
  6. setHTMLUnsafe on XML document does not report violation in report-only mode when createParserOptions has no sanitizer
  7. appendHTMLUnsafe on XML document does not report violation in report-only mode when createParserOptions has sanitizer
  8. appendHTMLUnsafe on XML document does not report violation in report-only mode when createParserOptions has no sanitizer
  9. prependHTMLUnsafe on XML document does not report violation in report-only mode when createParserOptions has sanitizer
  10. prependHTMLUnsafe on XML document does not report violation in report-only mode when createParserOptions has no sanitizer
  11. beforeHTMLUnsafe on XML document does not report violation in report-only mode when createParserOptions has sanitizer
  12. beforeHTMLUnsafe on XML document does not report violation in report-only mode when createParserOptions has no sanitizer
  13. afterHTMLUnsafe on XML document does not report violation in report-only mode when createParserOptions has sanitizer
  14. afterHTMLUnsafe on XML document does not report violation in report-only mode when createParserOptions has no sanitizer
  15. replaceWithHTMLUnsafe on XML document does not report violation in report-only mode when createParserOptions has sanitizer
  16. replaceWithHTMLUnsafe on XML document does not report violation in report-only mode when createParserOptions has no sanitizer
  17. innerHTML on XML document created by DOMParser does not call createParserOptions and reports violation when createHTML is missing
  18. innerHTML on XML document executes createHTML, does not call createParserOptions, and does not report violation when default policy provides both
  19. outerHTML on XML document executes createHTML, does not call createParserOptions, and does not report violation when default policy provides both
  20. insertAdjacentHTML on XML document executes createHTML, does not call createParserOptions, and does not report violation when default policy provides both
  21. createContextualFragment on XML document executes createHTML, does not call createParserOptions, and does not report violation when default policy provides both
sethtml-xml-document-sanitizer.html26 / 26 passingChrome 26 / 260 failedClean
Standing
Clean runner status OK
Chrome
Clean 26 / 26 WPT subtests passing runner status OK
26 passing subtests
  1. innerHTML on XML document throws TypeError without calling createParserOptions if default policy provides only a sanitizer without createHTML
  2. outerHTML on XML document throws TypeError without calling createParserOptions if default policy provides only a sanitizer without createHTML
  3. insertAdjacentHTML on XML document throws TypeError without calling createParserOptions if default policy provides only a sanitizer without createHTML
  4. createContextualFragment on XML document throws TypeError without calling createParserOptions if default policy provides only a sanitizer without createHTML
  5. innerHTML on XML document created by DOMParser throws TypeError without calling createParserOptions if default policy provides only a sanitizer without createHTML
  6. innerHTML on XML document from XHR response throws TypeError without calling createParserOptions if default policy provides only a sanitizer without createHTML
  7. setHTMLUnsafe on XML document does not throw TypeError and applies createParserOptions sanitizer
  8. setHTMLUnsafe on XML document does not throw TypeError when createParserOptions has no sanitizer
  9. appendHTMLUnsafe on XML document does not throw TypeError and applies createParserOptions sanitizer
  10. appendHTMLUnsafe on XML document does not throw TypeError when createParserOptions has no sanitizer
  11. prependHTMLUnsafe on XML document does not throw TypeError and applies createParserOptions sanitizer
  12. prependHTMLUnsafe on XML document does not throw TypeError when createParserOptions has no sanitizer
  13. beforeHTMLUnsafe on XML document does not throw TypeError and applies createParserOptions sanitizer
  14. beforeHTMLUnsafe on XML document does not throw TypeError when createParserOptions has no sanitizer
  15. afterHTMLUnsafe on XML document does not throw TypeError and applies createParserOptions sanitizer
  16. afterHTMLUnsafe on XML document does not throw TypeError when createParserOptions has no sanitizer
  17. replaceWithHTMLUnsafe on XML document does not throw TypeError and applies createParserOptions sanitizer
  18. replaceWithHTMLUnsafe on XML document does not throw TypeError when createParserOptions has no sanitizer
  19. innerHTML on XML document executes createHTML and does not call createParserOptions when default policy provides both
  20. outerHTML on XML document executes createHTML and does not call createParserOptions when default policy provides both
  21. insertAdjacentHTML on XML document executes createHTML and does not call createParserOptions when default policy provides both
  22. createContextualFragment on XML document executes createHTML and does not call createParserOptions when default policy provides both
  23. innerHTML on XML document created by DOMParser executes createHTML and does not call createParserOptions when default policy provides both
  24. innerHTML on XML document from XHR response executes createHTML and does not call createParserOptions when default policy provides both
  25. innerHTML on XML document does not invoke throwing createParserOptions
  26. innerHTML on XML document accepts TrustedHTML without calling createParserOptions or throwing even if createHTML is missing
sethtml-xml-document.html4 / 8 passingChrome 8 / 84 failedWith failures
Standing
With failures runner status OK
Chrome
Clean 8 / 8 WPT subtests passing runner status OK
  1. FAILTestcase #0, shadow inside xmlDoc, shadowroot.setHTML("Hello!")
    NotSupportedError
  2. FAILTestcase #1, shadow inside xmlDoc, shadowroot.setHTML("<br>")
    NotSupportedError
  3. FAILTestcase #2, shadow inside xmlDoc, shadowroot.setHTML("<p>Hi</p>")
    NotSupportedError
  4. FAILTestcase #3, shadow inside xmlDoc, shadowroot.setHTML("<iframe></iframe><p>text</p>")
    NotSupportedError
4 passing subtests
  1. Testcase #0 with xmlDoc.setHTML("Hello!")
  2. Testcase #1 with xmlDoc.setHTML("<br>")
  3. Testcase #2 with xmlDoc.setHTML("<p>Hi</p>")
  4. Testcase #3 with xmlDoc.setHTML("<iframe></iframe><p>text</p>")
sethtmlunsafe-toplevel-template-script.html10 / 10 passingChrome 10 / 100 failedClean
Standing
Clean runner status OK
Chrome
Clean 10 / 10 WPT subtests passing runner status OK
10 passing subtests
  1. Top-level template and script testcases from sub.dat
  2. Top-level <script> parsed through setHTMLUnsafe() without runScripts does not execute
  3. Top-level <script> parsed through setHTMLUnsafe() with runScripts: true executes
  4. Testcase #0 [setHTMLUnsafe], "<template><b>Hello</b></template>", config: "{}"
  5. Testcase #1 [setHTMLUnsafe], "<template shadowrootmode="open"><span>Inside</span></template>", config: "{}"
  6. Testcase #2 [setHTMLUnsafe], "<template><b>Hello</b></template>", config: "{ "replaceWithChildrenElements": ["template"] }"
  7. Testcase #3 [setHTMLUnsafe], "<template><b>Hello</b></template>", config: "{ "removeElements": ["template"] }"
  8. Testcase #4 [setHTMLUnsafe], "<script>alert(1);</script>", config: "{}"
  9. Testcase #5 [setHTMLUnsafe], "<script><b>Hello</b></script>", config: "{ "replaceWithChildrenElements": ["script"] }"
  10. Testcase #6 [setHTMLUnsafe], "<template><p>Text</p><div>More</div></template>", config: "{}"
trustedhtml-unvetted-parser-options-default-createHTML.html180 / 180 passingChrome 180 / 1800 failedClean
Standing
Clean runner status OK
Chrome
Clean 180 / 180 WPT subtests passing runner status OK
180 passing subtests
  1. Element.setHTMLUnsafe: string with a sanitizer config throws without calling createHTML
  2. Element.setHTMLUnsafe: TrustedHTML with a sanitizer config throws
  3. Element.setHTMLUnsafe: string with a sanitizer config without effect throws without calling createHTML
  4. Element.setHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
  5. Element.setHTMLUnsafe: string with a Sanitizer throws without calling createHTML
  6. Element.setHTMLUnsafe: TrustedHTML with a Sanitizer throws
  7. Element.setHTMLUnsafe: string with the "default" sanitizer preset throws without calling createHTML
  8. Element.setHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
  9. Element.setHTMLUnsafe: string with a sanitizer config and runScripts false throws without calling createHTML
  10. Element.setHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
  11. Element.setHTMLUnsafe: string with runScripts true throws without calling createHTML
  12. Element.setHTMLUnsafe: TrustedHTML with runScripts true throws
  13. Element.setHTMLUnsafe: string with runScripts true and an empty sanitizer config throws without calling createHTML
  14. Element.setHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
  15. Element.setHTMLUnsafe: string with no options is converted by createHTML
  16. Element.setHTMLUnsafe: string with an empty dictionary is converted by createHTML
  17. Element.setHTMLUnsafe: string with an empty sanitizer config is converted by createHTML
  18. Element.setHTMLUnsafe: string with runScripts false is converted by createHTML
  19. Element.appendHTMLUnsafe: string with a sanitizer config throws without calling createHTML
  20. Element.appendHTMLUnsafe: TrustedHTML with a sanitizer config throws
  21. Element.appendHTMLUnsafe: string with a sanitizer config without effect throws without calling createHTML
  22. Element.appendHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
  23. Element.appendHTMLUnsafe: string with a Sanitizer throws without calling createHTML
  24. Element.appendHTMLUnsafe: TrustedHTML with a Sanitizer throws
  25. Element.appendHTMLUnsafe: string with the "default" sanitizer preset throws without calling createHTML
  26. Element.appendHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
  27. Element.appendHTMLUnsafe: string with a sanitizer config and runScripts false throws without calling createHTML
  28. Element.appendHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
  29. Element.appendHTMLUnsafe: string with runScripts true throws without calling createHTML
  30. Element.appendHTMLUnsafe: TrustedHTML with runScripts true throws
  31. Element.appendHTMLUnsafe: string with runScripts true and an empty sanitizer config throws without calling createHTML
  32. Element.appendHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
  33. Element.appendHTMLUnsafe: string with no options is converted by createHTML
  34. Element.appendHTMLUnsafe: string with an empty dictionary is converted by createHTML
  35. Element.appendHTMLUnsafe: string with an empty sanitizer config is converted by createHTML
  36. Element.appendHTMLUnsafe: string with runScripts false is converted by createHTML
  37. Element.prependHTMLUnsafe: string with a sanitizer config throws without calling createHTML
  38. Element.prependHTMLUnsafe: TrustedHTML with a sanitizer config throws
  39. Element.prependHTMLUnsafe: string with a sanitizer config without effect throws without calling createHTML
  40. Element.prependHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
  41. Element.prependHTMLUnsafe: string with a Sanitizer throws without calling createHTML
  42. Element.prependHTMLUnsafe: TrustedHTML with a Sanitizer throws
  43. Element.prependHTMLUnsafe: string with the "default" sanitizer preset throws without calling createHTML
  44. Element.prependHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
  45. Element.prependHTMLUnsafe: string with a sanitizer config and runScripts false throws without calling createHTML
  46. Element.prependHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
  47. Element.prependHTMLUnsafe: string with runScripts true throws without calling createHTML
  48. Element.prependHTMLUnsafe: TrustedHTML with runScripts true throws
  49. Element.prependHTMLUnsafe: string with runScripts true and an empty sanitizer config throws without calling createHTML
  50. Element.prependHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
  51. Element.prependHTMLUnsafe: string with no options is converted by createHTML
  52. Element.prependHTMLUnsafe: string with an empty dictionary is converted by createHTML
  53. Element.prependHTMLUnsafe: string with an empty sanitizer config is converted by createHTML
  54. Element.prependHTMLUnsafe: string with runScripts false is converted by createHTML
  55. ShadowRoot.setHTMLUnsafe: string with a sanitizer config throws without calling createHTML
  56. ShadowRoot.setHTMLUnsafe: TrustedHTML with a sanitizer config throws
  57. ShadowRoot.setHTMLUnsafe: string with a sanitizer config without effect throws without calling createHTML
  58. ShadowRoot.setHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
  59. ShadowRoot.setHTMLUnsafe: string with a Sanitizer throws without calling createHTML
  60. ShadowRoot.setHTMLUnsafe: TrustedHTML with a Sanitizer throws
  61. ShadowRoot.setHTMLUnsafe: string with the "default" sanitizer preset throws without calling createHTML
  62. ShadowRoot.setHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
  63. ShadowRoot.setHTMLUnsafe: string with a sanitizer config and runScripts false throws without calling createHTML
  64. ShadowRoot.setHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
  65. ShadowRoot.setHTMLUnsafe: string with runScripts true throws without calling createHTML
  66. ShadowRoot.setHTMLUnsafe: TrustedHTML with runScripts true throws
  67. ShadowRoot.setHTMLUnsafe: string with runScripts true and an empty sanitizer config throws without calling createHTML
  68. ShadowRoot.setHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
  69. ShadowRoot.setHTMLUnsafe: string with no options is converted by createHTML
  70. ShadowRoot.setHTMLUnsafe: string with an empty dictionary is converted by createHTML
  71. ShadowRoot.setHTMLUnsafe: string with an empty sanitizer config is converted by createHTML
  72. ShadowRoot.setHTMLUnsafe: string with runScripts false is converted by createHTML
  73. ShadowRoot.appendHTMLUnsafe: string with a sanitizer config throws without calling createHTML
  74. ShadowRoot.appendHTMLUnsafe: TrustedHTML with a sanitizer config throws
  75. ShadowRoot.appendHTMLUnsafe: string with a sanitizer config without effect throws without calling createHTML
  76. ShadowRoot.appendHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
  77. ShadowRoot.appendHTMLUnsafe: string with a Sanitizer throws without calling createHTML
  78. ShadowRoot.appendHTMLUnsafe: TrustedHTML with a Sanitizer throws
  79. ShadowRoot.appendHTMLUnsafe: string with the "default" sanitizer preset throws without calling createHTML
  80. ShadowRoot.appendHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
  81. ShadowRoot.appendHTMLUnsafe: string with a sanitizer config and runScripts false throws without calling createHTML
  82. ShadowRoot.appendHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
  83. ShadowRoot.appendHTMLUnsafe: string with runScripts true throws without calling createHTML
  84. ShadowRoot.appendHTMLUnsafe: TrustedHTML with runScripts true throws
  85. ShadowRoot.appendHTMLUnsafe: string with runScripts true and an empty sanitizer config throws without calling createHTML
  86. ShadowRoot.appendHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
  87. ShadowRoot.appendHTMLUnsafe: string with no options is converted by createHTML
  88. ShadowRoot.appendHTMLUnsafe: string with an empty dictionary is converted by createHTML
  89. ShadowRoot.appendHTMLUnsafe: string with an empty sanitizer config is converted by createHTML
  90. ShadowRoot.appendHTMLUnsafe: string with runScripts false is converted by createHTML
  91. ShadowRoot.prependHTMLUnsafe: string with a sanitizer config throws without calling createHTML
  92. ShadowRoot.prependHTMLUnsafe: TrustedHTML with a sanitizer config throws
  93. ShadowRoot.prependHTMLUnsafe: string with a sanitizer config without effect throws without calling createHTML
  94. ShadowRoot.prependHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
  95. ShadowRoot.prependHTMLUnsafe: string with a Sanitizer throws without calling createHTML
  96. ShadowRoot.prependHTMLUnsafe: TrustedHTML with a Sanitizer throws
  97. ShadowRoot.prependHTMLUnsafe: string with the "default" sanitizer preset throws without calling createHTML
  98. ShadowRoot.prependHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
  99. ShadowRoot.prependHTMLUnsafe: string with a sanitizer config and runScripts false throws without calling createHTML
  100. ShadowRoot.prependHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
  101. ShadowRoot.prependHTMLUnsafe: string with runScripts true throws without calling createHTML
  102. ShadowRoot.prependHTMLUnsafe: TrustedHTML with runScripts true throws
  103. ShadowRoot.prependHTMLUnsafe: string with runScripts true and an empty sanitizer config throws without calling createHTML
  104. ShadowRoot.prependHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
  105. ShadowRoot.prependHTMLUnsafe: string with no options is converted by createHTML
  106. ShadowRoot.prependHTMLUnsafe: string with an empty dictionary is converted by createHTML
  107. ShadowRoot.prependHTMLUnsafe: string with an empty sanitizer config is converted by createHTML
  108. ShadowRoot.prependHTMLUnsafe: string with runScripts false is converted by createHTML
  109. Node.beforeHTMLUnsafe: string with a sanitizer config throws without calling createHTML
  110. Node.beforeHTMLUnsafe: TrustedHTML with a sanitizer config throws
  111. Node.beforeHTMLUnsafe: string with a sanitizer config without effect throws without calling createHTML
  112. Node.beforeHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
  113. Node.beforeHTMLUnsafe: string with a Sanitizer throws without calling createHTML
  114. Node.beforeHTMLUnsafe: TrustedHTML with a Sanitizer throws
  115. Node.beforeHTMLUnsafe: string with the "default" sanitizer preset throws without calling createHTML
  116. Node.beforeHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
  117. Node.beforeHTMLUnsafe: string with a sanitizer config and runScripts false throws without calling createHTML
  118. Node.beforeHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
  119. Node.beforeHTMLUnsafe: string with runScripts true throws without calling createHTML
  120. Node.beforeHTMLUnsafe: TrustedHTML with runScripts true throws
  121. Node.beforeHTMLUnsafe: string with runScripts true and an empty sanitizer config throws without calling createHTML
  122. Node.beforeHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
  123. Node.beforeHTMLUnsafe: string with no options is converted by createHTML
  124. Node.beforeHTMLUnsafe: string with an empty dictionary is converted by createHTML
  125. Node.beforeHTMLUnsafe: string with an empty sanitizer config is converted by createHTML
  126. Node.beforeHTMLUnsafe: string with runScripts false is converted by createHTML
  127. Node.afterHTMLUnsafe: string with a sanitizer config throws without calling createHTML
  128. Node.afterHTMLUnsafe: TrustedHTML with a sanitizer config throws
  129. Node.afterHTMLUnsafe: string with a sanitizer config without effect throws without calling createHTML
  130. Node.afterHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
  131. Node.afterHTMLUnsafe: string with a Sanitizer throws without calling createHTML
  132. Node.afterHTMLUnsafe: TrustedHTML with a Sanitizer throws
  133. Node.afterHTMLUnsafe: string with the "default" sanitizer preset throws without calling createHTML
  134. Node.afterHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
  135. Node.afterHTMLUnsafe: string with a sanitizer config and runScripts false throws without calling createHTML
  136. Node.afterHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
  137. Node.afterHTMLUnsafe: string with runScripts true throws without calling createHTML
  138. Node.afterHTMLUnsafe: TrustedHTML with runScripts true throws
  139. Node.afterHTMLUnsafe: string with runScripts true and an empty sanitizer config throws without calling createHTML
  140. Node.afterHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
  141. Node.afterHTMLUnsafe: string with no options is converted by createHTML
  142. Node.afterHTMLUnsafe: string with an empty dictionary is converted by createHTML
  143. Node.afterHTMLUnsafe: string with an empty sanitizer config is converted by createHTML
  144. Node.afterHTMLUnsafe: string with runScripts false is converted by createHTML
  145. Node.replaceWithHTMLUnsafe: string with a sanitizer config throws without calling createHTML
  146. Node.replaceWithHTMLUnsafe: TrustedHTML with a sanitizer config throws
  147. Node.replaceWithHTMLUnsafe: string with a sanitizer config without effect throws without calling createHTML
  148. Node.replaceWithHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
  149. Node.replaceWithHTMLUnsafe: string with a Sanitizer throws without calling createHTML
  150. Node.replaceWithHTMLUnsafe: TrustedHTML with a Sanitizer throws
  151. Node.replaceWithHTMLUnsafe: string with the "default" sanitizer preset throws without calling createHTML
  152. Node.replaceWithHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
  153. Node.replaceWithHTMLUnsafe: string with a sanitizer config and runScripts false throws without calling createHTML
  154. Node.replaceWithHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
  155. Node.replaceWithHTMLUnsafe: string with runScripts true throws without calling createHTML
  156. Node.replaceWithHTMLUnsafe: TrustedHTML with runScripts true throws
  157. Node.replaceWithHTMLUnsafe: string with runScripts true and an empty sanitizer config throws without calling createHTML
  158. Node.replaceWithHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
  159. Node.replaceWithHTMLUnsafe: string with no options is converted by createHTML
  160. Node.replaceWithHTMLUnsafe: string with an empty dictionary is converted by createHTML
  161. Node.replaceWithHTMLUnsafe: string with an empty sanitizer config is converted by createHTML
  162. Node.replaceWithHTMLUnsafe: string with runScripts false is converted by createHTML
  163. Document.parseHTMLUnsafe: string with a sanitizer config throws without calling createHTML
  164. Document.parseHTMLUnsafe: TrustedHTML with a sanitizer config throws
  165. Document.parseHTMLUnsafe: string with a sanitizer config without effect throws without calling createHTML
  166. Document.parseHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
  167. Document.parseHTMLUnsafe: string with a Sanitizer throws without calling createHTML
  168. Document.parseHTMLUnsafe: TrustedHTML with a Sanitizer throws
  169. Document.parseHTMLUnsafe: string with the "default" sanitizer preset throws without calling createHTML
  170. Document.parseHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
  171. Document.parseHTMLUnsafe: string with a sanitizer config and runScripts false throws without calling createHTML
  172. Document.parseHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
  173. Document.parseHTMLUnsafe: string with no options is converted by createHTML
  174. Document.parseHTMLUnsafe: string with an empty dictionary is converted by createHTML
  175. Document.parseHTMLUnsafe: string with an empty sanitizer config is converted by createHTML
  176. Document.parseHTMLUnsafe: string with runScripts false is converted by createHTML
  177. Document.parseHTMLUnsafe: string with runScripts true is converted by createHTML
  178. Document.parseHTMLUnsafe: string with runScripts true and an empty sanitizer config is converted by createHTML
  179. Range.createContextualFragment: string is converted by createHTML, as its runScripts is not author-supplied
  180. Element.innerHTML: string is converted by createHTML
trustedhtml-unvetted-parser-options-default-createParserOptions.html19 / 19 passingChrome 19 / 190 failedClean
Standing
Clean runner status OK
Chrome
Clean 19 / 19 WPT subtests passing runner status OK
19 passing subtests
  1. Element.setHTMLUnsafe: TrustedHTML with a sanitizer config is allowed when vetted
  2. Element.setHTMLUnsafe: TrustedHTML with runScripts true is allowed when vetted
  3. Element.appendHTMLUnsafe: TrustedHTML with a sanitizer config is allowed when vetted
  4. Element.appendHTMLUnsafe: TrustedHTML with runScripts true is allowed when vetted
  5. Element.prependHTMLUnsafe: TrustedHTML with a sanitizer config is allowed when vetted
  6. Element.prependHTMLUnsafe: TrustedHTML with runScripts true is allowed when vetted
  7. ShadowRoot.setHTMLUnsafe: TrustedHTML with a sanitizer config is allowed when vetted
  8. ShadowRoot.setHTMLUnsafe: TrustedHTML with runScripts true is allowed when vetted
  9. ShadowRoot.appendHTMLUnsafe: TrustedHTML with a sanitizer config is allowed when vetted
  10. ShadowRoot.appendHTMLUnsafe: TrustedHTML with runScripts true is allowed when vetted
  11. ShadowRoot.prependHTMLUnsafe: TrustedHTML with a sanitizer config is allowed when vetted
  12. ShadowRoot.prependHTMLUnsafe: TrustedHTML with runScripts true is allowed when vetted
  13. Node.beforeHTMLUnsafe: TrustedHTML with a sanitizer config is allowed when vetted
  14. Node.beforeHTMLUnsafe: TrustedHTML with runScripts true is allowed when vetted
  15. Node.afterHTMLUnsafe: TrustedHTML with a sanitizer config is allowed when vetted
  16. Node.afterHTMLUnsafe: TrustedHTML with runScripts true is allowed when vetted
  17. Node.replaceWithHTMLUnsafe: TrustedHTML with a sanitizer config is allowed when vetted
  18. Node.replaceWithHTMLUnsafe: TrustedHTML with runScripts true is allowed when vetted
  19. Document.parseHTMLUnsafe: TrustedHTML with a sanitizer config is allowed when vetted
trustedhtml-unvetted-parser-options-no-enforcement.html29 / 29 passingChrome 29 / 290 failedClean
Standing
Clean runner status OK
Chrome
Clean 29 / 29 WPT subtests passing runner status OK
29 passing subtests
  1. Element.setHTMLUnsafe: TrustedHTML with a sanitizer config is allowed
  2. Element.setHTMLUnsafe: string with a sanitizer config is allowed
  3. Element.setHTMLUnsafe: TrustedHTML with runScripts true is allowed
  4. Element.appendHTMLUnsafe: TrustedHTML with a sanitizer config is allowed
  5. Element.appendHTMLUnsafe: string with a sanitizer config is allowed
  6. Element.appendHTMLUnsafe: TrustedHTML with runScripts true is allowed
  7. Element.prependHTMLUnsafe: TrustedHTML with a sanitizer config is allowed
  8. Element.prependHTMLUnsafe: string with a sanitizer config is allowed
  9. Element.prependHTMLUnsafe: TrustedHTML with runScripts true is allowed
  10. ShadowRoot.setHTMLUnsafe: TrustedHTML with a sanitizer config is allowed
  11. ShadowRoot.setHTMLUnsafe: string with a sanitizer config is allowed
  12. ShadowRoot.setHTMLUnsafe: TrustedHTML with runScripts true is allowed
  13. ShadowRoot.appendHTMLUnsafe: TrustedHTML with a sanitizer config is allowed
  14. ShadowRoot.appendHTMLUnsafe: string with a sanitizer config is allowed
  15. ShadowRoot.appendHTMLUnsafe: TrustedHTML with runScripts true is allowed
  16. ShadowRoot.prependHTMLUnsafe: TrustedHTML with a sanitizer config is allowed
  17. ShadowRoot.prependHTMLUnsafe: string with a sanitizer config is allowed
  18. ShadowRoot.prependHTMLUnsafe: TrustedHTML with runScripts true is allowed
  19. Node.beforeHTMLUnsafe: TrustedHTML with a sanitizer config is allowed
  20. Node.beforeHTMLUnsafe: string with a sanitizer config is allowed
  21. Node.beforeHTMLUnsafe: TrustedHTML with runScripts true is allowed
  22. Node.afterHTMLUnsafe: TrustedHTML with a sanitizer config is allowed
  23. Node.afterHTMLUnsafe: string with a sanitizer config is allowed
  24. Node.afterHTMLUnsafe: TrustedHTML with runScripts true is allowed
  25. Node.replaceWithHTMLUnsafe: TrustedHTML with a sanitizer config is allowed
  26. Node.replaceWithHTMLUnsafe: string with a sanitizer config is allowed
  27. Node.replaceWithHTMLUnsafe: TrustedHTML with runScripts true is allowed
  28. Document.parseHTMLUnsafe: TrustedHTML with a sanitizer config is allowed
  29. Document.parseHTMLUnsafe: string with a sanitizer config is allowed
trustedhtml-unvetted-parser-options-report-only.html39 / 39 passingChrome 39 / 390 failedClean
Standing
Clean runner status OK
Chrome
Clean 39 / 39 WPT subtests passing runner status OK
39 passing subtests
  1. Element.setHTMLUnsafe: TrustedHTML with a sanitizer config is reported and allowed
  2. Element.setHTMLUnsafe: TrustedHTML with runScripts true is reported and allowed
  3. Element.setHTMLUnsafe: TrustedHTML with an empty sanitizer config is not reported
  4. Element.setHTMLUnsafe: string with a sanitizer config is reported twice and allowed
  5. Element.appendHTMLUnsafe: TrustedHTML with a sanitizer config is reported and allowed
  6. Element.appendHTMLUnsafe: TrustedHTML with runScripts true is reported and allowed
  7. Element.appendHTMLUnsafe: TrustedHTML with an empty sanitizer config is not reported
  8. Element.appendHTMLUnsafe: string with a sanitizer config is reported twice and allowed
  9. Element.prependHTMLUnsafe: TrustedHTML with a sanitizer config is reported and allowed
  10. Element.prependHTMLUnsafe: TrustedHTML with runScripts true is reported and allowed
  11. Element.prependHTMLUnsafe: TrustedHTML with an empty sanitizer config is not reported
  12. Element.prependHTMLUnsafe: string with a sanitizer config is reported twice and allowed
  13. ShadowRoot.setHTMLUnsafe: TrustedHTML with a sanitizer config is reported and allowed
  14. ShadowRoot.setHTMLUnsafe: TrustedHTML with runScripts true is reported and allowed
  15. ShadowRoot.setHTMLUnsafe: TrustedHTML with an empty sanitizer config is not reported
  16. ShadowRoot.setHTMLUnsafe: string with a sanitizer config is reported twice and allowed
  17. ShadowRoot.appendHTMLUnsafe: TrustedHTML with a sanitizer config is reported and allowed
  18. ShadowRoot.appendHTMLUnsafe: TrustedHTML with runScripts true is reported and allowed
  19. ShadowRoot.appendHTMLUnsafe: TrustedHTML with an empty sanitizer config is not reported
  20. ShadowRoot.appendHTMLUnsafe: string with a sanitizer config is reported twice and allowed
  21. ShadowRoot.prependHTMLUnsafe: TrustedHTML with a sanitizer config is reported and allowed
  22. ShadowRoot.prependHTMLUnsafe: TrustedHTML with runScripts true is reported and allowed
  23. ShadowRoot.prependHTMLUnsafe: TrustedHTML with an empty sanitizer config is not reported
  24. ShadowRoot.prependHTMLUnsafe: string with a sanitizer config is reported twice and allowed
  25. Node.beforeHTMLUnsafe: TrustedHTML with a sanitizer config is reported and allowed
  26. Node.beforeHTMLUnsafe: TrustedHTML with runScripts true is reported and allowed
  27. Node.beforeHTMLUnsafe: TrustedHTML with an empty sanitizer config is not reported
  28. Node.beforeHTMLUnsafe: string with a sanitizer config is reported twice and allowed
  29. Node.afterHTMLUnsafe: TrustedHTML with a sanitizer config is reported and allowed
  30. Node.afterHTMLUnsafe: TrustedHTML with runScripts true is reported and allowed
  31. Node.afterHTMLUnsafe: TrustedHTML with an empty sanitizer config is not reported
  32. Node.afterHTMLUnsafe: string with a sanitizer config is reported twice and allowed
  33. Node.replaceWithHTMLUnsafe: TrustedHTML with a sanitizer config is reported and allowed
  34. Node.replaceWithHTMLUnsafe: TrustedHTML with runScripts true is reported and allowed
  35. Node.replaceWithHTMLUnsafe: TrustedHTML with an empty sanitizer config is not reported
  36. Node.replaceWithHTMLUnsafe: string with a sanitizer config is reported twice and allowed
  37. Document.parseHTMLUnsafe: TrustedHTML with a sanitizer config is reported and allowed
  38. Document.parseHTMLUnsafe: TrustedHTML with an empty sanitizer config is not reported
  39. Document.parseHTMLUnsafe: string with a sanitizer config is reported twice and allowed
trustedhtml-unvetted-parser-options.html141 / 141 passingChrome 141 / 1410 failedClean
Standing
Clean runner status OK
Chrome
Clean 141 / 141 WPT subtests passing runner status OK
141 passing subtests
  1. Element.setHTMLUnsafe: TrustedHTML with a sanitizer config throws
  2. Element.setHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
  3. Element.setHTMLUnsafe: TrustedHTML with a Sanitizer throws
  4. Element.setHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
  5. Element.setHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
  6. Element.setHTMLUnsafe: TrustedHTML with runScripts true throws
  7. Element.setHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
  8. Element.setHTMLUnsafe: TrustedHTML with no options is allowed
  9. Element.setHTMLUnsafe: TrustedHTML with an empty dictionary is allowed
  10. Element.setHTMLUnsafe: TrustedHTML with an empty sanitizer config is allowed
  11. Element.setHTMLUnsafe: TrustedHTML with runScripts false is allowed
  12. Element.setHTMLUnsafe: TrustedHTML with a sanitizer in TrustedHTMLParserOptions is allowed
  13. Element.setHTMLUnsafe: TrustedHTML with runScripts true in TrustedHTMLParserOptions is allowed
  14. Element.setHTMLUnsafe: string with a sanitizer config throws
  15. Element.appendHTMLUnsafe: TrustedHTML with a sanitizer config throws
  16. Element.appendHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
  17. Element.appendHTMLUnsafe: TrustedHTML with a Sanitizer throws
  18. Element.appendHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
  19. Element.appendHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
  20. Element.appendHTMLUnsafe: TrustedHTML with runScripts true throws
  21. Element.appendHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
  22. Element.appendHTMLUnsafe: TrustedHTML with no options is allowed
  23. Element.appendHTMLUnsafe: TrustedHTML with an empty dictionary is allowed
  24. Element.appendHTMLUnsafe: TrustedHTML with an empty sanitizer config is allowed
  25. Element.appendHTMLUnsafe: TrustedHTML with runScripts false is allowed
  26. Element.appendHTMLUnsafe: TrustedHTML with a sanitizer in TrustedHTMLParserOptions is allowed
  27. Element.appendHTMLUnsafe: TrustedHTML with runScripts true in TrustedHTMLParserOptions is allowed
  28. Element.appendHTMLUnsafe: string with a sanitizer config throws
  29. Element.prependHTMLUnsafe: TrustedHTML with a sanitizer config throws
  30. Element.prependHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
  31. Element.prependHTMLUnsafe: TrustedHTML with a Sanitizer throws
  32. Element.prependHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
  33. Element.prependHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
  34. Element.prependHTMLUnsafe: TrustedHTML with runScripts true throws
  35. Element.prependHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
  36. Element.prependHTMLUnsafe: TrustedHTML with no options is allowed
  37. Element.prependHTMLUnsafe: TrustedHTML with an empty dictionary is allowed
  38. Element.prependHTMLUnsafe: TrustedHTML with an empty sanitizer config is allowed
  39. Element.prependHTMLUnsafe: TrustedHTML with runScripts false is allowed
  40. Element.prependHTMLUnsafe: TrustedHTML with a sanitizer in TrustedHTMLParserOptions is allowed
  41. Element.prependHTMLUnsafe: TrustedHTML with runScripts true in TrustedHTMLParserOptions is allowed
  42. Element.prependHTMLUnsafe: string with a sanitizer config throws
  43. ShadowRoot.setHTMLUnsafe: TrustedHTML with a sanitizer config throws
  44. ShadowRoot.setHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
  45. ShadowRoot.setHTMLUnsafe: TrustedHTML with a Sanitizer throws
  46. ShadowRoot.setHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
  47. ShadowRoot.setHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
  48. ShadowRoot.setHTMLUnsafe: TrustedHTML with runScripts true throws
  49. ShadowRoot.setHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
  50. ShadowRoot.setHTMLUnsafe: TrustedHTML with no options is allowed
  51. ShadowRoot.setHTMLUnsafe: TrustedHTML with an empty dictionary is allowed
  52. ShadowRoot.setHTMLUnsafe: TrustedHTML with an empty sanitizer config is allowed
  53. ShadowRoot.setHTMLUnsafe: TrustedHTML with runScripts false is allowed
  54. ShadowRoot.setHTMLUnsafe: TrustedHTML with a sanitizer in TrustedHTMLParserOptions is allowed
  55. ShadowRoot.setHTMLUnsafe: TrustedHTML with runScripts true in TrustedHTMLParserOptions is allowed
  56. ShadowRoot.setHTMLUnsafe: string with a sanitizer config throws
  57. ShadowRoot.appendHTMLUnsafe: TrustedHTML with a sanitizer config throws
  58. ShadowRoot.appendHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
  59. ShadowRoot.appendHTMLUnsafe: TrustedHTML with a Sanitizer throws
  60. ShadowRoot.appendHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
  61. ShadowRoot.appendHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
  62. ShadowRoot.appendHTMLUnsafe: TrustedHTML with runScripts true throws
  63. ShadowRoot.appendHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
  64. ShadowRoot.appendHTMLUnsafe: TrustedHTML with no options is allowed
  65. ShadowRoot.appendHTMLUnsafe: TrustedHTML with an empty dictionary is allowed
  66. ShadowRoot.appendHTMLUnsafe: TrustedHTML with an empty sanitizer config is allowed
  67. ShadowRoot.appendHTMLUnsafe: TrustedHTML with runScripts false is allowed
  68. ShadowRoot.appendHTMLUnsafe: TrustedHTML with a sanitizer in TrustedHTMLParserOptions is allowed
  69. ShadowRoot.appendHTMLUnsafe: TrustedHTML with runScripts true in TrustedHTMLParserOptions is allowed
  70. ShadowRoot.appendHTMLUnsafe: string with a sanitizer config throws
  71. ShadowRoot.prependHTMLUnsafe: TrustedHTML with a sanitizer config throws
  72. ShadowRoot.prependHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
  73. ShadowRoot.prependHTMLUnsafe: TrustedHTML with a Sanitizer throws
  74. ShadowRoot.prependHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
  75. ShadowRoot.prependHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
  76. ShadowRoot.prependHTMLUnsafe: TrustedHTML with runScripts true throws
  77. ShadowRoot.prependHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
  78. ShadowRoot.prependHTMLUnsafe: TrustedHTML with no options is allowed
  79. ShadowRoot.prependHTMLUnsafe: TrustedHTML with an empty dictionary is allowed
  80. ShadowRoot.prependHTMLUnsafe: TrustedHTML with an empty sanitizer config is allowed
  81. ShadowRoot.prependHTMLUnsafe: TrustedHTML with runScripts false is allowed
  82. ShadowRoot.prependHTMLUnsafe: TrustedHTML with a sanitizer in TrustedHTMLParserOptions is allowed
  83. ShadowRoot.prependHTMLUnsafe: TrustedHTML with runScripts true in TrustedHTMLParserOptions is allowed
  84. ShadowRoot.prependHTMLUnsafe: string with a sanitizer config throws
  85. Node.beforeHTMLUnsafe: TrustedHTML with a sanitizer config throws
  86. Node.beforeHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
  87. Node.beforeHTMLUnsafe: TrustedHTML with a Sanitizer throws
  88. Node.beforeHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
  89. Node.beforeHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
  90. Node.beforeHTMLUnsafe: TrustedHTML with runScripts true throws
  91. Node.beforeHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
  92. Node.beforeHTMLUnsafe: TrustedHTML with no options is allowed
  93. Node.beforeHTMLUnsafe: TrustedHTML with an empty dictionary is allowed
  94. Node.beforeHTMLUnsafe: TrustedHTML with an empty sanitizer config is allowed
  95. Node.beforeHTMLUnsafe: TrustedHTML with runScripts false is allowed
  96. Node.beforeHTMLUnsafe: TrustedHTML with a sanitizer in TrustedHTMLParserOptions is allowed
  97. Node.beforeHTMLUnsafe: TrustedHTML with runScripts true in TrustedHTMLParserOptions is allowed
  98. Node.beforeHTMLUnsafe: string with a sanitizer config throws
  99. Node.afterHTMLUnsafe: TrustedHTML with a sanitizer config throws
  100. Node.afterHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
  101. Node.afterHTMLUnsafe: TrustedHTML with a Sanitizer throws
  102. Node.afterHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
  103. Node.afterHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
  104. Node.afterHTMLUnsafe: TrustedHTML with runScripts true throws
  105. Node.afterHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
  106. Node.afterHTMLUnsafe: TrustedHTML with no options is allowed
  107. Node.afterHTMLUnsafe: TrustedHTML with an empty dictionary is allowed
  108. Node.afterHTMLUnsafe: TrustedHTML with an empty sanitizer config is allowed
  109. Node.afterHTMLUnsafe: TrustedHTML with runScripts false is allowed
  110. Node.afterHTMLUnsafe: TrustedHTML with a sanitizer in TrustedHTMLParserOptions is allowed
  111. Node.afterHTMLUnsafe: TrustedHTML with runScripts true in TrustedHTMLParserOptions is allowed
  112. Node.afterHTMLUnsafe: string with a sanitizer config throws
  113. Node.replaceWithHTMLUnsafe: TrustedHTML with a sanitizer config throws
  114. Node.replaceWithHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
  115. Node.replaceWithHTMLUnsafe: TrustedHTML with a Sanitizer throws
  116. Node.replaceWithHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
  117. Node.replaceWithHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
  118. Node.replaceWithHTMLUnsafe: TrustedHTML with runScripts true throws
  119. Node.replaceWithHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config throws
  120. Node.replaceWithHTMLUnsafe: TrustedHTML with no options is allowed
  121. Node.replaceWithHTMLUnsafe: TrustedHTML with an empty dictionary is allowed
  122. Node.replaceWithHTMLUnsafe: TrustedHTML with an empty sanitizer config is allowed
  123. Node.replaceWithHTMLUnsafe: TrustedHTML with runScripts false is allowed
  124. Node.replaceWithHTMLUnsafe: TrustedHTML with a sanitizer in TrustedHTMLParserOptions is allowed
  125. Node.replaceWithHTMLUnsafe: TrustedHTML with runScripts true in TrustedHTMLParserOptions is allowed
  126. Node.replaceWithHTMLUnsafe: string with a sanitizer config throws
  127. Document.parseHTMLUnsafe: TrustedHTML with a sanitizer config throws
  128. Document.parseHTMLUnsafe: TrustedHTML with a sanitizer config without effect throws
  129. Document.parseHTMLUnsafe: TrustedHTML with a Sanitizer throws
  130. Document.parseHTMLUnsafe: TrustedHTML with the "default" sanitizer preset throws
  131. Document.parseHTMLUnsafe: TrustedHTML with a sanitizer config and runScripts false throws
  132. Document.parseHTMLUnsafe: TrustedHTML with runScripts true is allowed, as runScripts is not an option
  133. Document.parseHTMLUnsafe: TrustedHTML with runScripts true and an empty sanitizer config is allowed, as runScripts is not an option
  134. Document.parseHTMLUnsafe: TrustedHTML with no options is allowed
  135. Document.parseHTMLUnsafe: TrustedHTML with an empty dictionary is allowed
  136. Document.parseHTMLUnsafe: TrustedHTML with an empty sanitizer config is allowed
  137. Document.parseHTMLUnsafe: TrustedHTML with runScripts false is allowed
  138. Document.parseHTMLUnsafe: TrustedHTML with a sanitizer in TrustedHTMLParserOptions is allowed
  139. Document.parseHTMLUnsafe: string with a sanitizer config throws
  140. Range.createContextualFragment: TrustedHTML is allowed, as its runScripts is not author-supplied
  141. Element.innerHTML: TrustedHTML is allowed

Written as HTML by tools/wpt_site/generate.zig from the runner’s journals and result streams; site.js adds the interactive chart, sorting, filtering and search. Faces: Source Serif 4, Public Sans and Source Code Pro, under the SIL Open Font License. Crane on GitHub.