()
| 6213 | QUnit.test('coerced toString() markup is still sanitized', (assert) => { |
| 6214 | const dirty = { |
| 6215 | toString() { |
| 6216 | return '<b>x</b><img src=x onerror=alert(1)>'; |
| 6217 | }, |
| 6218 | }; |
| 6219 | const out = DOMPurify.sanitize(dirty); |
| 6220 | assert.equal(out.indexOf('onerror'), -1, `onerror survived: ${out}`); |
nothing calls this directly
no outgoing calls
no test coverage detected