()
| 7475 | QUnit.test('coerced toString() markup is still sanitized', (assert) => { |
| 7476 | const dirty = { |
| 7477 | toString() { |
| 7478 | return '<b>x</b><img src=x onerror=alert(1)>'; |
| 7479 | }, |
| 7480 | }; |
| 7481 | const out = DOMPurify.sanitize(dirty); |
| 7482 | assert.equal(out.indexOf('onerror'), -1, `onerror survived: ${out}`); |
nothing calls this directly
no outgoing calls
no test coverage detected