Unnecessary comments (was: Re: [jQuery] Re: jQuery(window).width() not registering sizes lower than 497 in Firefox.)

2009-09-24 Thread Bertilo Wennergren

Sam Doyle wrote:

> I just ran this:
> 
> 
> 
>  [...]

Those fake HTML comment lines ("") are completely
superfluous. They haven't been needed for about 10 years or so
(even since Netscape 1 and Mosaic dissappeared).

But people are still religiously putting them in their code,
wasting propably terabytes of useless characters every year.

Why?

-- 
Bertilo Wennergren 


[jQuery] Re: jQuery(window).width() not registering sizes lower than 497 in Firefox.

2009-09-22 Thread Sam Doyle

I just ran this:





and it yielded the correct result in firefox 3.5.3

On Sep 21, 8:03 pm, indigo0086  wrote:
> I'm working on implementing a menu and need to have information when
> the menu size is larger than the width of the window.  The problem is
> that pas a certain point, jQuery("body").width() keeps registering
> 497, despite being much smaller than that.  Has anyone had this issue