| OLD | NEW |
| 1 # Blink IDL Extended Attributes | 1 # Blink IDL Extended Attributes |
| 2 | 2 |
| 3 [TOC] | 3 [TOC] |
| 4 | 4 |
| 5 ## Introduction | 5 ## Introduction |
| 6 | 6 |
| 7 The main interest in extended attributes are their _semantics_: Blink implements
many more extended attributes than the Web IDL standard, to specify various beh
avior. | 7 The main interest in extended attributes are their _semantics_: Blink implements
many more extended attributes than the Web IDL standard, to specify various beh
avior. |
| 8 | 8 |
| 9 The authoritative list of allowed extended attributes and values is [bindings/ID
LExtendedAttributes.txt](https://code.google.com/p/chromium/codesearch#chromium/
src/third_party/WebKit/Source/bindings/IDLExtendedAttributes.txt). This is compl
ete but not necessarily precise (there may be unused extended attributes or valu
es), since validation is run on build, but coverage isn't checked. | 9 The authoritative list of allowed extended attributes and values is [bindings/ID
LExtendedAttributes.txt](https://code.google.com/p/chromium/codesearch#chromium/
src/third_party/WebKit/Source/bindings/IDLExtendedAttributes.txt). This is compl
ete but not necessarily precise (there may be unused extended attributes or valu
es), since validation is run on build, but coverage isn't checked. |
| 10 | 10 |
| (...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 986 This is similar to the standard `[DeprecateAs]` extended attribute, but does not
display a deprecation warning. | 986 This is similar to the standard `[DeprecateAs]` extended attribute, but does not
display a deprecation warning. |
| 987 | 987 |
| 988 Usage: `[MeasureAs]` can be specified on methods, attributes, and constants. The
value must match one of the enumeration values in [UseCounter::Feature](https:/
/code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/co
re/frame/UseCounter.h&q=%22enum%20Feature%22&sq=package:chromium&type=cs&l=61) (
in [core/frame/UseCounter.h](https://code.google.com/p/chromium/codesearch#chrom
ium/src/third_party/WebKit/Source/core/frame/UseCounter.h)). | 988 Usage: `[MeasureAs]` can be specified on methods, attributes, and constants. The
value must match one of the enumeration values in [UseCounter::Feature](https:/
/code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/co
re/frame/UseCounter.h&q=%22enum%20Feature%22&sq=package:chromium&type=cs&l=61) (
in [core/frame/UseCounter.h](https://code.google.com/p/chromium/codesearch#chrom
ium/src/third_party/WebKit/Source/core/frame/UseCounter.h)). |
| 989 | 989 |
| 990 ```webidl | 990 ```webidl |
| 991 [MeasureAs=AttributeWeAreInterestedIn] attribute Node interestingAttribute; | 991 [MeasureAs=AttributeWeAreInterestedIn] attribute Node interestingAttribute; |
| 992 [MeasureAs=MethodsAreInterestingToo] Node getInterestingNode(); | 992 [MeasureAs=MethodsAreInterestingToo] Node getInterestingNode(); |
| 993 [MeasureAs=EvenSomeConstantsAreInteresting] const INTERESTING_CONSTANT = 1; | 993 [MeasureAs=EvenSomeConstantsAreInteresting] const INTERESTING_CONSTANT = 1; |
| 994 ``` | 994 ``` |
| 995 | 995 |
| 996 ### [NotDuringMicrotasks] _(m)_ |
| 997 |
| 998 Summary: A method marked as `[NotDuringMicrotasks]` will do nothing and return |
| 999 undefined if invoked during microtask execution. |
| 1000 |
| 1001 Usage: `[NotDuringMicrotasks]` can be specified on methods. |
| 1002 |
| 1003 ```webidl |
| 1004 [NotDuringMicrotasks] void alert(); |
| 1005 ``` |
| 1006 |
| 996 ### [NotEnumerable] _(m, a, s)_ | 1007 ### [NotEnumerable] _(m, a, s)_ |
| 997 | 1008 |
| 998 *** note | 1009 *** note |
| 999 **FIXME:** docs out of date! | 1010 **FIXME:** docs out of date! |
| 1000 *** | 1011 *** |
| 1001 | 1012 |
| 1002 Specification: [The spec of Writable, Enumerable and Configurable (Section 8.6.1
)](http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf) -
_not standard Web IDL extended attributes._ | 1013 Specification: [The spec of Writable, Enumerable and Configurable (Section 8.6.1
)](http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf) -
_not standard Web IDL extended attributes._ |
| 1003 | 1014 |
| 1004 Summary: Controls the enumerability of methods and attributes. | 1015 Summary: Controls the enumerability of methods and attributes. |
| 1005 | 1016 |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1549 Copyright (C) 2009 Apple Inc. All rights reserved. | 1560 Copyright (C) 2009 Apple Inc. All rights reserved. |
| 1550 | 1561 |
| 1551 Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met: | 1562 Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met: |
| 1552 | 1563 |
| 1553 1. Redistributions of source code must retain the above copyright notice, this l
ist of conditions and the following disclaimer. | 1564 1. Redistributions of source code must retain the above copyright notice, this l
ist of conditions and the following disclaimer. |
| 1554 | 1565 |
| 1555 2. Redistributions in binary form must reproduce the above copyright notice, thi
s list of conditions and the following disclaimer in the documentation and/or ot
her materials provided with the distribution. | 1566 2. Redistributions in binary form must reproduce the above copyright notice, thi
s list of conditions and the following disclaimer in the documentation and/or ot
her materials provided with the distribution. |
| 1556 | 1567 |
| 1557 THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS “AS IS” AND ANY EXP
RESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIE
S OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, I
NCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMI
TED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFI
TS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHE
THER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSI
BILITY OF SUCH DAMAGE. | 1568 THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS “AS IS” AND ANY EXP
RESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIE
S OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, I
NCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMI
TED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFI
TS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHE
THER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSI
BILITY OF SUCH DAMAGE. |
| 1558 *** | 1569 *** |
| OLD | NEW |