News for hackers. Stuff that matters.
Re:HTML6 proposal for single-page apps without JavaScript by jkoudys on Friday March 20, 2015 @10:01AM (#9237745)
This proposal is trying to take a common web design pattern, MVC, and make it part of the official spec. HTML is a _markup language_, it's ridiculous to use it as anything but a semantic language.

Here's my HTML6 proposal: There’s a standard design pattern emerging via cascading style sheets, where content is styled directly via CSS. Everyone’s into it because the layout looks so much nicer.

Since this is so common now, can we implement this directly in the browsers via HTML so users can directly style their content without CSS? I propose adding a <font> tag, so people can style their fonts, a <blink> tag so things can blink, and a fun <marquee> tag so content can scroll.

Re:HTML6 proposal for single-page apps without JavaScript by thomasahle on Friday March 20, 2015 @10:59AM (#9238088)
> HTML is a _markup language_, it's ridiculous to use it as anything but a semantic language.

So which is it? A semantic language or a markup (syntax) language?

Why does it have to stay that way? (Even if the proposal is a bad one.)

Re:HTML6 proposal for single-page apps without JavaScript by virmundi on Friday March 20, 2015 @12:34PM (#9238674)
It should stay close to what it is because it's fairly good at its job. To make it more than that would be to generalize it away from its job into some new job. This violates single responsibility. We've already learned our lesson with that and HTML; thus was born CSS.

Making a web standard for single page apps doesn't really seem necessary. Applications are by their nature different than web sites. A web site is a collection of content displayed largely as pages that are designated by a URI. An application is an abstraction over the page model that minimizes the transparent page/resource model with an opaque process flow model. HTML, as it stands, can be the V in MVC in either. Making it take on the M or C gains us little and stands to lose us much.

Re:HTML6 proposal for single-page apps without JavaScript by askmike on Friday March 20, 2015 @12:45PM (#9238730)
> HTML is a _markup language_

It might have been designed as a language for web based documents. Though this is not what the web is used for today, consumers want applications not documents. And we are already hacking away on top of those documents to give them that (despite the web not being intended as such).

Re:HTML6 proposal for single-page apps without JavaScript by dghf on Friday March 20, 2015 @12:54PM (#9238793)
> It might have been designed as a language for web based documents. Though this is not what the web is used for today, consumers want applications not documents.

They want applications and documents, or I do anyway. I spend more of my time online reading stuff than using GMail or whatever.

Re:HTML6 proposal for single-page apps without JavaScript by kenko on Friday March 20, 2015 @02:05PM (#9239452)
Consumers are given applications not documents.
Re:HTML6 proposal for single-page apps without JavaScript by timepiece on Friday March 20, 2015 @02:23PM (#9239597)
Don't speak ill of people with <font> or <center> infatuation as HN is built on these tags. At the time of writing this comment, there's around 300 <font> tags on the page and over 100 <center> ones

So, basically watch what you say buddy :)

Re:HTML6 proposal for single-page apps without JavaScript by Stormcaller on Friday March 20, 2015 @02:38PM (#9239744)
<font>, I don't think there's an excuse. we know for sure that it is not out of incompetence but it was probably easier to write at the time and nobody bothered to fix it because it doesn't really matter.

For the <center>, it is probably not the case here as this is just a text based site but sometimes it is easier to center an image by that tag when your site is partitioned in many margins it is not as easy to center some stuff, or you might just prefer to add a tag.

I also like <br>, it really makes more sense to me and easier to write. It doesn't really break anything either.

I wonder how many there are, like me, think that <center> and <br> are actually really nice things to have?

Re:HTML6 proposal for single-page apps without JavaScript by SamReidHughes on Friday March 20, 2015 @04:17PM (#9240439)
There's nothing wrong with font tags on HN. You might not realize that the pages served on this site are machine-generated!
Re:HTML6 proposal for single-page apps without JavaScript by Stormcaller on Friday March 20, 2015 @07:09PM (#9241209)
I agree. Its just they could add a class to css, and instead of setting font tag to each element, just add the class. But of course, since they are generated in a loop anyway, there's no practical difference.
Re:HTML6 proposal for single-page apps without JavaScript by timepiece on Friday March 20, 2015 @03:12PM (#9240029)
Not many but they're deprecated/obsolete for a reason, don't you think?
Re:HTML6 proposal for single-page apps without JavaScript by mathgeek on Friday March 20, 2015 @09:24PM (#9241543)
Perhaps not many in the design community or front end devs, but I'd wager there are plenty of developers who love <br> because it's what they've always used to do simple layouts so they can get back to the back end.
Re:HTML6 proposal for single-page apps without JavaScript by SiVal on Saturday March 21, 2015 @02:23AM (#9242005)
br is neither deprecated nor obsolete
Re:HTML6 proposal for single-page apps without JavaScript by err4nt on Saturday March 21, 2015 @05:22PM (#9244257)
HECK YEE! I even put classes in my <br> tags so I can get at them and decide when and how they display!
Re:HTML6 proposal for single-page apps without JavaScript by err4nt on Saturday March 21, 2015 @05:36PM (#9244286)
HECK YES! I even put classes in my <br> tags so I can get at them and decide when and how they display!
Re:HTML6 proposal for single-page apps without JavaScript by jkoudys on Friday March 20, 2015 @05:35PM (#9240816)
hacker news is predominantly pre-CSS style code, e.g. the only CSS seems to be basic fonts and the upvote arrow, both of which the site would barely be different if run without CSS. Here's their only stylesheet: https://news.ycombinator.com/news.css?vaRvmIYYFOCsNxY80y43
Re:HTML6 proposal for single-page apps without JavaScript by Mahn on Friday March 20, 2015 @03:39PM (#9240213)
Just clicked "view source" on this page out of curiosity. I feel like I just traveled back in time to 1996.