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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>6464</bug_id>
          
          <creation_ts>2006-01-10 01:13:56 -0800</creation_ts>
          <short_desc>Unclickable cite reference</short_desc>
          <delta_ts>2009-03-29 07:47:41 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://blog.empyree.org/?873-flash-pour-ceux-qui-n-ont-rien-dire</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Latapie">david</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>emacemac7</cc>
    
    <cc>ian</cc>
    
    <cc>nickshanks</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>28119</commentid>
    <comment_count>0</comment_count>
    <who name="David Latapie">david</who>
    <bug_when>2006-01-10 01:13:56 -0800</bug_when>
    <thetext>cite attibute, albeit perfectly valid, is not supported by browsers.
- A common workaround is CSS autogeneration: http://www.holovaty.com/blog/archive/
2002/12/20/0454
- But the end result is not clickable. Second workaround: it is possible to make it clickable with a special 
Opera XML rule (but it would only work with Opera, neither Mozilla nor WebCore).
- Third workaround: duplicating information with a sentence explicitely stating where a quotation comes 
from, at the cost of losing some semantics.

For the reason of these three workarounds, I assign a P3 severity status instead of P2.
Some additionnal informations in French: http://blog.empyree.org/?282-des-cite-et-des-sites</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28120</commentid>
    <comment_count>1</comment_count>
    <who name="David Latapie">david</who>
    <bug_when>2006-01-10 01:15:51 -0800</bug_when>
    <thetext>(In reply to comment #0)
a sort of testcase : http://blog.empyree.org/?873-flash-pour-ceux-qui-n-ont-rien-dire</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28138</commentid>
    <comment_count>2</comment_count>
    <who name="Michael J. Cohen">mjc</who>
    <bug_when>2006-01-10 07:26:54 -0800</bug_when>
    <thetext>occurs for me on r11976</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28141</commentid>
    <comment_count>3</comment_count>
      <attachid>5598</attachid>
    <who name="Joost de Valk (AlthA)">joost</who>
    <bug_when>2006-01-10 07:59:58 -0800</bug_when>
    <thetext>Created attachment 5598
testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28142</commentid>
    <comment_count>4</comment_count>
    <who name="Joost de Valk (AlthA)">joost</who>
    <bug_when>2006-01-10 08:03:00 -0800</bug_when>
    <thetext>added a testcase showing that this is indeed not clickable. But since it&apos;s not intended to as far as the spec 
is concerned ( http://www.w3.org/TR/html4/struct/text.html#h-9.2.1 ), i&apos;m closing this as invalid. Neither 
FireFox or IE/Win make this a clickable link whatsoever. Maybe Ian Hickson can shed some light on what 
it&apos;s supposed to do :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28176</commentid>
    <comment_count>5</comment_count>
    <who name="David Latapie">david</who>
    <bug_when>2006-01-10 11:57:52 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; added a testcase showing that this is indeed not clickable. But since it&apos;s not intended to as far as the 
spec 
&gt; is concerned ( http://www.w3.org/TR/html4/struct/text.html#h-9.2.1 ), i&apos;m closing this as invalid. 
Neither 
&gt; FireFox or IE/Win make this a clickable link whatsoever. Maybe Ian Hickson can shed some light on 
what 
&gt; it&apos;s supposed to do :)

It is not supposed to be clickable, according to the specs. That is why I referenced the CSS trick as a 
*workaround*. The basic problem is that browser do not offer any way to go (or even to display) the 
value of the cite attribute). Hence the Opera workaround, by inserting a bit of xml.

The bug is still OK: the first line is the bug (&quot;cite attibute, albeit perfectly valid, is not supported by 
browsers.&quot;)
The rest is imperfects worlarounds.

I reopen the bug, please tell me if I should not do this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28179</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-01-10 12:39:56 -0800</bug_when>
    <thetext>I would say: please open a new bug, asking for cite attribute support, ideally providing a testcase for it. 
This bug can be referenced for additional info on workarounds.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28180</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-01-10 13:17:21 -0800</bug_when>
    <thetext>Sorry, please disregard my previous comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28183</commentid>
    <comment_count>8</comment_count>
      <attachid>5601</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-01-10 14:11:26 -0800</bug_when>
    <thetext>Created attachment 5601
cite in blockquote testcase

Do I understand it right that you are suggesting that the cite attribute should
be rendered somehow, although no other browser does this? If so, do you have a
suggestion about how it should be rendered (link? tooltip?), so that
compatibility wouldn&apos;t be broken?

Was this ever discussed before (perhaps, even in Mozilla bugzilla)? I guess, it
should have been.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29292</commentid>
    <comment_count>9</comment_count>
    <who name="David Latapie">david</who>
    <bug_when>2006-01-21 18:35:20 -0800</bug_when>
    <thetext>Hi,

Well

1. making blockquote cite visible is all too easy
http://www.holovaty.com/blog/archive/2002/12/20/0454/

2. making them selectable is native with Opera, which is able to select auto-generated content

3. making it clickable is possible with a minor xml rule Opera provides

q[cite], blockquote[cite] {
	-o-link: attr(cite);
	-o-link-source:current;
	cursor: pointer
}

I systematicaly use blockquote cite instead of a non-semantic dedicated paragraph.  Alexey, do I answer your question?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29335</commentid>
    <comment_count>10</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-01-22 04:15:55 -0800</bug_when>
    <thetext>Thank you!

Putting aside the general problem of non-selectable generated content, which is not specific to citations in any way, I see two issues here:
1) No built-in rendering for cite attribute. Firefox provides access to this attribute via a properties item in its context menu; Opera, Safari and WinIE don&apos;t seem to provide any access at all.
2) No support for Opera-only attributes &quot;-o-link&quot; and &quot;-o-link-source&quot;.

