This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21895 - Require non-empty URL for @cite, and let empty @cite (like empty @src) be without effect
Summary: Require non-empty URL for @cite, and let empty @cite (like empty @src) be wit...
Status: CLOSED WORKSFORME
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-01 21:13 UTC by Leif Halvard Silli
Modified: 2013-05-29 00:16 UTC (History)
3 users (show)

See Also:


Attachments

Description Leif Halvard Silli 2013-05-01 21:13:24 UTC
(Initial) discussion:

http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2013-May/039491.html

PROBLEM:

* The meaning of an empty citation link, is unclear.
* It also seems to have no use case.

PROPOSAL:

* Require non-empty URL for @cite attribute (of q, blockquote, ins, or del)
* Let empty @cite (like empty @src) be without effect

* Alternatively: Define clearly what the meaning of an empty @cite is and how it should be handled.

JUSTIFICTION:

* There is now a presedence for how HTML handles empty @src
* There seems to be no use case for empty @cite.
* For a use, or script, to follow an empty citation link, would only be confusing.
Comment 1 Leif Halvard Silli 2013-05-01 21:35:21 UTC
Btw, if possible, @cite and @longdesc ought to work the same way in these details. Thus let me mention that for longdesc then:

* implementations ignore @longdesc when empty. [1]
* proposal is that @longdesc spec blesses that behavior [1]

[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=21778
Comment 2 Ian 'Hixie' Hickson 2013-05-28 21:23:22 UTC
longdesc="" is ignored by UAs per the spec.
cite="" with empty value is treated as a link to the current document. This is already specced.
Comment 3 Leif Halvard Silli 2013-05-29 00:16:41 UTC
OK. So it seems that @cite and @longdesc (in its new spec) separate from each others when it comes to whether the attribute can be empty.