930 | | == `[NamedGetter]`(i) == #NamedGetter |
931 | | |
932 | | * [http://dev.w3.org/2006/webapi/WebIDL/#idl-named-properties The spec of named properties] (Note: The WebKit behavior explained below is different from the spec) |
933 | | |
934 | | Summary: `[NamedGetter]` means that a given interface should have a getter of named properties. |
935 | | |
936 | | Usage: `[NamedGetter]` can be specified on interfaces: |
937 | | {{{ |
938 | | [ |
939 | | NamedGetter |
940 | | ] interface XXX { |
941 | | }; |
942 | | }}} |
943 | | |
944 | | Named getters define the behavior when XXX.foooooooo is evaluated, where foooooooo is not an attribute of XXX. |
945 | | The bindings code for named getters is generated automatically so that XXX.foooooooo behaves equivalent to XXX.namedItem(i). |
946 | | |