W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > October 2009

Empty span/div tags in RDFa pages

From: Stephane Corlosquet <scorlosquet@gmail.com>
Date: Fri, 23 Oct 2009 14:12:41 -0400
Message-ID: <1452bf810910231112o3e46bea3h63784e56e8eb9d4f@mail.gmail.com>
To: RDFa mailing list <public-rdf-in-xhtml-tf@w3.org>

According to the examples of http://www.w3.org/TR/rdfa-syntax/#sec_6.
it is allowed to use the shorthand notation for empty span/div tags in
  <div rel="dbp:birthPlace" resource="http://dbpedia.org/resource/Germany"

However, according to XHTML 1.0 specs [1]:
"Given an empty instance of an element whose content model is not EMPTY (for
example, an empty title or paragraph) do not use the minimized form (e.g.
use <p> </p> and not <p />)."

There are only 10 EMPTY tags in HTML 1.0, and neither div nor span is part
of these. I looked in XHTML 1.1 and didn't find anything. The RDFa DTD [2]
does not declare new EMPTY tags either. Can someone point me to some specs
or a DTD which explains why the empty tag notation is allowed in RDFa?

On a side note, firebug does not render these well, and wraps the empty span
around the next sibling tag [3]. That might be a firebug bug...


[1] http://www.w3.org/TR/xhtml1/#C_3
[2] http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd
[3] http://skitch.com/scor/nrpat/empty-tags-firebug-bug
Received on Friday, 23 October 2009 18:17:45 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:50:33 UTC