Skip to content

Commit

Permalink
(dom) : Switching over to W3C Editor’s Draft 22 March 2012.
Browse files Browse the repository at this point in the history
git-svn-id: http://es-operating-system.googlecode.com/svn/trunk/esidl@2582 d15c3b8f-5b43-0410-be93-4d5a55ce2954
  • Loading branch information
ShikiOkasaka committed Mar 26, 2012
1 parent 633ffe8 commit 0278ff9
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions dom/arrays.idl
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ interface ByteArray {

interface UnsignedByteArray {
attribute unsigned long length;
unsigned byte getElement(unsigned long index);
void setElement(unsigned long index, unsigned byte value);
octet getElement(unsigned long index);
void setElement(unsigned long index, octet value);
};

interface ShortArray {
Expand Down
4 changes: 2 additions & 2 deletions dom/domcore.idl
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ module html {

interface HTMLCollection {
readonly attribute unsigned long length;
caller getter Element? item(in unsigned long index);
caller getter object? namedItem(in DOMString name); // only returns Element
legacycaller getter Element? item(in unsigned long index);
legacycaller getter object? namedItem(in DOMString name); // only returns Element
};

};
Expand Down
18 changes: 9 additions & 9 deletions dom/html5.idl
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,21 @@ typedef Window WindowProxy;

interface HTMLCollection {
readonly attribute unsigned long length;
caller getter Element? item(in unsigned long index);
caller getter object? namedItem(in DOMString name); // only returns Element
legacycaller getter Element? item(in unsigned long index);
legacycaller getter object? namedItem(in DOMString name); // only returns Element
};

#endif

interface HTMLAllCollection : HTMLCollection {
// inherits length and item()
caller getter object? namedItem(in DOMString name); // overrides inherited namedItem()
legacycaller getter object? namedItem(in DOMString name); // overrides inherited namedItem()
HTMLAllCollection tags(in DOMString tagName);
};

interface HTMLFormControlsCollection : HTMLCollection {
// inherits length and item()
caller getter object? namedItem(in DOMString name); // overrides inherited namedItem()
legacycaller getter object? namedItem(in DOMString name); // overrides inherited namedItem()
};

interface RadioNodeList : NodeList {
Expand All @@ -62,7 +62,7 @@ interface RadioNodeList : NodeList {
interface HTMLOptionsCollection : HTMLCollection {
// inherits item()
attribute unsigned long length; // overrides inherited length
caller getter object? namedItem(in DOMString name); // overrides inherited namedItem()
legacycaller getter object? namedItem(in DOMString name); // overrides inherited namedItem()
void add(in HTMLElement element, in optional HTMLElement? before);
void add(in HTMLElement element, in long before);
void remove(in long index);
Expand All @@ -71,7 +71,7 @@ interface HTMLOptionsCollection : HTMLCollection {

interface HTMLPropertiesCollection : HTMLCollection {
// inherits length and item()
caller getter PropertyNodeList? namedItem(in DOMString name); // overrides inherited namedItem()
legacycaller getter PropertyNodeList? namedItem(in DOMString name); // overrides inherited namedItem()
readonly attribute DOMStringList names;
};

Expand Down Expand Up @@ -493,7 +493,7 @@ interface HTMLAnchorElement : HTMLElement {
interface HTMLTimeElement : HTMLElement {
attribute DOMString dateTime;
attribute boolean pubDate;
readonly attribute Date? valueAsDate;
readonly attribute Date valueAsDate;
};

interface HTMLSpanElement : HTMLElement {};
Expand Down Expand Up @@ -1022,8 +1022,8 @@ interface HTMLFormElement : HTMLElement {

readonly attribute HTMLFormControlsCollection elements;
readonly attribute long length;
caller getter any (in unsigned long index);
caller getter any (in DOMString name);
legacycaller getter any (in unsigned long index);
legacycaller getter any (in DOMString name);

void submit();
void reset();
Expand Down
12 changes: 6 additions & 6 deletions dom/typedarray.idl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ interface Int8Array : ArrayBufferView {
[
Constructor(unsigned long length),
Constructor(ArrayBufferView array),
Constructor(unsigned byte[] array),
Constructor(octet[] array),
Constructor(ArrayBuffer buffer,
optional unsigned long byteOffset, optional unsigned long length)
]
Expand All @@ -59,10 +59,10 @@ interface Uint8Array : ArrayBufferView {

readonly attribute unsigned long length;

omittable getter unsigned byte get(unsigned long index);
omittable setter void set(unsigned long index, unsigned byte value);
omittable getter octet get(unsigned long index);
omittable setter void set(unsigned long index, octet value);
void set(Uint8Array array, optional unsigned long offset);
void set(unsigned byte[] array, optional unsigned long offset);
void set(octet[] array, optional unsigned long offset);
Uint8Array subarray(long start, long end);
};

Expand Down Expand Up @@ -204,7 +204,7 @@ interface DataView : ArrayBufferView {
// These methods raise an INDEX_SIZE_ERR exception if they would read
// beyond the end of the view.
byte getInt8(unsigned long byteOffset);
unsigned byte getUint8(unsigned long byteOffset);
octet getUint8(unsigned long byteOffset);
short getInt16(unsigned long byteOffset,
optional boolean littleEndian);
unsigned short getUint16(unsigned long byteOffset,
Expand Down Expand Up @@ -232,7 +232,7 @@ interface DataView : ArrayBufferView {
void setInt8(unsigned long byteOffset,
byte value);
void setUint8(unsigned long byteOffset,
unsigned byte value);
octet value);
void setInt16(unsigned long byteOffset,
short value,
optional boolean littleEndian);
Expand Down
4 changes: 2 additions & 2 deletions jsapi/test/test.idl
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ interface DOMStringMap {

interface HTMLCollection {
readonly attribute unsigned long length;
caller getter object item(in unsigned long index);
caller getter object namedItem(in DOMString name);
legacycaller getter object item(in unsigned long index);
legacycaller getter object namedItem(in DOMString name);
};

};

0 comments on commit 0278ff9

Please sign in to comment.