Re:Introducing: JSHTML
by loginx on Wednesday April 15, 2009 @09:30AM
(#563407)
What are the benefits of this compared to showing hidden divs, which can be done in one line of code with a CSS selector?
[ Parent
| on HN ]
The argument is progressive enhancement: if someone doesn't have JavaScript or CSS enabled the JavaScript-enabled features would be completely hidden from view, plus you get to keep your HTML in your HTML file.
I can see how someone might turn your external style sheets off, but an inline style="display:none" attribute is not going to be ignored by any browsers. What's so inaccessible about that?