On 10/30/20 6:34 AM, Patrice Dumas wrote:
On Fri, Oct 30, 2020 at 05:05:28AM -0700, Per Bothner wrote:
On 10/30/20 12:13 AM, Gavin Smith wrote:
I don't think there is a strong reason to not use non-standard attributes:
It's fully supported by javascript and css. There are a couple of minor reasons
(validation becomes more complicated without a custom DTD, and there is a small
chance
they might clash with a future standard or browser extension), and some people
disapprove of them.
Why not simply use another class?
One could use a separate class for each category. For example:
<dt class="synopsis Function">
or:
<dt class="synopsis category-function">
However, that would seem to require a distinct CSS style for each category.
--
--Per Bothner
[email protected] http://per.bothner.com/