aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls
diff options
context:
space:
mode:
authorKagami Sascha Rosylight <saschanaz@outlook.com>2019-10-25 15:46:52 +0900
committerKagami Sascha Rosylight <saschanaz@outlook.com>2019-10-29 21:35:40 +0900
commit691af0e98b95cb39a836319ecd10a35ce75b8db2 (patch)
tree8a25c0ae59bbab9b23016a259eabfc945c73b3a6 /components/script/dom/webidls
parent97c01fc4792c6bc0edd2d588470f38a7f02d9661 (diff)
downloadservo-691af0e98b95cb39a836319ecd10a35ce75b8db2.tar.gz
servo-691af0e98b95cb39a836319ecd10a35ce75b8db2.zip
Support stringifier attributes
Diffstat (limited to 'components/script/dom/webidls')
-rw-r--r--components/script/dom/webidls/DOMTokenList.webidl3
-rw-r--r--components/script/dom/webidls/HTMLHyperlinkElementUtils.webidl9
-rw-r--r--components/script/dom/webidls/Location.webidl7
-rw-r--r--components/script/dom/webidls/MediaList.webidl3
-rw-r--r--components/script/dom/webidls/URL.webidl7
-rw-r--r--components/script/dom/webidls/WorkerLocation.webidl7
6 files changed, 6 insertions, 30 deletions
diff --git a/components/script/dom/webidls/DOMTokenList.webidl b/components/script/dom/webidls/DOMTokenList.webidl
index c4b1ff776bc..ed4a541f730 100644
--- a/components/script/dom/webidls/DOMTokenList.webidl
+++ b/components/script/dom/webidls/DOMTokenList.webidl
@@ -22,8 +22,7 @@ interface DOMTokenList {
void replace(DOMString token, DOMString newToken);
[CEReactions, Pure]
- attribute DOMString value;
+ stringifier attribute DOMString value;
- stringifier;
iterable<DOMString?>;
};
diff --git a/components/script/dom/webidls/HTMLHyperlinkElementUtils.webidl b/components/script/dom/webidls/HTMLHyperlinkElementUtils.webidl
index 7c4750a58f6..2f0f0ae68c0 100644
--- a/components/script/dom/webidls/HTMLHyperlinkElementUtils.webidl
+++ b/components/script/dom/webidls/HTMLHyperlinkElementUtils.webidl
@@ -4,10 +4,8 @@
// https://html.spec.whatwg.org/multipage/#htmlhyperlinkelementutils
interface mixin HTMLHyperlinkElementUtils {
- // [CEReactions]
- // stringifier attribute USVString href;
[CEReactions]
- attribute USVString href;
+ stringifier attribute USVString href;
readonly attribute USVString origin;
[CEReactions]
attribute USVString protocol;
@@ -27,9 +25,4 @@ interface mixin HTMLHyperlinkElementUtils {
attribute USVString search;
[CEReactions]
attribute USVString hash;
-
- // Adding a separate stringifier method until
- // https://github.com/servo/servo/issues/7590 adds attribute stringifier
- // support.
- stringifier;
};
diff --git a/components/script/dom/webidls/Location.webidl b/components/script/dom/webidls/Location.webidl
index 8dd69f2c36a..4120fc2731d 100644
--- a/components/script/dom/webidls/Location.webidl
+++ b/components/script/dom/webidls/Location.webidl
@@ -4,7 +4,7 @@
// https://html.spec.whatwg.org/multipage/#location
[Exposed=Window, Unforgeable] interface Location {
- /*stringifier*/ [Throws] attribute USVString href;
+ [Throws] stringifier attribute USVString href;
[Throws] readonly attribute USVString origin;
[Throws] attribute USVString protocol;
[Throws] attribute USVString host;
@@ -19,9 +19,4 @@
[Throws] void reload();
//[SameObject] readonly attribute USVString[] ancestorOrigins;
-
- // This is only doing as well as gecko right now.
- // https://github.com/servo/servo/issues/7590 is on file for
- // adding attribute stringifier support.
- [Throws] stringifier;
};
diff --git a/components/script/dom/webidls/MediaList.webidl b/components/script/dom/webidls/MediaList.webidl
index 0851fb5c220..b2ba10f0d7a 100644
--- a/components/script/dom/webidls/MediaList.webidl
+++ b/components/script/dom/webidls/MediaList.webidl
@@ -3,10 +3,9 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://drafts.csswg.org/cssom/#the-medialist-interface
-// [LegacyArrayClass]
[Exposed=Window]
interface MediaList {
- /* stringifier */ attribute [TreatNullAs=EmptyString] DOMString mediaText;
+ stringifier attribute [TreatNullAs=EmptyString] DOMString mediaText;
readonly attribute unsigned long length;
getter DOMString? item(unsigned long index);
void appendMedium(DOMString medium);
diff --git a/components/script/dom/webidls/URL.webidl b/components/script/dom/webidls/URL.webidl
index d51f675ec0a..47a1ef53129 100644
--- a/components/script/dom/webidls/URL.webidl
+++ b/components/script/dom/webidls/URL.webidl
@@ -8,7 +8,7 @@
interface URL {
[Throws] constructor(USVString url, optional USVString base);
[SetterThrows]
- /*stringifier*/ attribute USVString href;
+ stringifier attribute USVString href;
readonly attribute USVString origin;
attribute USVString protocol;
attribute USVString username;
@@ -27,9 +27,4 @@ interface URL {
static void revokeObjectURL(DOMString url);
USVString toJSON();
-
- // This is only doing as well as gecko right now.
- // https://github.com/servo/servo/issues/7590 is on file for
- // adding attribute stringifier support.
- stringifier;
};
diff --git a/components/script/dom/webidls/WorkerLocation.webidl b/components/script/dom/webidls/WorkerLocation.webidl
index faaf10932bc..8985da7e6e9 100644
--- a/components/script/dom/webidls/WorkerLocation.webidl
+++ b/components/script/dom/webidls/WorkerLocation.webidl
@@ -5,7 +5,7 @@
// https://html.spec.whatwg.org/multipage/#worker-locations
[Exposed=Worker]
interface WorkerLocation {
- /*stringifier*/ readonly attribute USVString href;
+ stringifier readonly attribute USVString href;
readonly attribute USVString origin;
readonly attribute USVString protocol;
readonly attribute USVString host;
@@ -14,9 +14,4 @@ interface WorkerLocation {
readonly attribute USVString pathname;
readonly attribute USVString search;
readonly attribute USVString hash;
-
- // This is only doing as well as gecko right now.
- // https://github.com/servo/servo/issues/7590 is on file for
- // adding attribute stringifier support.
- stringifier;
};