Re: [css syntax] CSS Syntax and Semantic Classes

On Thu, Feb 6, 2014 at 8:08 AM, Adam <adamsobieski@hotmail.com> wrote:
> CSS Working Group,
>
> The topics of semantic styling become more interesting with expansions of
> XML, e.g. web components.  Web components and styling web components are
> relatively new topics.  Web component authors, e.g. CMS widgets, might want
> to make use of the expressiveness of @xhtml:role, @rdf:type, @rdfa:typeof or
> @epub:type and possibly with semantic aspects of @class.  Semantic styling
> could also be of use for such scenarios.

Web Components aren't expansions of XML.  They're additions to HTML,
which can be written in XML via the XHTML variant syntax.

You can already use role='' and the RDFA stuff in your HTML document.
epub:type='' was a silly mistake that I think EPub is backpedalling
from now - they got infected with the XML namespaces meme and no one
caught them in time.

None of this has any relevance to your suggestion.  Classes are an
author-extensibility mechanism.  When standards have leaned on
classes, such as Microformats, it's been sufficient to just use short
prefixes and context.  Nobody has ever presented use-cases that needed
more disambiguation than that.

Plus, ultimately, classes are merely a convenient syntax for tagging
an element with an identifier, which is something you can do just as
easily with a binary attribute.  (The syntax isn't any more onerous,
either - <div foobar> and <div class="foobar"> are similar, as is
.foobar vs [foobar].)  Attributes already support namespaces, so that
provides the ability you're asking for already.  (You can't *write*
namespaced attributes in the HTML syntax, but you can produce them
with DOM methods, or you can just write in the XHTML syntax.)

~TJ

Received on Thursday, 6 February 2014 19:22:35 UTC