You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In quirks mode, layout emulates nonstandard behavior in Navigator 4 and Internet Explorer 5. This is essential in order to support websites that were built before the widespread adoption of web standards. In full standards mode, the behavior is (hopefully) the behavior described by the HTML and CSS specifications.
So we should move to "full standards mode". (The specs call this no-quirks mode.)
We tested this out over on #3679 (by @ray-kraesig) -- the branch added a doctype, and I nodded right past that (ah good, yes, we should get out of quirks mode) until I spotted some funny behavior and discovered to my surprise that it was that change that had introduced it 🙂 . Then I remembered we'd looked at this before, i.e. in this thread.
The symptom I found if you just add a doctype and html tags -- exactly like the diff quoted above -- is:
Say you're in a narrow with a long history, scrolled a ways back.
A new message comes in.
The message list will scroll all the way to the bottom.
Once we add KaTeX (that's #3679), it starts complaining (to the console, IIUC) about being in quirks mode. So that adds some motivation to deal with this.
(Discovered this while working on #3040 .)
Our HTML is actually invoking "quirks mode". We should add a
<!DOCTYPE html>
.As explained in the MDN article Quirks Mode and Standards Mode:
So we should move to "full standards mode". (The specs call this no-quirks mode.)
Here's the bare skeleton of a start on this:
The actual work of resolving this issue is what comes after that 😉 :
documentBody.clientHeight
changes.The text was updated successfully, but these errors were encountered: