Bug Tracker

Opened 10 years ago

Closed 10 years ago

#14192 closed bug (duplicate)

$(window).height() doesn't work correctly if <!DOCTYPE html> is not specified

Reported by: anynomys Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 2.0.3
Keywords: Cc:
Blocked by: Blocking:


If you don't specify Doctype of html and start with <html> directly, $(window).height() is returning same value with $(document).height() and it is not updating when window resizes. So basically it is returning wrong value if no doctype specified

Change History (2)

comment:1 Changed 10 years ago by dmethvin

#14193 is a duplicate of this ticket.

comment:2 Changed 10 years ago by dmethvin

Resolution: duplicate
Status: newclosed

Duplicate of #12388.
That's called quirks mode. Don't do that. jQuery doesn't support quirks mode, never has.

Note: See TracTickets for help on using tickets.