Changeset 109562 in webkit


Ignore:
Timestamp:
Mar 2, 2012 5:24:36 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[Forms] Make order of attribute/method in HTMLSelectElement.idl as same as specification
https://bugs.webkit.org/show_bug.cgi?id=80097

Patch by Yoshifumi Inoue <yosin@chromium.org> on 2012-03-02
Reviewed by Kent Tamura.

No new tests. No behavior changes.

  • html/HTMLSelectElement.idl: Reorder attribute/method position.
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r109561 r109562  
     12012-03-02  Yoshifumi Inoue  <yosin@chromium.org>
     2
     3        [Forms] Make order of attribute/method in HTMLSelectElement.idl as same as specification
     4        https://bugs.webkit.org/show_bug.cgi?id=80097
     5
     6        Reviewed by Kent Tamura.
     7
     8        No new tests. No behavior changes.
     9
     10        * html/HTMLSelectElement.idl: Reorder attribute/method position.
     11
    1122012-03-02  Pavel Podivilov  <podivilov@chromium.org>
    213
  • trunk/Source/WebCore/html/HTMLSelectElement.idl

    r107304 r109562  
    2525        CustomIndexedSetter
    2626    ] HTMLSelectElement : HTMLElement {
     27        attribute [Reflect] boolean autofocus;
     28        attribute [Reflect] boolean disabled;
     29        readonly attribute HTMLFormElement form;
     30        attribute boolean multiple;
     31        attribute [TreatNullAs=NullString] DOMString name;
     32        attribute [Reflect] boolean required;
     33        attribute long size;
     34
    2735        readonly attribute DOMString type;
    28         attribute long selectedIndex;
    29         attribute [TreatNullAs=NullString] DOMString value;
    30        
    31         // Modified in DOM Level 2:
     36
     37        readonly attribute HTMLOptionsCollection options;
    3238#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
     39        // DOM Level 2 changes type of length attribute to unsigned long,
     40        // for compatibility we keep DOM Level 1 definition.
    3341        readonly attribute long length;
    3442#else
    3543        attribute unsigned long length setter raises (DOMException);
    3644#endif
    37 
    38         readonly attribute HTMLFormElement form;
    39         readonly attribute ValidityState validity;
    40         readonly attribute boolean willValidate;
    41         readonly attribute DOMString validationMessage;
    42         boolean checkValidity();
    43         void setCustomValidity(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString error);
    44 
    45         // Modified in DOM Level 2:
    46         readonly attribute HTMLOptionsCollection options;
    47 
    48         attribute [Reflect] boolean disabled;
    49         attribute [Reflect] boolean autofocus;
    50         attribute boolean multiple;
    51         attribute [TreatNullAs=NullString] DOMString name;
    52         attribute [Reflect] boolean required;
    53         attribute long size;
    54        
    55         [ObjCLegacyUnnamedParameters] void add(in [Optional=DefaultIsUndefined] HTMLElement element,
     45        Node item(in [IsIndex,Optional=DefaultIsUndefined] unsigned long index);
     46        Node namedItem(in [Optional=DefaultIsUndefined] DOMString name);
     47        [ObjCLegacyUnnamedParameters] void add(in [Optional=DefaultIsUndefined] HTMLElement element,
    5648                                in [Optional=DefaultIsUndefined] HTMLElement before) raises(DOMException);
    57 
    5849#if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
    5950        // In JavaScript, we support both option index and option object parameters.
     
    6354        void remove(in long index);
    6455#endif
     56        attribute long selectedIndex;
     57        attribute [TreatNullAs=NullString] DOMString value;
    6558
    66         // These methods are not in DOM Level 2 IDL, but are mentioned in the standard:
    67         // "The contained options can be directly accessed through the select element as a collection."
    68         Node item(in [IsIndex,Optional=DefaultIsUndefined] unsigned long index);
    69         Node namedItem(in [Optional=DefaultIsUndefined] DOMString name);
     59        readonly attribute boolean willValidate;
     60        readonly attribute ValidityState validity;
     61        readonly attribute DOMString validationMessage;
     62        boolean checkValidity();
     63        void setCustomValidity(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString error);
     64
    7065        readonly attribute NodeList labels;
    7166    };
    72 
    7367}
Note: See TracChangeset for help on using the changeset viewer.