Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

url: Update url implementation conformance #49

Closed
jasnell opened this issue Jun 3, 2015 · 9 comments
Closed

url: Update url implementation conformance #49

jasnell opened this issue Jun 3, 2015 · 9 comments
Labels

Comments

@jasnell
Copy link
Member

jasnell commented Jun 3, 2015

Opening this issue to track the activity. The url module currently does not completely conform to the current url standards (https://url.spec.whatwg.org/) and browser behavior. We'll eventually need to get the implementation updated once the general performance improvements have been made.

There are a number of open issues in http://github.com/joyent/node that deal with url conformance. I will point those to this issue and hold them open until the conformance updates have been made.

@Fishrock123
Copy link
Contributor

I think there was some discussion surrounding nodejs/node#1650 (originally: nodejs/node#933, nodejs/node#1588, nodejs/node#1591) about URL spec conformance, and I think the discussion panned out as "it's not going to be that way for the forseeable future due to potential breakage". It was suggested (by @isaacs I think) that having a spec-compliant URL module in userland would be good.

@jasnell
Copy link
Member Author

jasnell commented Jun 10, 2015

I've been contemplating a "url2" module... it's ugly, but it may be the least ugly of the approaches currently.

@Fishrock123
Copy link
Contributor

I really don't think that is a good direction to go in. :/

@jasnell
Copy link
Member Author

jasnell commented Jun 10, 2015

Not in core. As a separate module largely to work on the impl.
On Jun 9, 2015 8:18 PM, "Jeremiah Senkpiel" notifications@github.com
wrote:

I really don't think that is a good direction to go in. :/


Reply to this email directly or view it on GitHub
nodejs/node#49 (comment).

@ahdinosaur
Copy link

👍 to having a spec-compliant URL module in userland

@Sebmaster
Copy link

We're currently building a compliant URL lib as part of jsdom at jsdom/whatwg-url. The plan is to have strict spec conformance and closely track and align with the spec (although yesterdays/todays changes aren't in yet).

@stevenvachon
Copy link

stevenvachon commented Jun 19, 2015

@Sebmaster that sounds great. Perhaps I'll use it in urlobj I'm using it in specurl which aims to provide nodejs/node#616 and more

@rvagg
Copy link
Member

rvagg commented Jun 19, 2015

Just to echo @Fishrock123 here: we netted out at leaving things as they are and accepting "non-compliance" (although there was even much argument about whether there really was something to comply with). The whole episode was long, drawn-out and kind of painful, as you would expect when talking about something that could break for large parts of the ecosystem in unknown and unexpected ways when you even make small changes—hence the aborted attempt to change the url module just for performance while bringing in some subtle changes that were actually quite major for some uses.

@rvagg
Copy link
Member

rvagg commented Aug 24, 2015

discussion should be moved to nodejs/node now, I don't think this has any bearing on convergence per se

@rvagg rvagg closed this as completed Aug 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants