Quantcast
Channel: Pelle Christoffer Hagring Vadstensvik Bjerkestrand » CSS
Viewing all articles
Browse latest Browse all 8

At Microsoft -1 == true

$
0
0

This little thing had me scratching my head while hunting some IE 7 specific bugs today.

The Internet Explorer property hasLayout says that it can be either true or false.

Checking IE’s developer tools, one can often see that hasLayout has a value of -1.

-1 is the same as true.

Awesome.


Viewing all articles
Browse latest Browse all 8

Trending Articles