4 ms·
These days, a lot of the historic compatibility issues are either baked directly into the spec (eg https://dom.spec.whatwg.org/#concept-document-quirks https://
by csande17 3y ago
These days, a lot of the historic compatibility issues are either baked directly into the spec (eg https://dom.spec.whatwg.org/#concept-document-quirks https://dom.spec.whatwg.org/#concept-document-quirks) or hard-coded to only apply on specific websites (eg https://github.com/WebKit/WebKit/blob/main/Source/WebCore/page/Quirks.cpp https://github.com/WebKit/WebKit/blob/main/Source/WebCore/pa...). Unless you work for a company that's too big to fail, you're unlikely to encounter the latter.
- DiggyJohnson 3y agoThis is a great link directly to the source code (`Quirks.cpp`). Here's a fun little snippet from near the top: #if PLATFORM(IOS_FAMILY) static inline bool isYahooMail(Document& document) { auto host = document.topDocument().url().host(); return host.startsWith("mail."_s) && topPrivatelyControlledDomain(host.toString()).startsWith("yahoo."_s); } #endif