Characters allowed before event in attribute name using setAttribute
This vector shows which characters are allowed before an event name when using setAttribute.
Created byhackvertor
Created Aug 21, 2024
Updated May 27, 2025
Detecting browser...
CategoryDOM Behavior
VisibilityPublic
TypeJS
CharsetUTF-8
Template used:
let img = document.createElement('img');0x0D
img.src = 'data:';0x0D
img.setAttribute('$[chr]onerror','log($[i])')0x0D
document.body.append(img);Sample payloads
let img = document.createElement('img');0x0D
img.src = 'data:';0x0D
img.setAttribute('\onerror','alert(92)')0x0D
document.body.append(img);Fuzz results
Chrome 145.0.0.0 desktop Windows NT 10.0
Updated17 Feb 2026
Found 1 result
Loading...
Chrome 144.0.0.0 desktop macOS 10.15.7older version
Updated17 Feb 2026
Found 1 result
Loading...
Firefox 147.0 desktop Linux
Updated1 Feb 2026
Found 1 result
Loading...
Firefox 129.0 desktop macOS 10.15older version
Updated21 Aug 2024
Found 1 result
Loading...
Microsoft Edge 145.0.0.0 desktop Windows NT 10.0
Updated18 Feb 2026
Found 1 result
Loading...
Safari 18.0 desktop macOS 10.15.7
Updated21 Aug 2024
Found 1 result
Loading...