Skip to main content

Bug Tracker

Side navigation

#14192 closed bug (duplicate)

Opened July 28, 2013 03:41AM UTC

Closed July 28, 2013 04:41PM UTC

$(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:
Description

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

Attachments (0)
Change History (2)

Changed July 28, 2013 04:39PM UTC by dmethvin comment:1

#14193 is a duplicate of this ticket.

Changed July 28, 2013 04:41PM UTC by dmethvin comment:2

resolution: → duplicate
status: newclosed

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