Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
tools:shepherd:specs [2013/11/14 23:17] – created plinsstools: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 <dfn>, if not found, then use the heuristics:     * ‘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 <dfn>, if not found, then use the heuristics:
       - 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 <nowiki>(match '^[^ ]+\([^\(]*\)$’)</nowiki> -> ‘method’
       - 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:
     * 'typedefdef' -> 'typedef'     * 'typedefdef' -> 'typedef'
   - 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’ <code><dfn>@foo</dfn></code> 
-    - If the <dfn> content is quoted, e.g.: "foo", 'foo', “foo”,  “foo”, or ‘foo’ -> ‘value’ +    - If the <dfn> content is quoted, e.g.: <nowiki>"foo", 'foo', “foo”, or ‘foo’</nowiki> -> ‘value’ <code><dfn>"foo"</dfn></code> 
-    - If the <dfn> content starts with ‘<‘ and ends with ‘>’, e.g.: &lt;foo&gt; -‘type’ +    - If the <dfn> content starts with ‘<‘ and ends with ‘>’ -> ‘type’ <code><dfn>&lt;foo&gt;</dfn></code
-    - If the <dfn> content starts with ‘:’ -> ‘selector’ +    - If the <dfn> content starts with ‘:’ -> ‘selector’ <code><dfn>:foo</dfn></code> 
-    - 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’ <code><dfn>foo(bar)</dfn></code>
  
 ==== Anchor Relationships ==== ==== Anchor Relationships ====
 
tools/shepherd/specs.txt · Last modified: 2018/04/21 10:30 by plinss
Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki