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: |
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
Change History (2)
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
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.
#14193 is a duplicate of this ticket.