<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/url-specification-and-browser-implementation-differences-qszzqakum" -->

---
title: URL specification and browser implementation differences
description: Differences between how Safari, Chrome, and Firefox parse URLs are explored, focusing on the WHATWG URL specification versus alternatives like RFC 3986. The...
canonical: https://daily.dev/posts/url-specification-and-browser-implementation-differences-qszzqakum
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: URL specification and browser implementation differences | daily.dev
og:description: Differences between how Safari, Chrome, and Firefox parse URLs are explored, focusing on the WHATWG URL specification versus alternatives like RFC 3986. The...
og:url: https://daily.dev/posts/url-specification-and-browser-implementation-differences-qszzqakum
og:image: https://api.daily.dev/og/posts/qsZzQAKuM.png
og:image:alt: URL specification and browser implementation differences
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# URL specification and browser implementation differences

**[Yagiz Nizipli](https://daily.dev/sources/yagiz)** · 5 min read · 0 upvotes · 0 comments

## Summary

Differences between how Safari, Chrome, and Firefox parse URLs are explored, focusing on the WHATWG URL specification versus alternatives like RFC 3986. The piece explains what WHATWG is, how it differs from the W3C, and why browser implementations drift from the living spec. A concrete example is opaque hosts, added to the spec in December 2016: Safari and Ada URL parser correctly support opaque host URLs, while Chrome still returns a different hostname and pathname (a Chromium bug remains open), and Firefox similarly lags behind the specification.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.yagiz.co/url-parsing-and-browser-differences>

## Questions this post answers

### Why do Chrome, Firefox, and Safari return different results for the same URL with a non-special (opaque) host?

Safari and the Ada URL parser correctly implement the WHATWG URL specification's opaque hosts feature, added to the spec on December 28, 2016, and return consistent hostname and pathname values. Chrome does not support opaque hosts and returns a different hostname and pathname, with a Chromium bug report on this still open years after the spec change; Firefox shows the same non-conforming behavior.

_daily.dev surfaces spec updates like this so cross-browser URL handling doesn't catch you off guard._

### What is the difference between the WHATWG URL specification and RFC 3986?

WHATWG's URL specification is a living document maintained by the Web Hypertext Application Technology Working Group and is the one implemented by all major web browsers, while RFC 3986 (the URI Generic Syntax standard maintained via W3C reference) is used by other web-related tools like cURL. The two specs have evolved separately and differ in behavior for certain URL forms.

_Developers choosing between URL parsing standards can track spec divergence like this on daily.dev._

## Similar posts on daily.dev

- [Your Browser Probably Lies To The Big Sites \(Blame Chrome\)](https://daily.dev/posts/your-browser-probably-lies-to-the-big-sites-blame-chrome--q7aefturi) · Hackaday · 17 upvotes · 2 comments
- [Browsers Treat Big Sites Differently](https://daily.dev/posts/browsers-treat-big-sites-differently-hldbesd4b) · Lobsters · 8 upvotes · 1 comments
- [How Browsers Work](https://daily.dev/posts/how-browsers-work-1wzz0te7k) · Hacker News · 2 upvotes · 0 comments
- [Chris’ Corner: URLs](https://daily.dev/posts/chris-corner-urls-08z9rmhkg) · CodePen · 0 upvotes · 0 comments
- [New to the web platform in July](https://daily.dev/posts/new-to-the-web-platform-in-july-pfpy0b4gh) · web.dev · 0 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev)

[View this post on daily.dev](https://daily.dev/posts/url-specification-and-browser-implementation-differences-qszzqakum)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"URL specification and browser implementation differences","url":"https://daily.dev/posts/url-specification-and-browser-implementation-differences-qszzqakum","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/url-specification-and-browser-implementation-differences-qszzqakum"},"datePublished":"2026-09-13T19:57:44.855Z","dateModified":"2026-09-13T19:59:44.746Z","description":"Differences between how Safari, Chrome, and Firefox parse URLs are explored, focusing on the WHATWG URL specification versus alternatives like RFC 3986. The...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/2c348188026e93142dd97806c71e259d?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/2c348188026e93142dd97806c71e259d?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Yagiz Nizipli","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Yagiz Nizipli","logo":"https://media.daily.dev/image/upload/s--9Cscmaqk--/f_auto,q_auto/v1789329427/logos/yagiz?_a=BAMAMicg0","url":"https://daily.dev/sources/yagiz"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/url-specification-and-browser-implementation-differences-qszzqakum","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"webdev","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Yagiz Nizipli","item":"https://daily.dev/sources/yagiz"},{"@type":"ListItem","position":3,"name":"URL specification and browser implementation differences"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/url-specification-and-browser-implementation-differences-qszzqakum#faq","mainEntity":[{"@type":"Question","name":"Why do Chrome, Firefox, and Safari return different results for the same URL with a non-special (opaque) host?","acceptedAnswer":{"@type":"Answer","text":"Safari and the Ada URL parser correctly implement the WHATWG URL specification's opaque hosts feature, added to the spec on December 28, 2016, and return consistent hostname and pathname values. Chrome does not support opaque hosts and returns a different hostname and pathname, with a Chromium bug report on this still open years after the spec change; Firefox shows the same non-conforming behavior. daily.dev surfaces spec updates like this so cross-browser URL handling doesn't catch you off guard."}},{"@type":"Question","name":"What is the difference between the WHATWG URL specification and RFC 3986?","acceptedAnswer":{"@type":"Answer","text":"WHATWG's URL specification is a living document maintained by the Web Hypertext Application Technology Working Group and is the one implemented by all major web browsers, while RFC 3986 (the URI Generic Syntax standard maintained via W3C reference) is used by other web-related tools like cURL. The two specs have evolved separately and differ in behavior for certain URL forms. Developers choosing between URL parsing standards can track spec divergence like this on daily.dev."}}]}
```

