Re: What is going on

Thanks Sid!

> On 7 Dec 2023, at 12:03, Sid Vishnoi <sidvishnoi8@gmail.com> wrote:
> 
> Yes, unrelated to ReSpec. It's a custom postProcess script that wcag uses. Might have to check its commit history to find rationale.
> 
> On Thu, 7 Dec, 2023, 17:06 Kevin White, <kevin@w3.org <mailto:kevin@w3.org>> wrote:
>> Hi Sid,
>> 
>> Thanks for that. So this isn’t anything to do with ReSpec?
>> 
>> Kevin
>> 
>> > On 7 Dec 2023, at 11:15, Sid Vishnoi <sidvishnoi8@gmail.com <mailto:sidvishnoi8@gmail.com>> wrote:
>> > 
>> > Hi Kevin,
>> > 
>> > This title attribute is being set via wcag.js:
>> > https://github.com/w3c/wcag/blob/869d568d59430d0237bef389cf34bb8db1eae1db/script/wcag.js#L77-L84
>> > I am not aware of the reasoning for it, but it seems like a bug in this case.
>> > 
>> > On Thu, Dec 7, 2023 at 3:58 PM Kevin White <kevin@w3.org <mailto:kevin@w3.org>> wrote:
>> >> 
>> >> Hi,
>> >> 
>> >> I am trying to get to the bottom of how and why in ‘[New]’ is being included in a `title` attribute for links to glossary terms. For example, https://www.w3.org/TR/WCAG22/#dfn-perimeter, includes a link to ‘minimum bounding box’. The link is written as:
>> >> 
>> >> <a href="#dfn-bounding-boxes" class="internalDFN" data-link-type="dfn" id="ref-for-dfn-bounding-boxes-2" title="[New]">minimum bounding box</a>
>> >> 
>> >> 
>> >> The source pre-ReSpec for the minimum bounding box definition is:
>> >> 
>> >> <dt class="new"><dfn data-lt="bounding boxes|bounding box">minimum bounding box</dfn></dt>
>> >> <dd class="new">
>> >> <p class="change">New</p>
>> >>   <p>the smallest enclosing rectangle aligned to the horizontal axis within which all the points of a shape lie. For components which wrap onto multiple lines as part of a sentence or block of text (such as hypertext links), the bounding box is based on how the component would appear on a single line.</p>
>> >> </dd>
>> >> 
>> >> 
>> >> I am guessing the addition of ‘[New]’ is because of the `class=“new”` in the <dt> or <dd>. However, I can’t find anything in the documentation that indicates why or how this happens. Got any links?
>> >> 
>> >> Thanks
>> >> 
>> >> Kevin
>> > 
>> > 
>> > 
>> > -- 
>> > Cheers!
>> > Sid Vishnoi
>> > (ReSpec maintainer here)
>> 

Received on Thursday, 7 December 2023 12:49:01 UTC