News for hackers. Stuff that matters.
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?
Re:Introducing: JSHTML by halo on Wednesday April 15, 2009 @09:36AM (#563417)
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.
Re:Introducing: JSHTML by mustpax on Wednesday April 15, 2009 @09:43AM (#563424)
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?
Re:Introducing: JSHTML by loginx on Wednesday April 15, 2009 @09:42AM (#563422)
Okay I get the point for missing CSS, that makes sense... But in the case of only JS being disabled, a hidden div will remain hidden also, thus accomplishing the exact same thing in that case.