@@ -50,7 +50,7 @@ ruleTester.run('no-unknown-property', rule, {
50
50
{ code : '<input type="password" required />' } ,
51
51
{ code : '<input ref={this.input} type="radio" />' } ,
52
52
{ code : '<div children="anything" />' } ,
53
- { code : '<iframe scrolling="?" />' } ,
53
+ { code : '<iframe scrolling="?" onLoad={a} onError={b} />' } ,
54
54
{ code : '<input key="bar" type="radio" />' } ,
55
55
{ code : '<button disabled>You cannot click me</button>;' } ,
56
56
{ code : '<svg key="lock" viewBox="box" fill={10} d="d" stroke={1} strokeWidth={2} strokeLinecap={3} strokeLinejoin={4} transform="something" clipRule="else" x1={5} x2="6" y1="7" y2="8"></svg>' } ,
@@ -60,6 +60,8 @@ ruleTester.run('no-unknown-property', rule, {
60
60
{ code : '<input type="checkbox" checked={checked} disabled={disabled} id={id} onChange={onChange} />' } ,
61
61
{ code : '<video playsInline />' } ,
62
62
{ code : '<img onError={foo} onLoad={bar} />' } ,
63
+ { code : '<picture onError={foo} onLoad={bar} />' } ,
64
+ { code : '<iframe onError={foo} onLoad={bar} />' } ,
63
65
{ code : '<script onLoad={bar} onError={foo} />' } ,
64
66
{ code : '<source onError={foo} />' } ,
65
67
{ code : '<link onLoad={bar} onError={foo} />' } ,
@@ -400,7 +402,7 @@ ruleTester.run('no-unknown-property', rule, {
400
402
data : {
401
403
name : 'onError' ,
402
404
tagName : 'div' ,
403
- allowedTags : 'audio, video, img, link, source, script' ,
405
+ allowedTags : 'audio, video, img, link, source, script, picture, iframe ' ,
404
406
} ,
405
407
} ,
406
408
] ,
@@ -413,7 +415,7 @@ ruleTester.run('no-unknown-property', rule, {
413
415
data : {
414
416
name : 'onLoad' ,
415
417
tagName : 'div' ,
416
- allowedTags : 'script, img, link' ,
418
+ allowedTags : 'script, img, link, picture, iframe ' ,
417
419
} ,
418
420
} ,
419
421
] ,
0 commit comments