Explicitly place '/' before fragment for multipage spec links

This prevents us from 301 redirecting, which could cause the fragment to
get lost
This commit is contained in:
Corey Farwell 2015-10-10 12:07:10 -04:00
parent 85f2b6fc5b
commit 9b68d715de
97 changed files with 152 additions and 152 deletions

View file

@ -68,10 +68,10 @@ impl HTMLBodyElement {
}
impl HTMLBodyElementMethods for HTMLBodyElement {
// https://html.spec.whatwg.org/multipage#dom-body-bgcolor
// https://html.spec.whatwg.org/multipage/#dom-body-bgcolor
make_getter!(BgColor, "bgcolor");
// https://html.spec.whatwg.org/multipage#dom-body-bgcolor
// https://html.spec.whatwg.org/multipage/#dom-body-bgcolor
make_setter!(SetBgColor, "bgcolor");
// https://html.spec.whatwg.org/multipage/#dom-body-text

View file

@ -76,13 +76,13 @@ impl HTMLButtonElementMethods for HTMLButtonElement {
ValidityState::new(window.r())
}
// https://html.spec.whatwg.org/multipage#dom-fe-disabled
// https://html.spec.whatwg.org/multipage/#dom-fe-disabled
make_bool_getter!(Disabled);
// https://html.spec.whatwg.org/multipage#dom-fe-disabled
// https://html.spec.whatwg.org/multipage/#dom-fe-disabled
make_bool_setter!(SetDisabled, "disabled");
// https://html.spec.whatwg.org/multipage#dom-fae-form
// https://html.spec.whatwg.org/multipage/#dom-fae-form
fn GetForm(&self) -> Option<Root<HTMLFormElement>> {
self.form_owner()
}

View file

@ -52,7 +52,7 @@ impl HTMLFieldSetElement {
}
impl HTMLFieldSetElementMethods for HTMLFieldSetElement {
// https://html.spec.whatwg.org/multipage#dom-fieldset-elements
// https://html.spec.whatwg.org/multipage/#dom-fieldset-elements
fn Elements(&self) -> Root<HTMLCollection> {
#[derive(JSTraceable, HeapSizeOf)]
struct ElementsFilter;
@ -75,13 +75,13 @@ impl HTMLFieldSetElementMethods for HTMLFieldSetElement {
ValidityState::new(window.r())
}
// https://html.spec.whatwg.org/multipage#dom-fieldset-disabled
// https://html.spec.whatwg.org/multipage/#dom-fieldset-disabled
make_bool_getter!(Disabled);
// https://html.spec.whatwg.org/multipage#dom-fieldset-disabled
// https://html.spec.whatwg.org/multipage/#dom-fieldset-disabled
make_bool_setter!(SetDisabled, "disabled");
// https://html.spec.whatwg.org/multipage#dom-fae-form
// https://html.spec.whatwg.org/multipage/#dom-fae-form
fn GetForm(&self) -> Option<Root<HTMLFormElement>> {
self.form_owner()
}

View file

@ -228,10 +228,10 @@ impl RawLayoutHTMLInputElementHelpers for HTMLInputElement {
}
impl HTMLInputElementMethods for HTMLInputElement {
// https://html.spec.whatwg.org/multipage#dom-fe-disabled
// https://html.spec.whatwg.org/multipage/#dom-fe-disabled
make_bool_getter!(Disabled);
// https://html.spec.whatwg.org/multipage#dom-fe-disabled
// https://html.spec.whatwg.org/multipage/#dom-fe-disabled
make_bool_setter!(SetDisabled, "disabled");
// https://html.spec.whatwg.org/multipage/#dom-fae-form

View file

@ -47,7 +47,7 @@ impl HTMLLabelElement {
}
impl HTMLLabelElementMethods for HTMLLabelElement {
// https://html.spec.whatwg.org/multipage#dom-fae-form
// https://html.spec.whatwg.org/multipage/#dom-fae-form
fn GetForm(&self) -> Option<Root<HTMLFormElement>> {
self.form_owner()
}

View file

@ -94,7 +94,7 @@ impl HTMLObjectElementMethods for HTMLObjectElement {
// https://html.spec.whatwg.org/multipage/#dom-object-type
make_setter!(SetType, "type");
// https://html.spec.whatwg.org/multipage#dom-fae-form
// https://html.spec.whatwg.org/multipage/#dom-fae-form
fn GetForm(&self) -> Option<Root<HTMLFormElement>> {
self.form_owner()
}

View file

@ -78,16 +78,16 @@ fn collect_text(element: &Element, value: &mut DOMString) {
}
impl HTMLOptionElementMethods for HTMLOptionElement {
// https://html.spec.whatwg.org/multipage#dom-option-disabled
// https://html.spec.whatwg.org/multipage/#dom-option-disabled
make_bool_getter!(Disabled);
// https://html.spec.whatwg.org/multipage#dom-option-disabled
// https://html.spec.whatwg.org/multipage/#dom-option-disabled
fn SetDisabled(&self, disabled: bool) {
let elem = ElementCast::from_ref(self);
elem.set_bool_attribute(&atom!("disabled"), disabled)
}
// https://html.spec.whatwg.org/multipage#dom-option-text
// https://html.spec.whatwg.org/multipage/#dom-option-text
fn Text(&self) -> DOMString {
let element = ElementCast::from_ref(self);
let mut content = String::new();
@ -95,7 +95,7 @@ impl HTMLOptionElementMethods for HTMLOptionElement {
str_join(split_html_space_chars(&content), " ")
}
// https://html.spec.whatwg.org/multipage#dom-option-text
// https://html.spec.whatwg.org/multipage/#dom-option-text
fn SetText(&self, value: DOMString) {
let node = NodeCast::from_ref(self);
node.SetTextContent(Some(value))

View file

@ -54,7 +54,7 @@ impl HTMLOutputElementMethods for HTMLOutputElement {
ValidityState::new(window.r())
}
// https://html.spec.whatwg.org/multipage#dom-fae-form
// https://html.spec.whatwg.org/multipage/#dom-fae-form
fn GetForm(&self) -> Option<Root<HTMLFormElement>> {
self.form_owner()
}

View file

@ -583,12 +583,12 @@ impl HTMLScriptElementMethods for HTMLScriptElement {
// https://html.spec.whatwg.org/multipage/#dom-script-src
make_setter!(SetSrc, "src");
// https://html.spec.whatwg.org/multipage#dom-script-text
// https://html.spec.whatwg.org/multipage/#dom-script-text
fn Text(&self) -> DOMString {
Node::collect_text_contents(NodeCast::from_ref(self).children())
}
// https://html.spec.whatwg.org/multipage#dom-script-text
// https://html.spec.whatwg.org/multipage/#dom-script-text
fn SetText(&self, value: DOMString) {
let node = NodeCast::from_ref(self);
node.SetTextContent(Some(value))

View file

@ -68,13 +68,13 @@ impl HTMLSelectElementMethods for HTMLSelectElement {
fn Add(&self, _element: HTMLOptionElementOrHTMLOptGroupElement, _before: Option<HTMLElementOrLong>) {
}
// https://html.spec.whatwg.org/multipage#dom-fe-disabled
// https://html.spec.whatwg.org/multipage/#dom-fe-disabled
make_bool_getter!(Disabled);
// https://html.spec.whatwg.org/multipage#dom-fe-disabled
// https://html.spec.whatwg.org/multipage/#dom-fe-disabled
make_bool_setter!(SetDisabled, "disabled");
// https://html.spec.whatwg.org/multipage#dom-fae-form
// https://html.spec.whatwg.org/multipage/#dom-fae-form
fn GetForm(&self) -> Option<Root<HTMLFormElement>> {
self.form_owner()
}

View file

@ -123,13 +123,13 @@ impl HTMLTextAreaElementMethods for HTMLTextAreaElement {
// https://html.spec.whatwg.org/multipage/#dom-textarea-cols
make_limited_uint_setter!(SetCols, "cols", DEFAULT_COLS);
// https://html.spec.whatwg.org/multipage#dom-fe-disabled
// https://html.spec.whatwg.org/multipage/#dom-fe-disabled
make_bool_getter!(Disabled);
// https://html.spec.whatwg.org/multipage#dom-fe-disabled
// https://html.spec.whatwg.org/multipage/#dom-fe-disabled
make_bool_setter!(SetDisabled, "disabled");
// https://html.spec.whatwg.org/multipage#dom-fae-form
// https://html.spec.whatwg.org/multipage/#dom-fae-form
fn GetForm(&self) -> Option<Root<HTMLFormElement>> {
self.form_owner()
}

View file

@ -47,7 +47,7 @@ impl HTMLTitleElement {
}
impl HTMLTitleElementMethods for HTMLTitleElement {
// https://html.spec.whatwg.org/multipage#dom-title-text
// https://html.spec.whatwg.org/multipage/#dom-title-text
fn Text(&self) -> DOMString {
let node = NodeCast::from_ref(self);
let mut content = String::new();
@ -61,7 +61,7 @@ impl HTMLTitleElementMethods for HTMLTitleElement {
content
}
// https://html.spec.whatwg.org/multipage#dom-title-text
// https://html.spec.whatwg.org/multipage/#dom-title-text
fn SetText(&self, value: DOMString) {
let node = NodeCast::from_ref(self);
node.SetTextContent(Some(value))

View file

@ -5,7 +5,7 @@
enum CanvasWindingRule { "nonzero", "evenodd" };
// https://html.spec.whatwg.org/multipage#2dcontext
// https://html.spec.whatwg.org/multipage/#2dcontext
typedef (HTMLImageElement or
/* HTMLVideoElement or */
HTMLCanvasElement or

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#dedicatedworkerglobalscope
// https://html.spec.whatwg.org/multipage/#dedicatedworkerglobalscope
[Global/*=Worker,DedicatedWorker*/]
/*sealed*/ interface DedicatedWorkerGlobalScope : WorkerGlobalScope {
[Throws]

View file

@ -5,7 +5,7 @@
/*
* The origin of this IDL file is:
* https://dom.spec.whatwg.org/#interface-document
* https://html.spec.whatwg.org/multipage#the-document-object
* https://html.spec.whatwg.org/multipage/#the-document-object
*/
// https://dom.spec.whatwg.org/#interface-document
@ -75,7 +75,7 @@ Document implements ParentNode;
enum DocumentReadyState { "loading", "interactive", "complete" };
// https://html.spec.whatwg.org/multipage#the-document-object
// https://html.spec.whatwg.org/multipage/#the-document-object
// [OverrideBuiltins]
partial /*sealed*/ interface Document {
// resource metadata management

View file

@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
* The origin of this IDL file is
* https://html.spec.whatwg.org/multipage#eventhandler
* https://html.spec.whatwg.org/multipage/#eventhandler
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce

View file

@ -4,14 +4,14 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
* The origin of this IDL file is
* https://html.spec.whatwg.org/multipage#the-a-element
* https://html.spec.whatwg.org/multipage#other-elements,-attributes-and-apis
* https://html.spec.whatwg.org/multipage/#the-a-element
* https://html.spec.whatwg.org/multipage/#other-elements,-attributes-and-apis
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
// https://html.spec.whatwg.org/multipage#htmlanchorelement
// https://html.spec.whatwg.org/multipage/#htmlanchorelement
interface HTMLAnchorElement : HTMLElement {
// attribute DOMString target;
// attribute DOMString download;
@ -28,7 +28,7 @@ interface HTMLAnchorElement : HTMLElement {
};
//HTMLAnchorElement implements URLUtils;
// https://html.spec.whatwg.org/multipage#HTMLAnchorElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLAnchorElement-partial
partial interface HTMLAnchorElement {
attribute DOMString coords;
// attribute DOMString charset;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlappletelement
// https://html.spec.whatwg.org/multipage/#htmlappletelement
interface HTMLAppletElement : HTMLElement {
// attribute DOMString align;
// attribute DOMString alt;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlareaelement
// https://html.spec.whatwg.org/multipage/#htmlareaelement
interface HTMLAreaElement : HTMLElement {
// attribute DOMString alt;
// attribute DOMString coords;
@ -20,7 +20,7 @@ interface HTMLAreaElement : HTMLElement {
};
//HTMLAreaElement implements URLUtils;
// https://html.spec.whatwg.org/multipage#HTMLAreaElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLAreaElement-partial
partial interface HTMLAreaElement {
// attribute boolean noHref;
};

View file

@ -3,6 +3,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlaudioelement
// https://html.spec.whatwg.org/multipage/#htmlaudioelement
//[NamedConstructor=Audio(optional DOMString src)]
interface HTMLAudioElement : HTMLMediaElement {};

View file

@ -3,12 +3,12 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlbrelement
// https://html.spec.whatwg.org/multipage/#htmlbrelement
interface HTMLBRElement : HTMLElement {
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLBRElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLBRElement-partial
partial interface HTMLBRElement {
// attribute DOMString clear;
};

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlbaseelement
// https://html.spec.whatwg.org/multipage/#htmlbaseelement
interface HTMLBaseElement : HTMLElement {
// attribute DOMString href;
// attribute DOMString target;

View file

@ -9,7 +9,7 @@ interface HTMLBodyElement : HTMLElement {
};
HTMLBodyElement implements WindowEventHandlers;
// https://html.spec.whatwg.org/multipage#HTMLBodyElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLBodyElement-partial
partial interface HTMLBodyElement {
[TreatNullAs=EmptyString] attribute DOMString text;
//[TreatNullAs=EmptyString] attribute DOMString link;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlbuttonelement
// https://html.spec.whatwg.org/multipage/#htmlbuttonelement
interface HTMLButtonElement : HTMLElement {
// attribute boolean autofocus;
attribute boolean disabled;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlcanvaselement
// https://html.spec.whatwg.org/multipage/#htmlcanvaselement
typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
interface HTMLCanvasElement : HTMLElement {

View file

@ -3,12 +3,12 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmldlistelement
// https://html.spec.whatwg.org/multipage/#htmldlistelement
interface HTMLDListElement : HTMLElement {
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLDListElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLDListElement-partial
partial interface HTMLDListElement {
// attribute boolean compact;
};

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmldataelement
// https://html.spec.whatwg.org/multipage/#htmldataelement
interface HTMLDataElement : HTMLElement {
// attribute DOMString value;
};

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmldatalistelement
// https://html.spec.whatwg.org/multipage/#htmldatalistelement
interface HTMLDataListElement : HTMLElement {
readonly attribute HTMLCollection options;
};

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmldialogelement
// https://html.spec.whatwg.org/multipage/#htmldialogelement
interface HTMLDialogElement : HTMLElement {
attribute boolean open;
attribute DOMString returnValue;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmldirectoryelement
// https://html.spec.whatwg.org/multipage/#htmldirectoryelement
interface HTMLDirectoryElement : HTMLElement {
// attribute boolean compact;
};

View file

@ -3,12 +3,12 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmldivelement
// https://html.spec.whatwg.org/multipage/#htmldivelement
interface HTMLDivElement : HTMLElement {
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLDivElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLDivElement-partial
partial interface HTMLDivElement {
// attribute DOMString align;
};

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlelement
// https://html.spec.whatwg.org/multipage/#htmlelement
interface HTMLElement : Element {
// metadata attributes
attribute DOMString title;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlembedelement
// https://html.spec.whatwg.org/multipage/#htmlembedelement
interface HTMLEmbedElement : HTMLElement {
// attribute DOMString src;
// attribute DOMString type;
@ -14,7 +14,7 @@ interface HTMLEmbedElement : HTMLElement {
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLEmbedElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLEmbedElement-partial
partial interface HTMLEmbedElement {
// attribute DOMString align;
// attribute DOMString name;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlfieldsetelement
// https://html.spec.whatwg.org/multipage/#htmlfieldsetelement
interface HTMLFieldSetElement : HTMLElement {
attribute boolean disabled;
readonly attribute HTMLFormElement? form;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlfontelement
// https://html.spec.whatwg.org/multipage/#htmlfontelement
interface HTMLFontElement : HTMLElement {
[TreatNullAs=EmptyString] attribute DOMString color;
attribute DOMString face;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlformelement
// https://html.spec.whatwg.org/multipage/#htmlformelement
//[OverrideBuiltins]
interface HTMLFormElement : HTMLElement {
attribute DOMString acceptCharset;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlframeelement
// https://html.spec.whatwg.org/multipage/#htmlframeelement
interface HTMLFrameElement : HTMLElement {
// attribute DOMString name;
// attribute DOMString scrolling;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlframesetelement
// https://html.spec.whatwg.org/multipage/#htmlframesetelement
interface HTMLFrameSetElement : HTMLElement {
// attribute DOMString cols;
// attribute DOMString rows;

View file

@ -3,12 +3,12 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlhrelement
// https://html.spec.whatwg.org/multipage/#htmlhrelement
interface HTMLHRElement : HTMLElement {
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLHRElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLHRElement-partial
partial interface HTMLHRElement {
// attribute DOMString align;
// attribute DOMString color;

View file

@ -3,5 +3,5 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlheadelement
// https://html.spec.whatwg.org/multipage/#htmlheadelement
interface HTMLHeadElement : HTMLElement {};

View file

@ -3,12 +3,12 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlheadingelement
// https://html.spec.whatwg.org/multipage/#htmlheadingelement
interface HTMLHeadingElement : HTMLElement {
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLHeadingElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLHeadingElement-partial
partial interface HTMLHeadingElement {
// attribute DOMString align;
};

View file

@ -3,12 +3,12 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlhtmlelement
// https://html.spec.whatwg.org/multipage/#htmlhtmlelement
interface HTMLHtmlElement : HTMLElement {
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLHtmlElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLHtmlElement-partial
partial interface HTMLHtmlElement {
// attribute DOMString version;
};

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmliframeelement
// https://html.spec.whatwg.org/multipage/#htmliframeelement
interface HTMLIFrameElement : HTMLElement {
attribute DOMString src;
// attribute DOMString srcdoc;
@ -21,7 +21,7 @@ interface HTMLIFrameElement : HTMLElement {
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLIFrameElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLIFrameElement-partial
partial interface HTMLIFrameElement {
// attribute DOMString align;
// attribute DOMString scrolling;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlimageelement
// https://html.spec.whatwg.org/multipage/#htmlimageelement
[NamedConstructor=Image(optional unsigned long width, optional unsigned long height)]
interface HTMLImageElement : HTMLElement {
attribute DOMString alt;
@ -21,7 +21,7 @@ interface HTMLImageElement : HTMLElement {
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLImageElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLImageElement-partial
partial interface HTMLImageElement {
attribute DOMString name;
// attribute DOMString lowsrc;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlinputelement
// https://html.spec.whatwg.org/multipage/#htmlinputelement
interface HTMLInputElement : HTMLElement {
// attribute DOMString accept;
// attribute DOMString alt;
@ -71,7 +71,7 @@ interface HTMLInputElement : HTMLElement {
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLInputElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLInputElement-partial
partial interface HTMLInputElement {
// attribute DOMString align;
// attribute DOMString useMap;

View file

@ -3,14 +3,14 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmllielement
// https://html.spec.whatwg.org/multipage/#htmllielement
interface HTMLLIElement : HTMLElement {
// attribute long value;
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLLIElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLLIElement-partial
partial interface HTMLLIElement {
// attribute DOMString type;
};

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmllabelelement
// https://html.spec.whatwg.org/multipage/#htmllabelelement
interface HTMLLabelElement : HTMLElement {
readonly attribute HTMLFormElement? form;
// attribute DOMString htmlFor;

View file

@ -3,14 +3,14 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmllegendelement
// https://html.spec.whatwg.org/multipage/#htmllegendelement
interface HTMLLegendElement : HTMLElement {
//readonly attribute HTMLFormElement? form;
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLLegendElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLLegendElement-partial
partial interface HTMLLegendElement {
// attribute DOMString align;
};

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmllinkelement
// https://html.spec.whatwg.org/multipage/#htmllinkelement
interface HTMLLinkElement : HTMLElement {
attribute DOMString href;
// attribute DOMString crossOrigin;
@ -18,7 +18,7 @@ interface HTMLLinkElement : HTMLElement {
};
//HTMLLinkElement implements LinkStyle;
// https://html.spec.whatwg.org/multipage#HTMLLinkElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLLinkElement-partial
partial interface HTMLLinkElement {
attribute DOMString charset;
attribute DOMString rev;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlmapelement
// https://html.spec.whatwg.org/multipage/#htmlmapelement
interface HTMLMapElement : HTMLElement {
// attribute DOMString name;
//readonly attribute HTMLCollection areas;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlmediaelement
// https://html.spec.whatwg.org/multipage/#htmlmediaelement
//enum CanPlayTypeResult { "" /* empty string */, "maybe", "probably" };
[Abstract]
interface HTMLMediaElement : HTMLElement {

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlmetaelement
// https://html.spec.whatwg.org/multipage/#htmlmetaelement
interface HTMLMetaElement : HTMLElement {
attribute DOMString name;
// attribute DOMString httpEquiv;
@ -12,7 +12,7 @@ interface HTMLMetaElement : HTMLElement {
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLMetaElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLMetaElement-partial
partial interface HTMLMetaElement {
// attribute DOMString scheme;
};

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlmeterelement
// https://html.spec.whatwg.org/multipage/#htmlmeterelement
interface HTMLMeterElement : HTMLElement {
// attribute double value;
// attribute double min;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlmodelement
// https://html.spec.whatwg.org/multipage/#htmlmodelement
interface HTMLModElement : HTMLElement {
// attribute DOMString cite;
// attribute DOMString dateTime;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlolistelement
// https://html.spec.whatwg.org/multipage/#htmlolistelement
interface HTMLOListElement : HTMLElement {
// attribute boolean reversed;
// attribute long start;
@ -12,7 +12,7 @@ interface HTMLOListElement : HTMLElement {
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLOListElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLOListElement-partial
partial interface HTMLOListElement {
// attribute boolean compact;
};

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlobjectelement
// https://html.spec.whatwg.org/multipage/#htmlobjectelement
interface HTMLObjectElement : HTMLElement {
// attribute DOMString data;
attribute DOMString type;
@ -28,7 +28,7 @@ interface HTMLObjectElement : HTMLElement {
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLObjectElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLObjectElement-partial
partial interface HTMLObjectElement {
// attribute DOMString align;
// attribute DOMString archive;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmloptgroupelement
// https://html.spec.whatwg.org/multipage/#htmloptgroupelement
interface HTMLOptGroupElement : HTMLElement {
attribute boolean disabled;
// attribute DOMString label;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmloptionelement
// https://html.spec.whatwg.org/multipage/#htmloptionelement
//[NamedConstructor=Option(optional DOMString text = "", optional DOMString value,
// optional boolean defaultSelected = false,
// optional boolean selected = false)]

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmloutputelement
// https://html.spec.whatwg.org/multipage/#htmloutputelement
interface HTMLOutputElement : HTMLElement {
//[PutForwards=value] readonly attribute DOMSettableTokenList htmlFor;
readonly attribute HTMLFormElement? form;

View file

@ -3,12 +3,12 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlparagraphelement
// https://html.spec.whatwg.org/multipage/#htmlparagraphelement
interface HTMLParagraphElement : HTMLElement {
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLParagraphElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLParagraphElement-partial
partial interface HTMLParagraphElement {
// attribute DOMString align;
};

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlparamelement
// https://html.spec.whatwg.org/multipage/#htmlparamelement
interface HTMLParamElement : HTMLElement {
// attribute DOMString name;
// attribute DOMString value;
@ -11,7 +11,7 @@ interface HTMLParamElement : HTMLElement {
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLParamElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLParamElement-partial
partial interface HTMLParamElement {
// attribute DOMString type;
// attribute DOMString valueType;

View file

@ -3,12 +3,12 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlpreelement
// https://html.spec.whatwg.org/multipage/#htmlpreelement
interface HTMLPreElement : HTMLElement {
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLPreElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLPreElement-partial
partial interface HTMLPreElement {
// attribute long width;
};

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlprogresselement
// https://html.spec.whatwg.org/multipage/#htmlprogresselement
interface HTMLProgressElement : HTMLElement {
// attribute double value;
// attribute double max;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlquoteelement
// https://html.spec.whatwg.org/multipage/#htmlquoteelement
interface HTMLQuoteElement : HTMLElement {
// attribute DOMString cite;
};

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlscriptelement
// https://html.spec.whatwg.org/multipage/#htmlscriptelement
interface HTMLScriptElement : HTMLElement {
attribute DOMString src;
// attribute DOMString type;
@ -17,7 +17,7 @@ interface HTMLScriptElement : HTMLElement {
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLScriptElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLScriptElement-partial
partial interface HTMLScriptElement {
// attribute DOMString event;
// attribute DOMString htmlFor;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlselectelement
// https://html.spec.whatwg.org/multipage/#htmlselectelement
interface HTMLSelectElement : HTMLElement {
// attribute boolean autofocus;
attribute boolean disabled;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlsourceelement
// https://html.spec.whatwg.org/multipage/#htmlsourceelement
interface HTMLSourceElement : HTMLElement {
// attribute DOMString src;
// attribute DOMString type;

View file

@ -3,5 +3,5 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlspanelement
// https://html.spec.whatwg.org/multipage/#htmlspanelement
interface HTMLSpanElement : HTMLElement {};

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlstyleelement
// https://html.spec.whatwg.org/multipage/#htmlstyleelement
interface HTMLStyleElement : HTMLElement {
// attribute DOMString media;
// attribute DOMString type;

View file

@ -3,12 +3,12 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmltablecaptionelement
// https://html.spec.whatwg.org/multipage/#htmltablecaptionelement
interface HTMLTableCaptionElement : HTMLElement {
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLTableCaptionElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLTableCaptionElement-partial
partial interface HTMLTableCaptionElement {
// attribute DOMString align;
};

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmltablecellelement
// https://html.spec.whatwg.org/multipage/#htmltablecellelement
[Abstract]
interface HTMLTableCellElement : HTMLElement {
attribute unsigned long colSpan;
@ -14,7 +14,7 @@ interface HTMLTableCellElement : HTMLElement {
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLTableCellElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLTableCellElement-partial
partial interface HTMLTableCellElement {
// attribute DOMString align;
// attribute DOMString axis;

View file

@ -3,14 +3,14 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmltablecolelement
// https://html.spec.whatwg.org/multipage/#htmltablecolelement
interface HTMLTableColElement : HTMLElement {
// attribute unsigned long span;
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLTableColElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLTableColElement-partial
partial interface HTMLTableColElement {
// attribute DOMString align;
// attribute DOMString ch;

View file

@ -3,12 +3,12 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmltabledatacellelement
// https://html.spec.whatwg.org/multipage/#htmltabledatacellelement
interface HTMLTableDataCellElement : HTMLTableCellElement {
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLTableDataCellElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLTableDataCellElement-partial
partial interface HTMLTableDataCellElement {
// attribute DOMString abbr;
};

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmltableelement
// https://html.spec.whatwg.org/multipage/#htmltableelement
interface HTMLTableElement : HTMLElement {
attribute HTMLTableCaptionElement? caption;
HTMLElement createCaption();
@ -25,7 +25,7 @@ interface HTMLTableElement : HTMLElement {
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLTableElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLTableElement-partial
partial interface HTMLTableElement {
// attribute DOMString align;
// attribute DOMString border;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmltableheadercellelement
// https://html.spec.whatwg.org/multipage/#htmltableheadercellelement
interface HTMLTableHeaderCellElement : HTMLTableCellElement {
// attribute DOMString scope;
// attribute DOMString abbr;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmltablerowelement
// https://html.spec.whatwg.org/multipage/#htmltablerowelement
interface HTMLTableRowElement : HTMLElement {
//readonly attribute long rowIndex;
//readonly attribute long sectionRowIndex;
@ -14,7 +14,7 @@ interface HTMLTableRowElement : HTMLElement {
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLTableRowElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLTableRowElement-partial
partial interface HTMLTableRowElement {
// attribute DOMString align;
// attribute DOMString ch;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmltablesectionelement
// https://html.spec.whatwg.org/multipage/#htmltablesectionelement
interface HTMLTableSectionElement : HTMLElement {
readonly attribute HTMLCollection rows;
//HTMLElement insertRow(optional long index = -1);
@ -12,7 +12,7 @@ interface HTMLTableSectionElement : HTMLElement {
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLTableSectionElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLTableSectionElement-partial
partial interface HTMLTableSectionElement {
// attribute DOMString align;
// attribute DOMString ch;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmltemplateelement
// https://html.spec.whatwg.org/multipage/#htmltemplateelement
interface HTMLTemplateElement : HTMLElement {
readonly attribute DocumentFragment content;
};

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmltextareaelement
// https://html.spec.whatwg.org/multipage/#htmltextareaelement
interface HTMLTextAreaElement : HTMLElement {
// attribute DOMString autocomplete;
// attribute boolean autofocus;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmltimeelement
// https://html.spec.whatwg.org/multipage/#htmltimeelement
interface HTMLTimeElement : HTMLElement {
// attribute DOMString dateTime;
};

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmltitleelement
// https://html.spec.whatwg.org/multipage/#htmltitleelement
interface HTMLTitleElement : HTMLElement {
[Pure]
attribute DOMString text;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmltrackelement
// https://html.spec.whatwg.org/multipage/#htmltrackelement
interface HTMLTrackElement : HTMLElement {
// attribute DOMString kind;
// attribute DOMString src;

View file

@ -3,12 +3,12 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlulistelement
// https://html.spec.whatwg.org/multipage/#htmlulistelement
interface HTMLUListElement : HTMLElement {
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage#HTMLUListElement-partial
// https://html.spec.whatwg.org/multipage/#HTMLUListElement-partial
partial interface HTMLUListElement {
// attribute boolean compact;
// attribute DOMString type;

View file

@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
* The origin of this IDL file is
* https://html.spec.whatwg.org/multipage#htmlunknownelement and
* https://html.spec.whatwg.org/multipage/#htmlunknownelement and
* http://dev.w3.org/csswg/cssom-view/
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#htmlvideoelement
// https://html.spec.whatwg.org/multipage/#htmlvideoelement
interface HTMLVideoElement : HTMLMediaElement {
// attribute unsigned long width;
// attribute unsigned long height;

View file

@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
* The origin of this IDL file is
* https://html.spec.whatwg.org/multipage#imagedata
* https://html.spec.whatwg.org/multipage/#imagedata
*
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and Opera Software ASA.
* You are granted a license to use, reproduce and create derivative works of this document.

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#location
// https://html.spec.whatwg.org/multipage/#location
/*[Unforgeable]*/ interface Location {
void assign(DOMString url);
//void replace(DOMString url);

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#messageevent
// https://html.spec.whatwg.org/multipage/#messageevent
[Constructor(DOMString type, optional MessageEventInit eventInitDict)/*, Exposed=Window,Worker*/]
interface MessageEvent : Event {
readonly attribute any data;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#navigator
// https://html.spec.whatwg.org/multipage/#navigator
interface Navigator {
// objects implementing this interface also implement the interfaces given below
};
@ -14,7 +14,7 @@ Navigator implements NavigatorID;
//Navigator implements NavigatorStorageUtils;
//Navigator implements NavigatorPlugins;
// https://html.spec.whatwg.org/multipage#navigatorid
// https://html.spec.whatwg.org/multipage/#navigatorid
[NoInterfaceObject/*, Exposed=Window,Worker*/]
interface NavigatorID {
readonly attribute DOMString appCodeName; // constant "Mozilla"

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#validitystate
// https://html.spec.whatwg.org/multipage/#validitystate
interface ValidityState {
//readonly attribute boolean valueMissing;
//readonly attribute boolean typeMismatch;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#window
// https://html.spec.whatwg.org/multipage/#window
[PrimaryGlobal]
/*sealed*/ interface Window : EventTarget {
// the current browsing context
@ -66,7 +66,7 @@
Window implements GlobalEventHandlers;
Window implements WindowEventHandlers;
// https://html.spec.whatwg.org/multipage#windowtimers
// https://html.spec.whatwg.org/multipage/#windowtimers
[NoInterfaceObject/*, Exposed=Window,Worker*/]
interface WindowTimers {
long setTimeout(Function handler, optional long timeout = 0, any... arguments);
@ -78,7 +78,7 @@ interface WindowTimers {
};
Window implements WindowTimers;
// https://html.spec.whatwg.org/multipage#atob
// https://html.spec.whatwg.org/multipage/#atob
[NoInterfaceObject/*, Exposed=Window,Worker*/]
interface WindowBase64 {
[Throws]

View file

@ -3,13 +3,13 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#abstractworker
// https://html.spec.whatwg.org/multipage/#abstractworker
[NoInterfaceObject/*, Exposed=Window,Worker*/]
interface AbstractWorker {
attribute EventHandler onerror;
};
// https://html.spec.whatwg.org/multipage#worker
// https://html.spec.whatwg.org/multipage/#worker
[Constructor(DOMString scriptURL)/*, Exposed=Window,Worker*/]
interface Worker : EventTarget {
//void terminate();

View file

@ -15,7 +15,7 @@ interface WorkerGlobalScope : EventTarget {
// attribute EventHandler ononline;
};
// https://html.spec.whatwg.org/multipage#WorkerGlobalScope-partial
// https://html.spec.whatwg.org/multipage/#WorkerGlobalScope-partial
//[Exposed=Worker]
partial interface WorkerGlobalScope { // not obsolete
[Throws]

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#worker-locations
// https://html.spec.whatwg.org/multipage/#worker-locations
//[Exposed=Worker]
interface WorkerLocation { };
WorkerLocation implements URLUtilsReadOnly;

View file

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage#workernavigator
// https://html.spec.whatwg.org/multipage/#workernavigator
//[Exposed=Worker]
interface WorkerNavigator {};
WorkerNavigator implements NavigatorID;

View file

@ -291,7 +291,7 @@ impl Window {
}
}
// https://html.spec.whatwg.org/multipage#atob
// https://html.spec.whatwg.org/multipage/#atob
pub fn base64_btoa(input: DOMString) -> Fallible<DOMString> {
// "The btoa() method must throw an InvalidCharacterError exception if
// the method's first argument contains any character whose code point
@ -311,7 +311,7 @@ pub fn base64_btoa(input: DOMString) -> Fallible<DOMString> {
}
}
// https://html.spec.whatwg.org/multipage#atob
// https://html.spec.whatwg.org/multipage/#atob
pub fn base64_atob(input: DOMString) -> Fallible<DOMString> {
// "Remove all space characters from input."
// serialize::base64::from_base64 ignores \r and \n,
@ -479,7 +479,7 @@ impl WindowMethods for Window {
self.Window()
}
// https://html.spec.whatwg.org/multipage#dom-frames
// https://html.spec.whatwg.org/multipage/#dom-frames
fn Frames(&self) -> Root<Window> {
self.Window()
}

View file

@ -62,7 +62,7 @@ impl Worker {
WorkerBinding::Wrap)
}
// https://html.spec.whatwg.org/multipage#dom-worker
// https://html.spec.whatwg.org/multipage/#dom-worker
pub fn Constructor(global: GlobalRef, script_url: DOMString) -> Fallible<Root<Worker>> {
// Step 2-4.
let worker_url = match UrlParser::new().base_url(&global.get_url()).parse(&script_url) {