Changes between Version 144 and Version 145 of WebKitIDL


Ignore:
Timestamp:
Feb 24, 2016 6:37:21 PM (8 years ago)
Author:
Chris Dumez
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WebKitIDL

    v144 v145  
    7474        const unsigned short ELEMENT_NODE = 1;
    7575        attribute Node parentNode;
    76         [TreatReturnedNullStringAs=Null] attribute DOMString nodeName;
     76        attribute DOMString? nodeName;
    7777        [Custom] Node appendChild([CustomReturn] Node newChild);
    7878        void addEventListener(DOMString type, EventListener listener, optional boolean useCapture);
     
    8888 * appendChild(...) and addEventListener(...) are '''method'''s of the Node interface.
    8989 * type, listener and useCapture are '''parameter'''s of the Node interface.
    90  * `[CustomToJSObject]`, `[TreatReturnedNullStringAs=Null]`, `[Custom]` and `[CustomReturn]` are '''IDL attribute'''s.
     90 * `[CustomToJSObject]`, `[Custom]` and `[CustomReturn]` are '''IDL attribute'''s.
    9191
    9292Note: These terminologies are not aligned with the Web IDL spec.
     
    261261Summary: `[TreatReturnedNullStringAs]` controls the behavior when a WebKit null string is returned from the WebCore implementation.
    262262
    263 Usage: The possible usage is `[TreatReturnedNullStringAs=Null]` or `[TreatReturnedNullStringAs=Undefined]`.
     263Usage: The possible usage is `[TreatReturnedNullStringAs=Undefined]`.
    264264They can be specified on DOMString attributes or methods that return a DOMString value:
    265265{{{
    266     [TreatReturnedNullStringAs=Null] attribute DOMString str;
     266    [TreatReturnedNullStringAs= Undefined] attribute DOMString str;
    267267    [TreatReturnedNullStringAs=Undefined] DOMString func();
    268268}}}
    269269
    270  * `[TreatReturnedNullStringAs=Null]` indicates that if the returned DOMString is a WebKit null string, the returned value is treated as a JavaScript null.
    271270 * `[TreatReturnedNullStringAs=Undefined]` indicates that if the returned DOMString is a WebKit null string, the returned value is treated as a JavaScript undefined.
    272271
    273272Without `[TreatReturnedNullStringAs=...]`, if the returned DOMString is a WebKit null string, then the returned value is treated as a JavaScript empty string ''.
    274 
    275 Note that what should be specified on `[TreatReturnedNullStringAs=...]` depends on the spec of each attribute or method.
    276273
    277274== `[Default]`(p) == #Default