This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
tools:shepherd:specs [2013/11/14 23:17] – created plinss | tools:shepherd:specs [2014/12/09 15:48] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 59: | Line 59: | ||
* ‘dom-‘ -> some IDL construct - WebIDL found in the specification will be searched for a construct having the same name as the text contents of the < | * ‘dom-‘ -> some IDL construct - WebIDL found in the specification will be searched for a construct having the same name as the text contents of the < | ||
- if the <dfn> content starts with an uppercase letter -> ‘interface’ | - if the <dfn> content starts with an uppercase letter -> ‘interface’ | ||
- | - if it looks like a function (match '^[^ ]+\([^\(]*\)$’) -> ‘method’ | + | - if it looks like a function |
- otherwise -> ‘attribute’ | - otherwise -> ‘attribute’ | ||
- Search WebIDL found in the specification for a construct having the same name as the text, if found, use that type | - Search WebIDL found in the specification for a construct having the same name as the text, if found, use that type | ||
Line 91: | Line 91: | ||
* ' | * ' | ||
- Look at the text content of the <dfn> and use the following heuristics: | - Look at the text content of the <dfn> and use the following heuristics: | ||
- | - If the <dfn> content starts with ‘@‘ -> ‘at-rule’ | + | - If the <dfn> content starts with ‘@‘ -> ‘at-rule’ |
- | - If the <dfn> content is quoted, e.g.: " | + | - If the <dfn> content is quoted, e.g.: < |
- | - If the <dfn> content starts with ‘<‘ and ends with ‘>’, e.g.: & | + | - If the <dfn> content starts with ‘<‘ and ends with ‘> |
- | - If the <dfn> content starts with ‘:’ -> ‘selector’ | + | - If the <dfn> content starts with ‘:’ -> ‘selector’ |
- | - If the <dfn> content looks like a function and the ‘id’ does not start with ‘dom-‘ -> ‘function’ | + | - If the <dfn> content looks like a function and the ‘id’ does not start with ‘dom-‘ -> ‘function’ |
==== Anchor Relationships ==== | ==== Anchor Relationships ==== |