OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * Copyright (C) 2012 Motorola Mobility Inc. | 3 * Copyright (C) 2012 Motorola Mobility Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 14 matching lines...) Expand all Loading... |
25 */ | 25 */ |
26 | 26 |
27 // https://url.spec.whatwg.org/#url | 27 // https://url.spec.whatwg.org/#url |
28 | 28 |
29 [ | 29 [ |
30 Constructor(USVString url, optional USVString base), | 30 Constructor(USVString url, optional USVString base), |
31 Exposed=(Window,Worker), | 31 Exposed=(Window,Worker), |
32 ImplementedAs=DOMURL, | 32 ImplementedAs=DOMURL, |
33 RaisesException=Constructor, | 33 RaisesException=Constructor, |
34 ] interface URL { | 34 ] interface URL { |
35 // TODO(philipj): Implement domainToASCII() and domainToUnicode(). | 35 // TODO(foolip): Implement domainToASCII() and domainToUnicode(). |
36 // crbug.com/493908 | 36 // crbug.com/493908 |
37 // static USVString domainToASCII(USVString domain); | 37 // static USVString domainToASCII(USVString domain); |
38 // static USVString domainToUnicode(USVString domain); | 38 // static USVString domainToUnicode(USVString domain); |
39 | 39 |
40 stringifier attribute USVString href; | 40 stringifier attribute USVString href; |
41 readonly attribute USVString origin; | 41 readonly attribute USVString origin; |
42 | 42 |
43 attribute USVString protocol; | 43 attribute USVString protocol; |
44 attribute USVString username; | 44 attribute USVString username; |
45 attribute USVString password; | 45 attribute USVString password; |
46 attribute USVString host; | 46 attribute USVString host; |
47 attribute USVString hostname; | 47 attribute USVString hostname; |
48 attribute USVString port; | 48 attribute USVString port; |
49 attribute USVString pathname; | 49 attribute USVString pathname; |
50 attribute USVString search; | 50 attribute USVString search; |
51 readonly attribute URLSearchParams searchParams; | 51 readonly attribute URLSearchParams searchParams; |
52 attribute USVString hash; | 52 attribute USVString hash; |
53 }; | 53 }; |
OLD | NEW |