Skip to content

Commit d90472d

Browse files
Update no-unknown-property.js
They body tag supports an onload event https://www.w3schools.com/jsref/event_onload.asp
1 parent 3a03579 commit d90472d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/no-unknown-property.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const ATTRIBUTE_TAGS_MAP = {
8585
onEncrypted: ['audio', 'video'],
8686
onEnded: ['audio', 'video'],
8787
onError: ['audio', 'video', 'img', 'link', 'source', 'script', 'picture', 'iframe'],
88-
onLoad: ['script', 'img', 'link', 'picture', 'iframe', 'object', 'source'],
88+
onLoad: ['script', 'img', 'link', 'picture', 'iframe', 'object', 'source', 'body'],
8989
onLoadedData: ['audio', 'video'],
9090
onLoadedMetadata: ['audio', 'video'],
9191
onLoadStart: ['audio', 'video'],

0 commit comments

Comments
 (0)