()
| 8692 | QUnit.test('coerced toString() markup is still sanitized', (assert) => { |
| 8693 | const dirty = { |
| 8694 | toString() { |
| 8695 | return '<b>x</b><img src=x onerror=alert(1)>'; |
| 8696 | }, |
| 8697 | }; |
| 8698 | const out = DOMPurify.sanitize(dirty); |
| 8699 | assert.equal(out.indexOf('onerror'), -1, `onerror survived: ${out}`); |
nothing calls this directly
no outgoing calls
no test coverage detected