E-mail List Archives
Re: alt or alt=""
From: Mallory
Date: Sep 4, 2019 12:45PM
- Next message: Mallory: "Re: Trying to Understand 2.5.3"
- Previous message: Marissa Sapega: "Free webinar on Accessible Kiosks on September 12"
- Next message in Thread: Jeremy Echols: "Re: alt or alt="""
- Previous message in Thread: glen walker: "Re: alt or alt="""
- View all messages in this Thread
Sounds like maybe a regex for letters a,l,t followed by a angled bracket, however such a regex would also assume the alt attribute is last. There's no rule that it must be last, so authors could easily write
<img alt src="foobar.png">
and such a filter would miss it.
cheers,
On Tue, Sep 3, 2019, at 11:57 PM, glen walker wrote:
> According to html specs, alt and alt="" are exactly the same.
>
> https://www.w3.org/TR/2012/WD-html-markup-20120329/syntax.html#syntax-attr-empty
>
> "And alt> cannot be assured to identify a decorative image if some other
> attribute follows the alt attribute"
>
> I don't follow that. Why does it matter if there's another attribute
> following alt?
>
>
> On Tue, Sep 3, 2019 at 3:43 PM Peter Shikli < <EMAIL REMOVED> > wrote:
>
> > As a coder myself, it would be easier to write an if-then-else logic
> > statement to find alt="" than just alt since that latter is part of many
> > other constructs. And alt> cannot be assured to identify a decorative image
> > if some other attribute follows the alt attribute. The net result is that I
> > recommend the extra finger workout to type alt="" to make sure a screen
> > reader catches it correctly and informs the user about decorative images.
> >
> > Cheers,
> > Peter Shikli
> > Access2online
> >
> >
> > > > > > > > > >
> > > > >
- Next message: Mallory: "Re: Trying to Understand 2.5.3"
- Previous message: Marissa Sapega: "Free webinar on Accessible Kiosks on September 12"
- Next message in Thread: Jeremy Echols: "Re: alt or alt="""
- Previous message in Thread: glen walker: "Re: alt or alt="""
- View all messages in this Thread