News for hackers. Stuff that matters.
Re:Building a front end with no JavaScript by jgtrosh on Thursday April 11, 2019 @09:51AM (#19634489)
I believe using a checkbox element and the :checked selector alongside siblings matching would do the trick.
Re:Building a front end with no JavaScript by Tade0 on Thursday April 11, 2019 @11:11AM (#19635294)
That would do nothing for screen readers thus compromising accessibility.
Re:Building a front end with no JavaScript by extra88 on Thursday April 11, 2019 @01:28PM (#19636967)
If you use the checked state to of a checkbox to change the display property (i.e. toggle between none and initial), that will change the content's visibility and its availability to screen readers.
Re:Building a front end with no JavaScript by giancarlostoro on Thursday April 11, 2019 @11:48AM (#19635819)
I've done / seen so many hacky things in web dev I would be surprised how many websites even work properly with screen readers.
Re:Building a front end with no JavaScript by Tade0 on Thursday April 11, 2019 @12:35PM (#19636360)
Such is the sad state of web development.
Re:Building a front end with no JavaScript by giancarlostoro on Thursday April 11, 2019 @01:23PM (#19636917)
As I do hacky work on the web I sometimes wonder why specific UI elements don't exist yet instead of people being forced to hack other elements to do things the web doesn't support. I can't remember a good example off the top of my head currently sadly.