diff --git a/url.bs b/url.bs index 7d6ed2dd..67d288ba 100644 --- a/url.bs +++ b/url.bs @@ -2483,6 +2483,8 @@ interface URL { attribute USVString search; [SameObject] readonly attribute URLSearchParams searchParams; attribute USVString hash; + + USVString toJSON(); }; @@ -2579,8 +2581,9 @@ url.pathname // "/%F0%9F%8F%B3%EF%B8%8F%E2%80%8D%F0%9F%8C%88"

{{URL}} members

-

The href attribute's getter must return the -serialization of context object's url. +

The href attribute's getter and the +toJSON() method, when invoked, must return the +serialization of context object's url.

The href attribute's setter must run these steps: