<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>22907</bug_id>
          
          <creation_ts>2013-08-09 15:15:33 +0000</creation_ts>
          <short_desc>decide what to do with cite=&quot;&quot; attribute</short_desc>
          <delta_ts>2014-09-26 15:43:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael[tm] Smith">mike</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>91837</commentid>
    <comment_count>0</comment_count>
      <attachid>1385</attachid>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2013-08-09 15:15:33 +0000</bug_when>
    <thetext>Created attachment 1385
patch

In the source for the spec, there are some instances of &lt;blockquote&gt; and &lt;q&gt; elements that have &quot;cite&quot; attributes. They&apos;re not serving any useful purpose and currently cause the validator to emit warnings so I propose they please just be dropped.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91846</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-08-09 19:58:59 +0000</bug_when>
    <thetext>They provide the purpose of saying where the text is quoted from. Why would it be better for that to be in a comment that in an attribute?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91870</commentid>
    <comment_count>2</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2013-08-11 12:50:15 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; They provide the purpose of saying where the text is quoted from.

Right, but only to somebody who looks at the HTML source of the spec. There are no UAs I&apos;m aware of that actually expose that information in the browser UI.

&gt; Why would
&gt; it be better for that to be in a comment than in an attribute?

It&apos;d be better in that it wouldn&apos;t cause the validator to emit a warning :-) But I don&apos;t feel strongly about this bug, so feel free to wont-fix it. It may be that the better fix is to drop the warning from the validator sources.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91934</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-08-12 21:30:33 +0000</bug_when>
    <thetext>The ideal fix is probably for browsers to expose the citations somehow, but yeah, I dunno. I agree this isn&apos;t an idea situation. Leaving this bug open to figure out what to do with cite=&quot;&quot; in general.

If it&apos;s in the language, it makes sense for the spec to use it. If it doesn&apos;t make sense for the spec to use it, it probably shouldn&apos;t be in the language.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97204</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-12-05 19:02:40 +0000</bug_when>
    <thetext>I&apos;m starting to lean towards just dropping cite=&quot;&quot;. Which isn&apos;t super great, but if nobody cares enough to implement it...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97205</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-12-05 19:27:14 +0000</bug_when>
    <thetext>Another option would be to introduce a new element &lt;credit&gt;, which would go either in &lt;blockquote&gt; or &lt;figcaption&gt; elements, inside of which an &lt;a href=&quot;&quot;&gt; would implicitly be the citation reference. This would also solve some other problems at the same time...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97234</commentid>
    <comment_count>6</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2013-12-06 08:17:01 +0000</bug_when>
    <thetext>(In reply to Ian &apos;Hixie&apos; Hickson from comment #4)
&gt; I&apos;m starting to lean towards just dropping cite=&quot;&quot;. Which isn&apos;t super great,

I wouldn&apos;t lose any sleep if it were dropped. But assuming you mean that it&apos;d become non-conforming, I guess the next problem I&apos;d personally have is people filing bug reports complaining that the validator is telling them that all their documents containing cite=&quot;&quot; are now invalid.

The original proposal in my bug report was just to have the HTML spec source drop the instance of cite=&quot;&quot; that the spec source contains. I&apos;d still be happy if I just got that :)

&gt; but if nobody cares enough to implement it...

As far as I can see, most authors using cite=&quot;&quot; now don&apos;t care that it&apos;s not implemented in browsers. They&apos;re not clamoring for it to be implemented. They&apos;re just using it for their own reasons (maybe bad ones but maybe good ones) and they don&apos;t care that browsers don&apos;t do anything with it, and their users don&apos;t care that browsers don&apos;t do anything with it.

That said, I guess it&apos;s possible that some authors who are using it now may just rely on some custom JS code or some JS library that implements support for exposing cite=&quot;&quot; to users. So they do implement support for it in their documents, and they would like for cite=&quot;&quot; to remain conforming, and so it might be reasonable for us to keep it conforming.

Anyway, FWIW, I think the reason nobody cares enough to implement it is that it&apos;s not actually solving any real problem that users and authors want solved. Right now if authors want to let users know where a particular quotation came from, they  can (and do) do that trivially just by wrapping some part (or all) the text of the quotation or its attribution in an &lt;a&gt; element.

cite=&quot;&quot; seems to me like that a classic case of a spec writer having written up a solution for a non-problem that authors and users never had, and so never asked anybody to solve for them.

Sadly though, now that cite=&quot;&quot; exists I&apos;m sure there are authors who consider it a sacred part of HTML that we shouldn&apos;t mess around with and who would complain loudly about us dropping it. 

(In reply to Ian &apos;Hixie&apos; Hickson from comment #5)
&gt; Another option would be to introduce a new element &lt;credit&gt;, which would go
&gt; either in &lt;blockquote&gt; or &lt;figcaption&gt; elements, inside of which an &lt;a
&gt; href=&quot;&quot;&gt; would implicitly be the citation reference.

See what I said above about there not being any real problem to solve here, as far as I can see :) But even if there were, I don&apos;t see how adding a new element like &lt;credit&gt; would solve it any better than cite=&quot;&quot;. And I don&apos;t see that implementers would care any more about implementing &lt;credit&gt; than they do (don&apos;t) about cite=&quot;&quot;. 

&gt; This would also solve
&gt; some other problems at the same time...

I&apos;m curious about what other problems you think it&apos;d solve (but not that curious...)

