summaryrefslogtreecommitdiff
path: root/doc/api/url.md
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2017-06-23 08:51:44 +0800
committerTimothy Gu <timothygu99@gmail.com>2017-07-30 19:11:43 +0800
commitd074b2f427165024984c81fb12166696362b0b86 (patch)
tree2a40b7af4b512bd66a08ff094b781e3fad688494 /doc/api/url.md
parente95acebf3af15c8ac51ff8a38e915cf4efb87036 (diff)
downloadandroid-node-v8-d074b2f427165024984c81fb12166696362b0b86.tar.gz
android-node-v8-d074b2f427165024984c81fb12166696362b0b86.tar.bz2
android-node-v8-d074b2f427165024984c81fb12166696362b0b86.zip
doc: update url.origin IDNA behavior
Fixes: 413691fde0 "url: expose WHATWG url.origin as ASCII" PR-URL: https://github.com/nodejs/node/pull/14478 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'doc/api/url.md')
-rw-r--r--doc/api/url.md6
1 files changed, 2 insertions, 4 deletions
diff --git a/doc/api/url.md b/doc/api/url.md
index bdb04a23dd..a4fe496ba0 100644
--- a/doc/api/url.md
+++ b/doc/api/url.md
@@ -211,9 +211,7 @@ will be thrown.
* {string}
-Gets the read-only serialization of the URL's origin. Unicode characters that
-may be contained within the hostname will be encoded as-is without [Punycode][]
-encoding.
+Gets the read-only serialization of the URL's origin.
```js
const { URL } = require('url');
@@ -226,7 +224,7 @@ console.log(myURL.origin);
const { URL } = require('url');
const idnURL = new URL('https://你好你好');
console.log(idnURL.origin);
-// Prints https://你好你好
+// Prints https://xn--6qqa088eba
console.log(idnURL.hostname);
// Prints xn--6qqa088eba