-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
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
baseURI
option
#1140
Labels
Comments
+1 |
I found a way, hope it can help you. const url = require('url');
url.resolve('/one/two/three', 'four'); // '/one/two/four'
url.resolve('http://example.com/', '/one'); // 'http://example.com/one'
url.resolve('http://example.com/one', '/two'); // 'http://example.com/two' |
fb55
added a commit
that referenced
this issue
May 1, 2022
If `baseURI` is defined, `.prop('src')` and `.prop('href')` will resolve URLs. Only works if the global `URL` object is available. Fixes #1140
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
a.attr('href') return att href
but a.prop('href') should can return full url when baseURI is set
The text was updated successfully, but these errors were encountered: