()
| 8407 | QUnit.test('coerced toString() markup is still sanitized', (assert) => { |
| 8408 | const dirty = { |
| 8409 | toString() { |
| 8410 | return '<b>x</b><img src=x onerror=alert(1)>'; |
| 8411 | }, |
| 8412 | }; |
| 8413 | const out = DOMPurify.sanitize(dirty); |
| 8414 | assert.equal(out.indexOf('onerror'), -1, `onerror survived: ${out}`); |
nothing calls this directly
no outgoing calls
no test coverage detected