News for hackers. Stuff that matters.
Re:<article> vs. <section>: How To Choose The Ri... by Gigachad on Thursday July 28, 2022 @06:52PM (#32271007)
Has there ever been a benefit to all these new elements which are just divs with another name? Yes I know there was that aim to make the web entirely machine understandable but at this point it would be much easier to just use ML to view the page like a human than to convince every website maintainer to switch to specific elements.
Re:<article> vs. <section>: How To Choose The Ri... by blowski on Thursday July 28, 2022 @06:55PM (#32271038)
The accessibility proponent in me cries at your comment. The pragmatist accepts that it’s probably true.
Re:<article> vs. <section>: How To Choose The Ri... by zerocrates on Thursday July 28, 2022 @07:08PM (#32271140)
Does accessibility technology do anything at all with <article>? I'd be very surprised if it did.

<section> once drove the model where we were going to kind of soft-kill the h1-h6 elements and have only h1s where their heading level depended on the section nesting level... but my understanding is that this didn't really work out and is functionally dead, and the current recommendations are all to just use the range of numbered headings as before.

Re:&lt;article&gt; vs. &lt;section&gt;: How To Choose The Ri... by a9h74j on Thursday July 28, 2022 @09:20PM (#32272040)
Aside from a single h1-h6 tree, I could imagine separate semantic tags having more traction if they contained matching alt text, as with an image tag. A sidebar might have a single-sentence summary, etc. ... Just speculating here about where more value might be added.
Re:&lt;article&gt; vs. &lt;section&gt;: How To Choose The Ri... by mdtusz on Thursday July 28, 2022 @09:33PM (#32272148)
I've always just dreamed of an entirely accessibility focused API that doesn't rely on the DOM and html elements. Most accessibility concerns are for visual impairment, so why do we still base it on what in practice is a visual model?

Do screen readers use a different user agent? Seems like a11y would be simpler in many cases by just delivering a text based result that's tailored to screen readers. Most of the issues seem to arise from the structure chosen in order to style things rather than the content itself.

Re:&lt;article&gt; vs. &lt;section&gt;: How To Choose The Ri... by jmcgough on Thursday July 28, 2022 @06:59PM (#32271073)
Screen readers, and I think it can lead to more easily understood CSS, though a lot of people are using styled components etc now
Re:&lt;article&gt; vs. &lt;section&gt;: How To Choose The Ri... by toomim on Thursday July 28, 2022 @07:11PM (#32271162)
Does a screen reader actually care about <article> vs. <section>? I think they just ignore those tags.
Re:&lt;article&gt; vs. &lt;section&gt;: How To Choose The Ri... by otippat on Thursday July 28, 2022 @07:20PM (#32271249)
According to this article, atleast Apple's VoiceOver seem to use the html5 tags to parse a webpage differently: https://dev.to/satyakresna/html-semantics-in-web-accessibili...
Re:&lt;article&gt; vs. &lt;section&gt;: How To Choose The Ri... by JadeNB on Thursday July 28, 2022 @08:43PM (#32271787)
I think waiting until screen readers adopt technological affordances to start using those affordances is putting the cart before the horse. One could ask why a screen-reader-tech maker would bother paying attention to tags no-one uses—might as well put as much semantic information out there as we can, and let different people consume it in the ways that make most sense for them.
Re:&lt;article&gt; vs. &lt;section&gt;: How To Choose The Ri... by Gigachad on Thursday July 28, 2022 @09:50PM (#32272262)
It’s an impossible situation. We are expecting website owners and screen reader companies to come to some kind of consensus without ever collaborating or establishing a standards.

And just expecting that vaguely guessing what the other wants will work.

Re:&lt;article&gt; vs. &lt;section&gt;: How To Choose The Ri... by bXVsbGVy on Thursday July 28, 2022 @09:22PM (#32272055)
Firefox reader.

And probably some optimization on the engines to sort the fetching of the resources and painting the screen.

Re:&lt;article&gt; vs. &lt;section&gt;: How To Choose The Ri... by xigoi on Friday July 29, 2022 @09:52AM (#32276879)
If they're used well, they could enable non-site-specific custom stylesheets. Imagine if you could view all sites with the same design instead of the author pushing theirs on you.