Re: Permalinks are broken on the Accessible Name and Description Computation page

When you enable permalinks, ReSpec creates a link to each header.  If the
header already has an ID, then it uses that.  Otherwise, it creates one.
That's the h-* identifier.  It does this so that the permalink is
associated with the header, not necessarily the section.  Why?  Because in
ARIA 1.0 we had many headers per section, and we wanted permalinks to all
of them.  In theory if the immediate ancestor of an h element was a section
element, I could have the permalink connect to that.  But anyway, that's
what is happening.

On Fri, Dec 11, 2015 at 8:28 AM, Joseph Scheuhammer <clown@alum.mit.edu>
wrote:

> As an FYI, it appears that the permalinks are broken on the Accessible
>> Name and Description Computation page.
>>
>> For example, the following is the permalink for the Text Alternative
>> Computation section:
>> http://www.w3.org/TR/accname-aam-1.1/#mapping_additional_nd_te
>> Which actually doesn't work.
>>
>
> Actually, it does work.  That links to the beginning of the section.
>
> Instead, this is the correct permalink for that section:
>> http://www.w3.org/TR/accname-aam-1.1/#h-mapping_additional_nd_te
>> Which does work and matches the ID of the heading.
>>
>
> That links to the header at the beginning of the same section.
>
> I think this problem exists all throughout this page.
>>
>
> If this is a problem, it's problem with all of the documents.  For
> example, in the aria spec, the following two permalinks are to the section
> and the header for that section:
> - http://www.w3.org/TR/wai-aria-1.1/#target-audience
> - http://www.w3.org/TR/wai-aria-1.1/#h-target-audience
>
> The first link IDREF is added by the document editors.  I'm not sure where
> the second form is coming from, but I suspect ReSpec or some ReSpec post
> processing add-on.
>
> CCing the editors' list.
>
> --
> ;;;;joseph.
>
> 'Array(16).join("wat" - 1) + " Batman!"'
>            - G. Bernhardt -
>
>
>


-- 
Shane McCarron
Managing Director, Applied Testing and Technology, Inc.

Received on Friday, 11 December 2015 17:57:26 UTC