@@ -45,7 +45,7 @@ CSSLint.addRule({
4545 if ( heightProperties . hasOwnProperty ( prop ) && properties [ prop ] ) {
4646 value = properties [ prop ] . value ;
4747 //special case for padding
48- if ( ! ( prop == "padding" && value . parts . length === 2 && value . parts [ 0 ] . value === 0 ) ) {
48+ if ( ! ( prop === "padding" && value . parts . length === 2 && value . parts [ 0 ] . value === 0 ) ) {
4949 reporter . report ( "Using height with " + prop + " can sometimes make elements larger than you expect." , properties [ prop ] . line , properties [ prop ] . col , rule ) ;
5050 }
5151 }
@@ -57,7 +57,7 @@ CSSLint.addRule({
5757 if ( widthProperties . hasOwnProperty ( prop ) && properties [ prop ] ) {
5858 value = properties [ prop ] . value ;
5959
60- if ( ! ( prop == "padding" && value . parts . length === 2 && value . parts [ 1 ] . value === 0 ) ) {
60+ if ( ! ( prop === "padding" && value . parts . length === 2 && value . parts [ 1 ] . value === 0 ) ) {
6161 reporter . report ( "Using width with " + prop + " can sometimes make elements larger than you expect." , properties [ prop ] . line , properties [ prop ] . col , rule ) ;
6262 }
6363 }
@@ -76,13 +76,13 @@ CSSLint.addRule({
7676 var name = event . property . text . toLowerCase ( ) ;
7777
7878 if ( heightProperties [ name ] || widthProperties [ name ] ) {
79- if ( ! / ^ 0 \S * $ / . test ( event . value ) && ! ( name == "border" && event . value == "none" ) ) {
79+ if ( ! / ^ 0 \S * $ / . test ( event . value ) && ! ( name === "border" && event . value = == "none" ) ) {
8080 properties [ name ] = { line : event . property . line , col : event . property . col , value : event . value } ;
8181 }
8282 } else {
8383 if ( / ^ ( w i d t h | h e i g h t ) / i. test ( name ) && / ^ ( l e n g t h | p e r c e n t a g e ) / . test ( event . value . parts [ 0 ] . type ) ) {
8484 properties [ name ] = 1 ;
85- } else if ( name == "box-sizing" ) {
85+ } else if ( name === "box-sizing" ) {
8686 boxSizing = true ;
8787 }
8888 }
0 commit comments