@@ -50,7 +50,7 @@ ruleTester.run('no-unknown-property', rule, {
5050 { code : '<input type="password" required />' } ,
5151 { code : '<input ref={this.input} type="radio" />' } ,
5252 { code : '<div children="anything" />' } ,
53- { code : '<iframe scrolling="?" />' } ,
53+ { code : '<iframe scrolling="?" onLoad={a} onError={b} />' } ,
5454 { code : '<input key="bar" type="radio" />' } ,
5555 { code : '<button disabled>You cannot click me</button>;' } ,
5656 { 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, {
6060 { code : '<input type="checkbox" checked={checked} disabled={disabled} id={id} onChange={onChange} />' } ,
6161 { code : '<video playsInline />' } ,
6262 { code : '<img onError={foo} onLoad={bar} />' } ,
63+ { code : '<picture onError={foo} onLoad={bar} />' } ,
64+ { code : '<iframe onError={foo} onLoad={bar} />' } ,
6365 { code : '<script onLoad={bar} onError={foo} />' } ,
6466 { code : '<source onError={foo} />' } ,
6567 { code : '<link onLoad={bar} onError={foo} />' } ,
@@ -400,7 +402,7 @@ ruleTester.run('no-unknown-property', rule, {
400402 data : {
401403 name : 'onError' ,
402404 tagName : 'div' ,
403- allowedTags : 'audio, video, img, link, source, script' ,
405+ allowedTags : 'audio, video, img, link, source, script, picture, iframe ' ,
404406 } ,
405407 } ,
406408 ] ,
@@ -413,7 +415,7 @@ ruleTester.run('no-unknown-property', rule, {
413415 data : {
414416 name : 'onLoad' ,
415417 tagName : 'div' ,
416- allowedTags : 'script, img, link' ,
418+ allowedTags : 'script, img, link, picture, iframe ' ,
417419 } ,
418420 } ,
419421 ] ,
0 commit comments