(In reply to Ian &apos;Hixie&apos; Hickson from comment #3)
&gt; The ideal fix is probably for browsers to expose the citations somehow, but
&gt; yeah, I dunno. I agree this isn&apos;t an idea situation. Leaving this bug open
&gt; to figure out what to do with cite=&quot;&quot; in general.
&gt; 
&gt; If it&apos;s in the language, it makes sense for the spec to use it. If it
&gt; doesn&apos;t make sense for the spec to use it, it probably shouldn&apos;t be in the
&gt; language.

(In reply to Ian &apos;Hixie&apos; Hickson from comment #3)
&gt; The ideal fix is probably for browsers to expose the citations somehow,

I think that&apos;s not actually the ideal fix. Browsers already can expose the citations when the authors simply add a plain-old user-visible hyperlink in their markup, which is essentially no more work for them to do than adding cite=&quot;&quot; (or &lt;credit&gt;). And just adding a hyperlink is what most authors do already now. And users don&apos;t seem to feel it&apos;s a hardship that they currently lack some other means for having the URL for a cited source exposed to them.

I&apos;m actually pretty glad that implementers have so far had the good sense so far not to implement cite=&quot;&quot;. Because the code and the UI for it would just be one more thing that&apos;d need to be tested, and one more thing to maintain and fix bugs in, without bringing any significant new benefit to users.

&gt; If it&apos;s in the language, it makes sense for the spec to use it.

I don&apos;t think the source of spec has to try to use every possible feature of the language. The language has plenty of other features that are of marginal value that the spec is already also not using (e.g., hreflang=&quot;&quot; or any number of other things). I don&apos;t see what makes cite=&quot;&quot; so special that you&apos;re compelled to actually use it.

Maybe if the spec itself provided some way (through JS) to expose its cite=&quot;&quot; contents to users (similar to the way the &lt;dfn&gt; links are exposed), then it would make sense for the spec source to use it. But given that you can already expose the ULRs for cited sources to users just with a simple &lt;a&gt; element, I personally wouldn&apos;t see much point in trying to do it some other way.

&gt; If it
&gt; doesn&apos;t make sense for the spec to use it, it probably shouldn&apos;t be in the
&gt; language.

In a perfect world, yeah. But in the actual imperfect world we find ourselves in, I think there&apos;s not much harm caused by keeping cite=&quot;&quot; in the language even though browsers don&apos;t (won&apos;t) implement it. I think there&apos;s some harm that could be caused by dropping it outright -- in that as I mentioned above, some authors may have documents that provide some custom JS thing that exposes cite=&quot;&quot; contents to users, and so for them it would be bad for us to just unilaterally now make cite=&quot;&quot; invalid.

I still think the best solution is just for the spec to not use cite=&quot;&quot; -- in the same way the spec also doesn&apos;t use hreflang=&quot;&quot; or whatever.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97264</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-12-06 18:51:10 +0000</bug_when>
    <thetext>(In reply to Michael[tm] Smith from comment #6)
&gt; 
&gt; As far as I can see, most authors using cite=&quot;&quot; now don&apos;t care that it&apos;s not
&gt; implemented in browsers. They&apos;re not clamoring for it to be implemented.
&gt; They&apos;re just using it for their own reasons (maybe bad ones but maybe good
&gt; ones) and they don&apos;t care that browsers don&apos;t do anything with it, and their
&gt; users don&apos;t care that browsers don&apos;t do anything with it.

Right. That&apos;s basically the case with the way the spec uses it. It&apos;s a way for me to note where those quotes came from, mostly for my own purposes when editing the spec.


&gt; I&apos;m curious about what other problems you think it&apos;d solve (but not that
&gt; curious...)

For example, it would be a much saner solution to the problem that&apos;s caused the W3C HTML spec to fork in its definition of &lt;blockquote&gt; than the actual solution the W3C HTML spec currently has.


&gt; I still think the best solution is just for the spec to not use cite=&quot;&quot; --
&gt; in the same way the spec also doesn&apos;t use hreflang=&quot;&quot; or whatever.

The spec doesn&apos;t use cite=&quot;&quot; for the sake of it, it&apos;s using it exactly as specified because it&apos;s appropriate in that context. If there was some reason hreflang=&quot;&quot; was appropriate for the spec (e.g. to link to translations), it would do so too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99104</commentid>
    <comment_count>8</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2014-01-26 14:00:45 +0000</bug_when>
    <thetext>I notice that the spec actually clearly says that the &quot;cite&quot; attribute is &quot;primarily intended for private use (e.g. by server-side scripts collecting statistics about a site&apos;s use of quotations), not for readers&quot;.

So, given that along with the rest of the comments in this bug, I don&apos;t feel strongly about there being a big need to have native browser support for &quot;cite&quot; in order to justify keeping it in the spec. (Nor do I think it&apos;s appropriate any longer for the validator to emit a warning about cite not being supported in browsers, so I&apos;ve removed that warning from the validator).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112218</commentid>
    <comment_count>9</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-25 23:04:37 +0000</bug_when>
    <thetext>I think I&apos;m just going to leave it. There&apos;s little value in keeping it, but even less in removing it, so...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112262</commentid>
    <comment_count>10</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2014-09-26 15:43:38 +0000</bug_when>
    <thetext>(In reply to Ian &apos;Hixie&apos; Hickson from comment #9)
&gt; I think I&apos;m just going to leave it. There&apos;s little value in keeping it, but
&gt; even less in removing it, so...

Yeah, sounds like the right call</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>1385</attachid>
            <date>2013-08-09 15:15:33 +0000</date>
            <delta_ts>2013-08-09 15:15:33 +0000</delta_ts>
            <desc>patch</desc>
            <filename>patch.remove-cite</filename>
            <type>text/plain</type>
            <size>1919</size>
            <attacher name="Michael[tm] Smith">mike</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL3NvdXJjZSBiL3NvdXJjZQppbmRleCA2NGFhOThmLi5kMzI0OWZhIDEwMDY0
NAotLS0gYS9zb3VyY2UKKysrIGIvc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