I&apos;m confirming this bug (and changing severity to enchancement), although it will need to be separated in two if both these features are deemed necessary in WebKit.

See also:
https://bugzilla.mozilla.org/show_bug.cgi?id=1995
https://bugzilla.mozilla.org/show_bug.cgi?id=3662</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29336</commentid>
    <comment_count>11</comment_count>
      <attachid>5834</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-01-22 04:16:41 -0800</bug_when>
    <thetext>Created attachment 5834
-o-link test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29505</commentid>
    <comment_count>12</comment_count>
    <who name="David Latapie">david</who>
    <bug_when>2006-01-22 17:42:05 -0800</bug_when>
    <thetext>Hi,

You seem to be more knowledgeable than me on this topic. Could I ask you to report the two bugs? Or maybe just the first one, as I don&apos;t think Firefox should handle any proprietary feature

BTW the description of these features is here &lt;http://www.opera.com/docs/specs/&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29551</commentid>
    <comment_count>13</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-01-23 00:06:05 -0800</bug_when>
    <thetext>Me, knowledgeable? :)
I&apos;ve even misnamed those CSS properties as attributes, sorry for that.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31260</commentid>
    <comment_count>14</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-02-03 23:50:40 -0800</bug_when>
    <thetext>See also: &lt;http://annevankesteren.nl/2006/01/cite&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31273</commentid>
    <comment_count>15</comment_count>
    <who name="David Latapie">david</who>
    <bug_when>2006-02-04 02:59:24 -0800</bug_when>
    <thetext>Reacted: http://annevankesteren.nl/2006/01/cite#comment-5148</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34638</commentid>
    <comment_count>16</comment_count>
    <who name="Nicholas Shanks">nickshanks</who>
    <bug_when>2007-01-16 04:28:07 -0800</bug_when>
    <thetext>I suggest making elements with a cite attribute (where that cite attribute is a URL) produce a contextual menu items such as ‘Open Citataion in Current Tab’ and ‘Open Citataion in New Tab’.
When the mouse is hovering over a &lt;q&gt; or &lt;b.q.&gt; element, change the cursor to an arrow with menu beside it.
You may also want to add a default style to html4.css for q[cite] and b.q.[cite]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34632</commentid>
    <comment_count>17</comment_count>
    <who name="David Latapie">david</who>
    <bug_when>2007-01-16 09:26:30 -0800</bug_when>
    <thetext>(In reply to comment #10)
&gt; Putting aside the general problem of non-selectable generated content, which is
&gt; not specific to citations in any way, I see two issues here:
&gt; 1) No built-in rendering for cite attribute. Firefox provides access to this
&gt; attribute via a properties item in its context menu; Opera, Safari and WinIE
&gt; don&apos;t seem to provide any access at all.
&gt; 2) No support for Opera-only attributes &quot;-o-link&quot; and &quot;-o-link-source&quot;.
&gt; 
&gt; I&apos;m confirming this bug (and changing severity to enchancement), although it
&gt; will need to be separated in two if both these features are deemed necessary in
&gt; WebKit.
&gt; 
&gt; See also:
&gt; https://bugzilla.mozilla.org/show_bug.cgi?id=1995
&gt; https://bugzilla.mozilla.org/show_bug.cgi?id=3662
&gt; 

I have some new information related to the Opera technology; they are not using their own technology, but rather implemtenting a Y2K proposal called CLINK. You can check on Håkon’s very interesting (and legible) PHD: http://people.opera.com/howcome/2006/phd/#h-349

