Skip to content

Commit f9a5c54

Browse files
Closure Teamcopybara-github
Closure Team
authored andcommitted
Add URL.canParse to externs.
https://url.spec.whatwg.org/#dom-url-canparse PiperOrigin-RevId: 618998846
1 parent b539914 commit f9a5c54

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

externs/browser/url.js

+8
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,14 @@ URL.domainToUnicode = function(domain) {};
186186
*/
187187
URL.createObjectURL = function(obj) {};
188188

189+
/**
190+
* @see https://url.spec.whatwg.org
191+
* @param {!URL|string} url
192+
* @param {(!URL|string)=} base
193+
* @return {boolean}
194+
*/
195+
URL.canParse = function(url, base) {};
196+
189197
/**
190198
* @see http://www.w3.org/TR/FileAPI/#dfn-revokeObjectURL
191199
* @param {!URL|string} url

0 commit comments

Comments
 (0)