Welcome to RocketMonkeys.com!
This is my personal site, where I store my rants, pictures, and movie reviews. Have a look around, register and leave comments.
-James
Show: all [rants] movies pictures
Page: Previous << 0 1 2 3 4 5 6 [7] 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 >> Next
More IE madness: Internet Explorer 7 does not support min-width for tables
Posted by james on Feb. 4, 2010
This is maddening. IE7 "supports" the CSS min-width property. I use quotes, because it truly doesn't. This works:
<style>
div {
width:80%;
min-width:500px;
}
</style>
<div>
This grows with the page, but has a minimum width too.
</div>
That's great, and very useful. But this does not work:
<style>
table {
width:80%;
min-width:500px;
}
</style>
<table>
<tr>
<td>
This is broken.
</td>
</tr>
</table>
So while IE7 supposedly supports the min-width property, it doesn't work in this situation. What a huge pain in the butt. And how completely typical for IE.
This is a quick-fix hack:
<style>
div {
width:80%;
min-width:500px;
}
table {
width:100%;
}
</style>
<div>
<table>
<tr>
<td>
This grows with the page, but has a minimum width too.
</td>
</tr>
</table>
</div>
Since the fix is so simple, you might think this isn't that big a problem. It is. Buggy browsers are always a problem, and cost a *ton* of money. I'm sure it would be completely staggering to calculate the amount of dev hours wasted (and therefore money lost) on working around CSS bugs in IE, and that's not even considering the non-browser that is IE6.
Yet another IE bug - innerHTML of a PRE does not preserve whitespace
Posted by james on Jan. 28, 2010
I was working on Monkey Analytics when I noticed this bug:
<pre id="some-pre">This
should
appear
on
separate
lines.</pre>
This is fine, but when you do this in IE7:
<script>
document.getElementById('some-pre').innerHMTL = document.getElementById('some-pre').innerHMTL;
</script>
It strips all the whitespace out, putting everything on a single line. Why? In all other browsers, innerHTML returns the contents of a PRE. In IE7, innerHTML returns the contents with all whitespace consolidated and altered, so there are no linebreaks.
So this is yet another IE bug. What a giant pile of crap. It's hard to imagine any serious web developer voluntarily using IE to do anything.
Thanks to this blog post for confirming what I've seen.
Google Phone: Nexus One
Posted by james on Jan. 5, 2010
Oh man!
http://www.google.com/phone/
I haven't even seen this phone in person, but I'm obsessed with it. Might just be the best phone out there right now (iPhone included). We'll see (if I ever get one...).
Page: Previous << 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 >> Next