(In reply to comment #16)
&gt; I suggest making elements with a cite attribute (where that cite attribute is a
&gt; URL) produce a contextual menu items such as ‘Open Citation in Current Tab’
&gt; and ‘Open Citation in New Tab’.
&gt; When the mouse is hovering over a &lt;q&gt; or &lt;b.q.&gt; element, change the cursor to
&gt; an arrow with menu beside it.
&gt; You may also want to add a default style to html4.css for q[cite] and
&gt; b.q.[cite]
&gt; 

I have to say I don&apos;t really like the Opera solution: they allow one link to be in another (a blockquote  with a set cite attribute may still have another link inside, like &lt;blockquote cite=&quot;foo.html&quot;&gt;this is a &lt;a href=&quot;bar.html&quot;&gt;link&lt;/a&gt;&lt;/blockquote&gt;. If you click on &quot;link&quot;, you&apos;ll go to bar.html. If you click anywhere else on the blockquote, you will go at foo.html).

In my humble opinion, this is both overkill and a bad idea. What we really want is to have a &quot;source&quot; link at the bottom of the quote; to make the whole quote clickable is confusing.

The contextual menu idea is suboptimal, once again, IMHO (BTW, a contextual menu is available with Opera too). According to the principle of least surprise, the best appears to me to be a &quot;generated area&quot; (:after for the name, like content:&quot;Click for the source&quot;). Would we have to emulate the link behaviour (:hover {cursor:pointer}, text-decoration:underline…) or would it come free, the area being natively considered as a link? I favour the second way as more elegant, but I have no idea whether or not this is hard to do.

I&apos;m not sure I&apos;m clear, please ask for any clarification (BTW, a preview feature would be great).</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>5598</attachid>
            <date>2006-01-10 07:59:58 -0800</date>
            <delta_ts>2006-01-10 07:59:58 -0800</delta_ts>
            <desc>testcase</desc>
            <filename>6464-cite-not-clickable.html</filename>
            <type>text/html</type>
            <size>46</size>
            <attacher name="Joost de Valk (AlthA)">joost</attacher>
            
              <data encoding="base64">PGNpdGUgY2l0ZT0iaHR0cDovL3dlYmtpdC5vcmciPldlYktpdCE8L2NpdGU+Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>5601</attachid>
            <date>2006-01-10 14:11:26 -0800</date>
            <delta_ts>2006-01-10 14:11:26 -0800</delta_ts>
            <desc>cite in blockquote testcase</desc>
            <filename>6464-cite-in-blockquote.html</filename>
            <type>text/html</type>
            <size>58</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">PGJsb2NrcXVvdGUgY2l0ZT0iaHR0cDovL3dlYmtpdC5vcmciPldlYktpdCE8L2Jsb2NrcXVvdGU+
Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>5834</attachid>
            <date>2006-01-22 04:16:41 -0800</date>
            <delta_ts>2006-01-22 04:16:41 -0800</delta_ts>
            <desc>-o-link test case</desc>
            <filename>o-link.html</filename>
            <type>text/html</type>
            <size>649</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">PGhlYWQ+CjxzdHlsZT4KcVtjaXRlXSwgYmxvY2txdW90ZVtjaXRlXSB7CiAgLW8tbGluazogYXR0
cihjaXRlKTsKICAtby1saW5rLXNvdXJjZTogY3VycmVudDsKfQpibG9ja3F1b3RlW2NpdGVdOmFm
dGVyIHsKCWNvbnRlbnQ6ICJRdW90ZSBmcm9tOiAiIGF0dHIoY2l0ZSk7CglkaXNwbGF5OiBibG9j
azsKCWJvcmRlci10b3A6IDFweCBzb2xpZCAjNjY5OwoJY29sb3I6ICM2Njk7CgltYXJnaW46IDFl
bSAwIDA7CglwYWRkaW5nOiAuNWVtIDAgMDsKCWZvbnQtc2l6ZTogLjhlbTsKCWZvbnQtd2VpZ2h0
OiBib2xkOwp9Cjwvc3R5bGU+CjwvaGVhZD4KPGJvZHk+ClVzZSBhIGNvbnRleHQgbWVudSB0byBm
b2xsb3cgdGhlIGxpbms6IDxxIGNpdGU9Imh0dHA6Ly9idWd6aWxsYS5vcGVuZGFyd2luLm9yZy9x
dWlwcy5jZ2kiPkV2ZXJ5dGhpbmcgc2hvdWxkIGJlIG1hZGUgYXMgc2ltcGxlIGFzIHBvc3NpYmxl
LCBidXQgbm90IHNpbXBsZXIuPC9xPgo8aHI+CjxibG9ja3F1b3RlIGNpdGU9Imh0dHA6Ly9idWd6
aWxsYS5vcGVuZGFyd2luLm9yZy9xdWlwcy5jZ2kiPkV2ZXJ5dGhpbmcgc2hvdWxkIGJlIG1hZGUg
YXMgc2ltcGxlIGFzIHBvc3NpYmxlLCBidXQgbm90IHNpbXBsZXIuIC0gQWxiZXJ0IEVpbnN0ZWlu
PC9ibG9ja3F1b3RlPgo8L2JvZHk+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>