X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=tests%2Fqunit%2Fsuites%2Fresources%2Fjquery%2Fjquery.placeholder.test.js;h=5d0ddebb9828d69d15914e2ba5e635ab39503b91;hb=32d052537191da40afcd3d50f1f93cdba34db463;hp=23ad9d989c22678f04832cae17d6be533d3974cd;hpb=41f69a8b63da7b8050a0b4cd3e54c05879d58f38;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/qunit/suites/resources/jquery/jquery.placeholder.test.js b/tests/qunit/suites/resources/jquery/jquery.placeholder.test.js index 23ad9d989c..5d0ddebb98 100644 --- a/tests/qunit/suites/resources/jquery/jquery.placeholder.test.js +++ b/tests/qunit/suites/resources/jquery/jquery.placeholder.test.js @@ -22,7 +22,7 @@ '', testElement = function ( $el, assert ) { - var el = $el[0], + var el = $el[ 0 ], placeholder = el.getAttribute( 'placeholder' ); assert.strictEqual( $el.placeholder(), $el, 'should be chainable' ); @@ -97,14 +97,14 @@ var selector = '#input-type-password', $el = $( selector ), - el = $el[0], + el = $el[ 0 ], placeholder = el.getAttribute( 'placeholder' ); assert.strictEqual( $el.placeholder(), $el, 'should be chainable' ); // Re-select the element, as it gets replaced by another one in some browsers $el = $( selector ); - el = $el[0]; + el = $el[ 0 ]; assert.strictEqual( el.value, placeholder, 'should set `placeholder` text as `value`' ); assert.strictEqual( $el.prop( 'value' ), '', 'propHooks works properly' ); @@ -116,7 +116,7 @@ // Re-select the element, as it gets replaced by another one in some browsers $el = $( selector ); - el = $el[0]; + el = $el[ 0 ]; assert.strictEqual( el.value, '', '`value` should be the empty string on focus' ); assert.strictEqual( $el.prop( 'value' ), '', 'propHooks works properly' ); @@ -128,7 +128,7 @@ // Re-select the element, as it gets replaced by another one in some browsers $el = $( selector ); - el = $el[0]; + el = $el[ 0 ]; assert.strictEqual( el.value, placeholder, 'should set `placeholder` text as `value`' ); assert.strictEqual( $el.prop( 'value' ), '', 'propHooks works properly' );