Jukka K. Korpela wrote:
> 4.11.2015, 23:27, Adam H. Kerman wrote:
>>> The <cite> tag is useless.
>> I found it a useful information element, even added a style like it in
>> word processing. As the author, it makes it easier to find citations
>> I'm including.
>
> From the mid-1990’s, I have used <cite> a lot as a matter of principle,
> and I often still continue the practice. But it’s really a bad habit. My
> original motivation was that <cite> was “semantic” and might some day be
> used by browsers or search engines in a useful way. But nothing
> happened, except that the semantics blew up. HTML specifications and
> drafts have defined it in different, mutually incompatible ways, and
> HTML5 makes the definition very odd and confused.
That is FUD and your logic is flawed (red herring).
<
https://en.wikipedia.org/wiki/Appeal_to_fear>
First of all, working drafts of W3C documents are not normative. Take, for
example, the current working draft of the HTML 5.1 Specification:
,-<
http://www.w3.org/TR/2015/WD-html51-20151008/>
|
| Status of this document
|
| […]
| Publication as a Working Draft does not imply endorsement by the W3C
| Membership. This is a draft document and may be updated, replaced or
| obsoleted by other documents at any time. It is inappropriate to cite this
| document as other than work in progress.
(The latter paragraph is contained in every document in Working Draft status
that is published by the W3C.)
You have cited working drafts “as other than work in progress”. That is by
definition “inappropriate”. Wordings in working drafts are therefore
irrelevant regarding the use of the “cite” element, to begin with.
<
https://yourlogicalfallacyis.com/anecdotal>
Second, the semantics of the “cite” element has not changed in normative
documents.
The CITE element was introduced with HTML 2.0, at the latest, as follows:
,-<
http://www.w3.org/MarkUp/html-spec/html-spec_5.html#SEC5.7.1.1>
|
| Citation: CITE
|
| The CITE element is used to indicate the title of a book or other
| citation. It is typically rendered as italics. For example:
|
| He just couldn't get enough of <cite>The Grapes of Wrath</cite>.
HTML 3.2 says:
,-<
http://www.w3.org/TR/REC-html32#phrase>
|
| Phrase Elements
|
| […]
| *CITE* used for citations or references to other sources
(No examples are given.)
HTML 4.01 says:
,-<
http://www.w3.org/TR/1999/REC-html401-19991224/struct/text.html#edef-CITE>
|
| CITE:
| Contains a citation or a reference to other sources.
One example (non-normative) is given:
| As <CITE>Harry S. Truman</CITE> said,
| <Q lang="en-us">The buck stops here.</Q>
|
| More information can be found in <CITE>[ISO-0000]</CITE>.
HTML5 only clarifies the meaning of “a citation or a reference to other
sources” in the context of hypertext documents:
| The “cite” element represents a reference to a creative work. It must
| include the title of the work or the name of the author(person, people or
| organization) or an URL reference, which may be in an abbreviated form as
| per the conventions used for the addition of citation metadata.
This clarification is consistent with examples in Specifications of previous
HTML versions as are the examples (non-normative) given in the HTML5
Specification:
| <p>In the words of <cite>Charles Bukowski</cite> -
| <q>An intellectual says a simple thing in a hard way. An artist says a
| hard thing in a simple way.</q></p>
(the name of an author)
| […]
| <p><cite>Universal Declaration of Human Rights</cite>, United Nations,
| December 1948. Adopted by General Assembly resolution 217 A (III).</p>
|
| […]
| <p>Who is your favorite doctor (in <cite>Doctor Who</cite>)?</p>
(the name of a work)
| […]
| <article id="comment-1">
| Comment by <cite><a href="
http://oli.jp">Oli Studholme</a></cite>
| <time datetime="2013-08-19T16:01">August 19th, 2013 at 4:01 pm</time>
| <p>Unfortunately I don't think adding names back into the definition of
| <code>cite</code>
| solves the problem: of the 12 blockquote examples in
| <a href="
http://oli.jp/example/blockquote-metadata/">Examples of block
| quote metadata</a>,
| there's not even one that's <em>just</em> a person’s name.</p>
| <p>A subset of the problem, maybe…</p>
| </article>
(the name of an author)
| […]
| <p><cite>
www.w3.org/<b>html</b>/wg/</cite></p>
(an URL reference)
I do not see your claim corroborated by this that “semantics blew up”.
Those are merely (non-normative) examples for different applications of the
same semantics.
> Compare
> <cite>The origin of species</cite>
> with
> <i class=title>The origin of species</i>
> The latter is more flexible, since you can assign different classes to
> different types of citations.
Your logic is flawed (false dichotomy, apparently also called “black-or-
white”). The “cite” element, like almost all HTML 4 elements, and *all*
HTML5 elements, does allow for a “class” attribute:
<
http://www.w3.org/TR/1999/REC-html401-19991224/sgml/dtd.html#coreattrs>
<
http://www.w3.org/TR/2014/REC-html5-20141028/dom.html#global-attributes>
So you can have both: Mark up *clearly* something as a citation *and*
distinguish different types of citations.
<
https://yourlogicalfallacyis.com/black-or-white>
> And for citations that should not be rendered in italic by default, just
> use <span> instead of <i>.
For citations that should not be rendered in italics by default then, one
can use the “cite” element with a “class” attribute value that triggers a
CSS ruleset within which there is a declaration to the effect of
font-style: normal;
One might even choose to format all “cite” elements that way by default, and
only declare “italic” for those with a (certain) “class” attribute (value).
As for achieving rendering in italics, given that the “i” element has more
uses than to mark up citations, it is logical to use the “cite” element for
citations in the first place, and make sure that for those citations that
should be rendered in italics a CSS declaration to the effect of
font-style: italic;
applies. Further, one must consider that not all fonts are properly
rendered in italics, so one might want to specificy a particular italics
variant of a (Web) font as well for optimum display in any case.
That too, however, is like all CSS declarations merely a suggestion to the
layout engine; if the user prefers to have it rendered differently, they can
override one’s declarations *either way*. IOW, neither using the “cite”
element nor the “i” element guarantees that text is actually rendered in
italics, and it is incorrect to assume that the “i” element as compared to
the “cite” element would guarantee that, or that the “span” element instead
of the “i” element would guarantee that it would not happen.
Where there are alternatives for markup with equal outcome, it is logical to
choose the alternative that conveys the semantics of the content to be
marked up in the most simple and clearest way. That is the “cite” element
here; neither the “i” element nor the “span” element.
> [further obvious misconceptions and fallacies that I do not want to take
> the time to address now]
See also:
<
https://yourlogicalfallacyis.com/>
<
https://en.wikipedia.org/wiki/List_of_fallacies>
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f806at$ail$1$
8300...@news.demon.co.uk>