<?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>10015</bug_id>
          
          <creation_ts>2010-06-25 21:15:54 +0000</creation_ts>
          <short_desc>longdesc URL checking</short_desc>
          <delta_ts>2014-02-10 10:36:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>Macintosh</rep_platform>
          <op_sys>Mac System 9.x</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://dev.w3.org/html5/spec/embedded-content-1.html#the-img-element</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>LC</target_milestone>
          
          <blocked>24594</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Leif Halvard Silli">xn--mlform-iua</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>faulkner.steve</cc>
    
    <cc>ian</cc>
    
    <cc>laura.lee.carlson</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>rubys</cc>
    
    <cc>xn--mlform-iua</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>36423</commentid>
    <comment_count>0</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2010-06-25 21:15:54 +0000</bug_when>
    <thetext>Probably as consequence of @longdesc having status as obsolete and non-conforming, Validator.nu does not perform any validity checking of th longdesc URL. Thus authors are not told whether they used it correctly or not - all they get to know is that it is wrong to use it.

HTML4 did not perform URL validity checking. And in the case of @longdesc, this has probly contributed a lot to the lack of understanding of how it works.

Meaningless or invalid URLs represents 96% of all errors linked to @longdesc. 
See Mark Pilgrim&apos;s blog post: http://blog.whatwg.org/the-longdesc-lottery
Hence introducing URL validity checking of @longdesc would be important.

Do the maths: 

(A) making @longdesc invalid will lead to 100% of all longdesc occurences becoming stamped as errors. 
(B) making it _valid_, but with strict URL checking, could in theory lead to 96% of all @longdesc occurences stamped as error

Hence we should perform proper URL validity checking rather than stamping all use as invalid - since this would in theory lead to the same error match.

Criteria: Due to the problems with incorrect use, I suggest that longdesc URL checking should be stricter than the URL checking that Validator.nu performs with regard to validity of the URLs inside @src, @href, @cite etcetera.

By stricter I mean that we should evaluate whether the things Mark Piligrim took up, should be invalid - or cause warning - in @longdesc, despite that it may not be considered an error to do the same in @src or @href:

* the empty string 
* pointing to the same URL as the src attribute
* pointing to the page you&apos;re already on
* pointing  to the root level of another domain (probably not possible to check)
* is the same as a parent link&apos;s href attribute 
   (i.e. the longdesc is redundant because you could just follow the image link instead)

One could also consider showing warnings or errors if the longdesc URL has certain file endings, such as .gif, .jpeg etc

One of Mark Piligrim&apos;s sources (http://wiki.whatwg.org/wiki/Longdesc_usage) showed that use of @longdesc as a word container is the largest group or errors: &quot;12 pages used longdesc=&quot;...&quot; not as an URL, but as a human-readable description&quot;

It should probably be considered an error to use @longdesc on a presentational image. Thus, if the &lt;img&gt; has an empty @alt, the user should see an error, since such an image would (probably) count as having role=&quot;presentation&quot;, meaning that AT users would not see it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36425</commentid>
    <comment_count>1</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2010-06-25 22:27:15 +0000</bug_when>
    <thetext>Validator should display warning if @aria-describedby and @longdesc are similar. Thus this should cause warning:

&lt;img 
   aria-describedby=samepage-fragment  
  longdesc=samepage-fragment 
  src=foo alt=&quot;Foo. Bar.&quot;&gt;

While this should not:


&lt;img 
   aria-describedby=samepage-fragment  
  longdesc=#samepage-fragment 
  src=foo alt=&quot;Foo. Bar.&quot;&gt;

(The longdesc is a URL and thus needs the to be a #fragment URI, if it points to the same pager, while aria-describedby is a idref.i</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37522</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-08-16 22:25:18 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: The longdesc=&quot;&quot; attribute is obsolete, per WG decision.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37528</commentid>
    <comment_count>3</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2010-08-16 22:59:55 +0000</bug_when>
    <thetext>ISSUE-30 has been appealed, and the Appeal is awaiting response from the Team Contact and/or Director.

http://www.w3.org/mid/20100815024127561631.58433bf1@xn--mlform-iua.no</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37572</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-08-17 18:54:03 +0000</bug_when>
    <thetext>Please don&apos;t reopen unless the appeal succeeds.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38310</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Cooper">cooper</who>
    <bug_when>2010-08-31 13:37:24 +0000</bug_when>
    <thetext>http://lists.w3.org/Archives/Public/public-html-a11y/2010Aug/0013.html

The bug triage sub-team thinks the HTML A11Y TF does not need to formally follow this bug. Original submitters or other interested parties may choose to continue to push this issue on their own. Notes from the sub-team may follow in a separate comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46673</commentid>
    <comment_count>6</comment_count>
    <who name="Laura Carlson">laura.lee.carlson</who>
    <bug_when>2011-03-14 13:11:47 +0000</bug_when>
    <thetext>Enabling validators to programmatically detect improper URIs would help make longdesc more robust. More people use the W3C validator than read the specs. It has been said that the W3C HTML4 validator has done worlds more than the HTML4 specification for increasing the quality of HTML documents on the web.
http://lists.w3.org/Archives/Public/public-html/2008Nov/0122.html

Requiring longdesc link checking would also aid in accessibility education. 
http://validator.w3.org/docs/why.html#learning
It would create a teachable moment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46674</commentid>
    <comment_count>7</comment_count>
    <who name="Laura Carlson">laura.lee.carlson</who>
    <bug_when>2011-03-14 13:14:51 +0000</bug_when>
    <thetext>Reopening bug since Issue 30 has been reopened.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46700</commentid>
    <comment_count>8</comment_count>
    <who name="Sam Ruby">rubys</who>
    <bug_when>2011-03-15 01:51:44 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; Reopening bug since Issue 30 has been reopened.

Presumably, when Ian said &quot;appeal succeeds&quot;, he was not referring to the intermediate step of the issue being reopened, but rather to the entire process.

A status of OPEN means that the ball is in the editor&apos;s court.  A status of RESOLVED coupled with TrackerIssue means that the ball is the WG&apos;s court.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46712</commentid>
    <comment_count>9</comment_count>
    <who name="Laura Carlson">laura.lee.carlson</who>
    <bug_when>2011-03-15 08:10:20 +0000</bug_when>
    <thetext>&gt; Presumably, when Ian said &quot;appeal succeeds&quot;, he was not referring to the
&gt; intermediate step of the issue being reopened, but rather to the entire
&gt; process.


Ian, Is that what you meant?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100118</commentid>
    <comment_count>10</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2014-02-10 09:59:14 +0000</bug_when>
    <thetext>cloning and closing here as this bug should be resolved in the img description spec</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>