Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
spec:dfn-patterns [2013/07/30 11:44] – Added summary tabatkinsspec:dfn-patterns [2013/07/30 11:46] – [<dfn> Types] markup tweak tabatkins
Line 45: Line 45:
 In many cases, the definition type can be automatically inferred.  In others, you may have to manually mark up the type using any of several methods, whichever is most convenient. In many cases, the definition type can be automatically inferred.  In others, you may have to manually mark up the type using any of several methods, whichever is most convenient.
  
-The following methods are listed in order of convenience to use, but in *reverse* order of power.  That is, the very last method (manually specifying the type) wins out over everything else, and the very first method (inferring type from contents) will only be used if all the others fail.+The following methods are listed in order of convenience to use, but in **reverse** order of power.  That is, the very last method (manually specifying the type) wins out over everything else, and the very first method (inferring type from contents) will only be used if all the others fail.
  
 ==== Inferring <dfn> Type From Contents ==== ==== Inferring <dfn> Type From Contents ====
Line 114: Line 114:
 Finally, one may manually specify the definition type.  This is very simple - just add a ''data-dfn-type'' attribute to the definition, with its value set to one of the definition types above (the types, like "property", not the classes or prefixes like "propdef"). Finally, one may manually specify the definition type.  This is very simple - just add a ''data-dfn-type'' attribute to the definition, with its value set to one of the definition types above (the types, like "property", not the classes or prefixes like "propdef").
  
-If using [[http://wiki.csswg.org/tools|Tab's preprocessor]], this is easier - just add the definition type as a boolean attribute.  That is, instead of writing ''<dfn data-dfn-type=function>foo()</dfn>''just write ''<dfn function>foo()</dfn>''.  The preprocessor will automatically canonicalize this into a valid ''data-dfn-type'' attribute in the output.+If using [[http://wiki.csswg.org/tools|Tab's preprocessor]], this is easier - just add the definition type as a boolean attribute.  That is, instead of writing
 + 
 +''<dfn data-dfn-type=function>foo()</dfn>'' 
 + 
 +just write  
 + 
 +''<dfn function>foo()</dfn>'' 
 + 
 +The preprocessor will automatically canonicalize this into a valid ''data-dfn-type'' attribute in the output.
  
 ===== Specifying What A Definition Is For ===== ===== Specifying What A Definition Is For =====
 
spec/dfn-patterns.txt · Last modified: 2014/12/09 15:48 by 127.0.0.1
Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki