We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a reason this only uses the current URL for resolving relative URLs instead of using the <base> element?
<base>
https://github.com/unshiftio/url-parse/blob/master/index.js#L235
Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
The text was updated successfully, but these errors were encountered:
I don't think there is a reason. Support for the <base> element should be easy to add. cc: @3rd-Eden
Sorry, something went wrong.
Can we get away with it without adding platform specific code for it?
Since it should be available via document.baseURI could you not just add it onto the if statement? if (document && document.baseURI){}
document.baseURI
if (document && document.baseURI){}
It should be sufficient to add document && document.baseURI here.
document && document.baseURI
No branches or pull requests
Is there a reason this only uses the current URL for resolving relative URLs instead of using the
<base>
element?https://github.com/unshiftio/url-parse/blob/master/index.js#L235
Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
The text was updated successfully, but these errors were encountered: