Title: url.parse now encodes components · Issue #2113 · nodejs/node · GitHub
Open Graph Title: url.parse now encodes components · Issue #2113 · nodejs/node
X Title: url.parse now encodes components · Issue #2113 · nodejs/node
Description: This behavior changed between Node-0.10 and 0.12/iojs and does not appear to be documented anywhere. io.js v2.3.3: > url.parse("http://example.com/{z}/{x}/{y}.png#foo{}") { protocol: 'http:', slashes: true, auth: null, host: 'example.com...
Open Graph Description: This behavior changed between Node-0.10 and 0.12/iojs and does not appear to be documented anywhere. io.js v2.3.3: > url.parse("http://example.com/{z}/{x}/{y}.png#foo{}") { protocol: 'http:', slash...
X Description: This behavior changed between Node-0.10 and 0.12/iojs and does not appear to be documented anywhere. io.js v2.3.3: > url.parse("http://example.com/{z}/{x}/{y}.png#foo{}") { protocol: &...
Opengraph URL: https://github.com/nodejs/node/issues/2113
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"url.parse now encodes components","articleBody":"This behavior changed between Node-0.10 and 0.12/iojs and does not appear to be documented anywhere.\n\nio.js v2.3.3:\n\n```\n\u003e url.parse(\"http://example.com/{z}/{x}/{y}.png#foo{}\")\n{ protocol: 'http:',\n slashes: true,\n auth: null,\n host: 'example.com',\n port: null,\n hostname: 'example.com',\n hash: '#foo%7B%7D',\n search: null,\n query: null,\n pathname: '/%7Bz%7D/%7Bx%7D/%7By%7D.png',\n path: '/%7Bz%7D/%7Bx%7D/%7By%7D.png',\n href: 'http://example.com/%7Bz%7D/%7Bx%7D/%7By%7D.png#foo%7B%7D' }\n```\n\nnode.js v0.10.39:\n\n```\n\u003e url.parse(\"http://example.com/{z}/{x}/{y}.png#foo{}\")\n{ protocol: 'http:',\n slashes: true,\n auth: null,\n host: 'example.com',\n port: null,\n hostname: 'example.com',\n hash: '#foo{}',\n search: null,\n query: null,\n pathname: '/{z}/{x}/{y}.png',\n path: '/{z}/{x}/{y}.png',\n href: 'http://example.com/{z}/{x}/{y}.png#foo{}' }\n```\n\nThis also means that URIs no longer roundtrip:\n\niojs v2.3.3\n\n```\n\u003e url.format(url.parse(\"http://example.com/{z}/{x}/{y}.png#foo{}\"))\n'http://example.com/%7Bz%7D/%7Bx%7D/%7By%7D.png#foo%7B%7D'\n```\n\nnode.js v0.10.39:\n\n```\n\u003e url.format(url.parse(\"http://example.com/{z}/{x}/{y}.png#foo{}\"))\n'http://example.com/{z}/{x}/{y}.png#foo{}'\n```\n","author":{"url":"https://github.com/sethfitz","@type":"Person","name":"sethfitz"},"datePublished":"2015-07-06T19:12:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":23},"url":"https://github.com/2113/node/issues/2113"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d80a500b-4c64-413d-6e5b-56edd8958357 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CBA0:1F01:1391464:1A8D4D8:6A502DE1 |
| html-safe-nonce | cb11bdb7e0c241b7da2713099115c85f91bbdf20c9f6167f39140f359abd694d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkEwOjFGMDE6MTM5MTQ2NDoxQThENEQ4OjZBNTAyREUxIiwidmlzaXRvcl9pZCI6IjQ2ODMyOTMyOTEyMjI5MzcwNTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f73924a6c40b9f0fc5fc2272b68836e7412f32b3a054087b65ac86474668b985 |
| hovercard-subject-tag | issue:93354696 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/2113/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f7f85407abac0846029b61238fcf850a949e00491997faf5d0c7901490038e55/nodejs/node/issues/2113 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f7f85407abac0846029b61238fcf850a949e00491997faf5d0c7901490038e55/nodejs/node/issues/2113 |
| og:image:alt | This behavior changed between Node-0.10 and 0.12/iojs and does not appear to be documented anywhere. io.js v2.3.3: > url.parse("http://example.com/{z}/{x}/{y}.png#foo{}") { protocol: 'http:', slash... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sethfitz |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d90666eaf032b7eb8975a378efe38e37f4ebb96c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width