aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/HTMLImageElement.webidl
diff options
context:
space:
mode:
authorDan Robertson <dan@dlrobertson.com>2018-12-14 03:59:03 +0000
committerDan Robertson <dan@dlrobertson.com>2018-12-17 15:28:42 +0000
commitc46508e497e503c8fd42deb26aa536060334a9c9 (patch)
tree526fba0f92f508c9e54559cde967241dd118378f /components/script/dom/webidls/HTMLImageElement.webidl
parent1e983d86c05d988779177775ee1ef9b835400960 (diff)
downloadservo-c46508e497e503c8fd42deb26aa536060334a9c9.tar.gz
servo-c46508e497e503c8fd42deb26aa536060334a9c9.zip
Update src/href attributes to be a USVString
The following IDLs have the src/href attributes typed as a DOMString while in the spec the attribute has been updated to be a USVString: - HTMLIFrameElement - HTMLImageElement - HTMLInputElement - HTMLLinkElement - HTMLMediaElement - HTMLScriptElement
Diffstat (limited to 'components/script/dom/webidls/HTMLImageElement.webidl')
-rw-r--r--components/script/dom/webidls/HTMLImageElement.webidl6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/webidls/HTMLImageElement.webidl b/components/script/dom/webidls/HTMLImageElement.webidl
index e8958f83958..e5697879e29 100644
--- a/components/script/dom/webidls/HTMLImageElement.webidl
+++ b/components/script/dom/webidls/HTMLImageElement.webidl
@@ -8,9 +8,9 @@ interface HTMLImageElement : HTMLElement {
[CEReactions]
attribute DOMString alt;
[CEReactions]
- attribute DOMString src;
+ attribute USVString src;
[CEReactions]
- attribute DOMString srcset;
+ attribute USVString srcset;
[CEReactions]
attribute DOMString? crossOrigin;
[CEReactions]
@@ -24,7 +24,7 @@ interface HTMLImageElement : HTMLElement {
readonly attribute unsigned long naturalWidth;
readonly attribute unsigned long naturalHeight;
readonly attribute boolean complete;
- readonly attribute DOMString currentSrc;
+ readonly attribute USVString currentSrc;
// also has obsolete members
};