Hacker News new | past | comments | ask | show | jobs | submit login

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) or hard-coded to only apply on specific websites (eg 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.



This 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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: