Skip to content

Commit 1028759

Browse files
committed
spec/dfn-patterns: [Manually Specifying the Definition Type]
1 parent e2e1728 commit 1028759

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

spec/dfn-patterns.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,15 @@ For example, writing ''<dfn id=propdef-foo>foo</dfn>'' will automatically classi
113113

114114
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").
115115

116-
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.
116+
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:
117+
118+
''<dfn data-dfn-type=function>foo()</dfn>''
119+
120+
just write
121+
122+
''<dfn function>foo()</dfn>''
123+
124+
The preprocessor will automatically canonicalize this into a valid ''data-dfn-type'' attribute in the output.
117125

118126
===== Specifying What A Definition Is For =====
119127

0 commit comments

Comments
 (0)