Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use USVString for all URLs #1282

Merged
merged 5 commits into from
May 20, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -8711,7 +8711,7 @@ partial /*sealed*/ interface <dfn>Document</dfn> {

// <span>dynamic markup insertion</span>
[<span>CEReactions</span>] <span>Document</span> <span data-x="dom-document-open">open</span>(optional DOMString type = "text/html", optional DOMString replace = "");
<span>WindowProxy</span> <span data-x="dom-document-open">open</span>(DOMString url, DOMString name, DOMString features, optional boolean replace = false);
<span>WindowProxy</span> <span data-x="dom-document-open">open</span>(USVString url, DOMString name, DOMString features, optional boolean replace = false);
[<span>CEReactions</span>] void <span data-x="dom-document-close">close</span>();
[<span>CEReactions</span>] void <span data-x="dom-document-write">write</span>(DOMString... text);
[<span>CEReactions</span>] void <span data-x="dom-document-writeln">writeln</span>(DOMString... text);
Expand Down Expand Up @@ -9395,7 +9395,7 @@ partial /*sealed*/ interface <dfn>Document</dfn> {
<h4>Loading XML documents</h4>

<pre class="idl">partial interface <span>XMLDocument</span> {
[<span>CEReactions</span>] boolean <span data-x="dom-XMLDocument-load">load</span>(DOMString url);
[<span>CEReactions</span>] boolean <span data-x="dom-XMLDocument-load">load</span>(USVString url);
};</pre>

<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/576 -->
Expand Down Expand Up @@ -24764,7 +24764,7 @@ interface <dfn>HTMLImageElement</dfn> : <span>HTMLElement</span> {
readonly attribute unsigned long <span data-x="dom-img-naturalWidth">naturalWidth</span>;
readonly attribute unsigned long <span data-x="dom-img-naturalHeight">naturalHeight</span>;
readonly attribute boolean <span data-x="dom-img-complete">complete</span>;
readonly attribute DOMString <span data-x="dom-img-currentSrc">currentSrc</span>;
readonly attribute USVString <span data-x="dom-img-currentSrc">currentSrc</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-img-referrerPolicy">referrerPolicy</span>;
};</pre>
</dd>
Expand Down Expand Up @@ -58869,7 +58869,7 @@ interface <dfn>HTMLCanvasElement</dfn> : <span>HTMLElement</span> {
<span>RenderingContext</span>? <span data-x="dom-canvas-getContext">getContext</span>(DOMString contextId, any... arguments);
boolean <span data-x="dom-canvas-probablySupportsContext">probablySupportsContext</span>(DOMString contextId, any... arguments);

DOMString <span data-x="dom-canvas-toDataURL">toDataURL</span>(optional DOMString type, any... arguments);
USVString <span data-x="dom-canvas-toDataURL">toDataURL</span>(optional DOMString type, any... arguments);
void <span data-x="dom-canvas-toBlob">toBlob</span>(<span>BlobCallback</span> _callback, optional DOMString type, any... arguments);
};

Expand Down Expand Up @@ -78006,7 +78006,7 @@ dictionary <dfn>DragEventInit</dfn> : <span>MouseEventInit</span> {
attribute any <span data-x="dom-opener">opener</span>;
[Replaceable] readonly attribute <span>WindowProxy</span> <span data-x="dom-parent">parent</span>;
readonly attribute <span>Element</span>? <span data-x="dom-frameElement">frameElement</span>;
<span>WindowProxy</span>? <span data-x="dom-open">open</span>(optional DOMString url = "about:blank", optional DOMString target = "_blank", [TreatNullAs=EmptyString] optional DOMString features = "", optional boolean replace = false);
<span>WindowProxy</span>? <span data-x="dom-open">open</span>(optional USVString url = "about:blank", optional DOMString target = "_blank", [TreatNullAs=EmptyString] optional DOMString features = "", optional boolean replace = false);
<span data-x="dom-window-namedItem">getter</span> <span data-x="idl-object">object</span> (DOMString name);
// Since this is the global object, the IDL named getter adds a NamedPropertiesObject exotic
// object on the prototype chain. Indeed, this does not make the global object an exotic object.
Expand Down Expand Up @@ -87017,15 +87017,15 @@ interface <dfn>NavigatorOnLine</dfn> {
<pre class="idl">[Constructor(DOMString type, optional <span>ErrorEventInit</span> eventInitDict), Exposed=(Window,Worker)]
interface <dfn>ErrorEvent</dfn> : <span>Event</span> {
readonly attribute DOMString <span data-x="dom-ErrorEvent-message">message</span>;
readonly attribute DOMString <span data-x="dom-ErrorEvent-filename">filename</span>;
readonly attribute USVString <span data-x="dom-ErrorEvent-filename">filename</span>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure about this one?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://html.spec.whatwg.org/multipage/webappapis.html#runtime-script-errors

Let location be an absolute URL that corresponds to the resource from which script was obtained.

...

Initialise event's filename attribute to location.

readonly attribute unsigned long <span data-x="dom-ErrorEvent-lineno">lineno</span>;
readonly attribute unsigned long <span data-x="dom-ErrorEvent-colno">colno</span>;
readonly attribute any <span data-x="dom-ErrorEvent-error">error</span>;
};

dictionary <dfn>ErrorEventInit</dfn> : <span>EventInit</span> {
DOMString message = "";
DOMString filename = "";
USVString filename = "";
unsigned long lineno = 0;
unsigned long colno = 0;
any error = null;
Expand Down Expand Up @@ -90192,12 +90192,12 @@ interface <dfn>NavigatorLanguage</dfn> {
<pre class="idl">[NoInterfaceObject]
interface <dfn>NavigatorContentUtils</dfn> {
// content handler registration
void <span data-x="dom-navigator-registerProtocolHandler">registerProtocolHandler</span>(DOMString scheme, DOMString url, DOMString title);
void <span data-x="dom-navigator-registerContentHandler">registerContentHandler</span>(DOMString mimeType, DOMString url, DOMString title);
DOMString <span data-x="dom-navigator-isProtocolHandlerRegistered">isProtocolHandlerRegistered</span>(DOMString scheme, DOMString url);
DOMString <span data-x="dom-navigator-isContentHandlerRegistered">isContentHandlerRegistered</span>(DOMString mimeType, DOMString url);
void <span data-x="dom-navigator-unregisterProtocolHandler">unregisterProtocolHandler</span>(DOMString scheme, DOMString url);
void <span data-x="dom-navigator-unregisterContentHandler">unregisterContentHandler</span>(DOMString mimeType, DOMString url);
void <span data-x="dom-navigator-registerProtocolHandler">registerProtocolHandler</span>(DOMString scheme, USVString url, DOMString title);
void <span data-x="dom-navigator-registerContentHandler">registerContentHandler</span>(DOMString mimeType, USVString url, DOMString title);
DOMString <span data-x="dom-navigator-isProtocolHandlerRegistered">isProtocolHandlerRegistered</span>(DOMString scheme, USVString url);
DOMString <span data-x="dom-navigator-isContentHandlerRegistered">isContentHandlerRegistered</span>(DOMString mimeType, USVString url);
void <span data-x="dom-navigator-unregisterProtocolHandler">unregisterProtocolHandler</span>(DOMString scheme, USVString url);
void <span data-x="dom-navigator-unregisterContentHandler">unregisterContentHandler</span>(DOMString mimeType, USVString url);
};</pre>

<p>The <dfn><code
Expand Down Expand Up @@ -111425,11 +111425,11 @@ if (s = prompt('What is your name?')) {
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-applet-alt">alt</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-applet-archive">archive</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-applet-code">code</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-applet-codeBase">codeBase</span>;
[<span>CEReactions</span>] attribute USVString <span data-x="dom-applet-codeBase">codeBase</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-applet-height">height</span>;
[<span>CEReactions</span>] attribute unsigned long <span data-x="dom-applet-hspace">hspace</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-applet-name">name</span>;
[<span>CEReactions</span>] attribute DOMString _<span data-x="dom-applet-object">object</span>; // the underscore is not part of the identifier <!-- it's a Web IDL escaping mechanism -->
[<span>CEReactions</span>] attribute USVString _<span data-x="dom-applet-object">object</span>; // the underscore is not part of the identifier <!-- it's a Web IDL escaping mechanism -->
[<span>CEReactions</span>] attribute unsigned long <span data-x="dom-applet-vspace">vspace</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-applet-width">width</span>;
};</pre>
Expand Down Expand Up @@ -111797,9 +111797,9 @@ if (s = prompt('What is your name?')) {
<pre class="idl">interface <dfn>HTMLFrameElement</dfn> : <span>HTMLElement</span> {
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-frame-name">name</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-frame-scrolling">scrolling</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-frame-src">src</span>;
[<span>CEReactions</span>] attribute USVString <span data-x="dom-frame-src">src</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-frame-frameBorder">frameBorder</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-frame-longDesc">longDesc</span>;
[<span>CEReactions</span>] attribute USVString <span data-x="dom-frame-longDesc">longDesc</span>;
[<span>CEReactions</span>] attribute boolean <span data-x="dom-frame-noResize">noResize</span>;
readonly attribute <span>Document</span>? <span data-x="dom-frame-contentDocument">contentDocument</span>;
readonly attribute <span>WindowProxy</span>? <span data-x="dom-frame-contentWindow">contentWindow</span>;
Expand Down Expand Up @@ -112077,7 +112077,7 @@ if (s = prompt('What is your name?')) {
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-iframe-align">align</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-iframe-scrolling">scrolling</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-iframe-frameBorder">frameBorder</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-iframe-longDesc">longDesc</span>;
[<span>CEReactions</span>] attribute USVString <span data-x="dom-iframe-longDesc">longDesc</span>;

[<span>CEReactions</span>, TreatNullAs=EmptyString] attribute DOMString <span data-x="dom-iframe-marginHeight">marginHeight</span>;
[<span>CEReactions</span>, TreatNullAs=EmptyString] attribute DOMString <span data-x="dom-iframe-marginWidth">marginWidth</span>;
Expand Down Expand Up @@ -112108,11 +112108,11 @@ if (s = prompt('What is your name?')) {

<pre class="idl">partial interface <span id="HTMLImageElement-partial">HTMLImageElement</span> {
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-img-name">name</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-img-lowsrc">lowsrc</span>;
[<span>CEReactions</span>] attribute USVString <span data-x="dom-img-lowsrc">lowsrc</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-img-align">align</span>;
[<span>CEReactions</span>] attribute unsigned long <span data-x="dom-img-hspace">hspace</span>;
[<span>CEReactions</span>] attribute unsigned long <span data-x="dom-img-vspace">vspace</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-img-longDesc">longDesc</span>;
[<span>CEReactions</span>] attribute USVString <span data-x="dom-img-longDesc">longDesc</span>;

[<span>CEReactions</span>, TreatNullAs=EmptyString] attribute DOMString <span data-x="dom-img-border">border</span>;
};</pre>
Expand Down