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
This commit is contained in:
Dan Robertson 2018-12-14 03:59:03 +00:00
parent 1e983d86c0
commit c46508e497
No known key found for this signature in database
GPG key ID: 45C4A652C47E42A5
16 changed files with 127 additions and 73 deletions

View file

@ -6,7 +6,7 @@
[HTMLConstructor]
interface HTMLIFrameElement : HTMLElement {
[CEReactions]
attribute DOMString src;
attribute USVString src;
// [CEReactions]
// attribute DOMString srcdoc;

View file

@ -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
};

View file

@ -61,7 +61,7 @@ interface HTMLInputElement : HTMLElement {
[CEReactions, SetterThrows]
attribute unsigned long size;
[CEReactions]
attribute DOMString src;
attribute USVString src;
[CEReactions]
attribute DOMString step;
[CEReactions]

View file

@ -6,7 +6,7 @@
[HTMLConstructor]
interface HTMLLinkElement : HTMLElement {
[CEReactions]
attribute DOMString href;
attribute USVString href;
[CEReactions]
attribute DOMString? crossOrigin;
[CEReactions]

View file

@ -13,9 +13,9 @@ interface HTMLMediaElement : HTMLElement {
readonly attribute MediaError? error;
// network state
[CEReactions] attribute DOMString src;
[CEReactions] attribute USVString src;
attribute MediaProvider? srcObject;
readonly attribute DOMString currentSrc;
readonly attribute USVString currentSrc;
// [CEReactions] attribute DOMString crossOrigin;
const unsigned short NETWORK_EMPTY = 0;
const unsigned short NETWORK_IDLE = 1;

View file

@ -6,7 +6,7 @@
[HTMLConstructor]
interface HTMLScriptElement : HTMLElement {
[CEReactions]
attribute DOMString src;
attribute USVString src;
[CEReactions]
attribute DOMString type;
[CEReactions]