Slashdot Mirror


Stop Standardizing HTML

pfignaux writes with an interesting view on the place of centralized standardization in modern browsers. From the article: "When HTML first appeared, it offered a coherent if limited vocabulary for sharing content on the newly created World Wide Web. Today, after HTML has handed off most of its actual work to other specifications, it's time to stop worrying about this central core and let developers choose their own markup vocabularies and processing." Instead, the author proposes that CSS, Javascript+DOM, the W3C's accessibility framework, and Web Components are sufficient to implement the rendering of smaller, domain-specific markups.

53 of 302 comments (clear)

  1. Nope by Anonymous Coward · · Score: 5, Informative

    How about "no"?

    1. Re: Nope by Pseudonym+Authority · · Score: 5, Funny

      He seemed to me like a proponent of XML. I hope he catches the flu.

    2. Re:Nope by poetmatt · · Score: 4, Informative

      close enough standards compliance?

      please. Microsoft tries to break standards by introducing their own. Don't blame HTML for that.

    3. Re: Nope by simonstl · · Score: 2

      I've had the flu before, but you may be happy that I'm telling XML people similar things: put down the schemas...

    4. Re:Nope by cjjjer · · Score: 3, Interesting

      Since Google is forking Webkit I suspect that they will be doing the same thing in the near future or have not already to make their services work better in the browser.

    5. Re: Nope by Nerdfest · · Score: 4, Funny

      A flu? Have they been updating the moderation capabilities again?

    6. Re: Nope by hendridm · · Score: 2

      "His books include XML: A Primer, XML Elements of Style, Cookies, Office 2003 XML, and the XML Pocket Reference."

    7. Re:Nope by LifesABeach · · Score: 2

      I've seen results of Close Source, and Open Souce. In actual practice, the champions of Closed Source have very short term goals.

    8. Re: Nope by sribe · · Score: 3, Funny

      He seemed to me like a proponent of XML. I hope he catches the flu.

      X7ML9?

    9. Re:Nope by SuperDre · · Score: 2

      Uhm.. the reason Google want to fork is also because they want more control over it, and it's Google who is trying to push their formats down our throats instead of using already available 'standards'.
      Also let's not forget at the moment that 'HTML5' is still in development (it's still not finalized), yet it's used in production now which ofcourse is actually a fubar thing to do..

    10. Re: Nope by K.+S.+Kyosuke · · Score: 3, Funny

      "His books include XML: A Primer, XML Elements of Style, Cookies, Office 2003 XML, and the XML Pocket Reference."

      This is what people who never encounter S-expressions early in their life end up doing. :-( Parenthetical vaccination would prevent him from developing a cancer of the angled brackets.

      --
      Ezekiel 23:20
  2. language by schneidafunk · · Score: 5, Insightful

    There is also a benefit to having people share a common vocabulary, such as communication in broader languages like English, Spanish, etc. I have a hard enough time communicating with people in the same language!

    --
    Some people die at 25 and aren't buried until 75. -Benjamin Franklin
    1. Re:language by BForrester · · Score: 5, Funny

      You're overstating the meerfage of sharing a common briogib. As long as the sufrabork is cognatious, the central mordage doesn't need to be the same.

    2. Re:language by Sigg3.net · · Score: 2

      Standards don't lead, development does. However, standards provide guides for how that development is carried through, resulting in greater adoption of them by new developers and a common goal among competing or conflicting interests.

      A dictionary is never at the forefront of development, but is it fair to say dictionaries are useless?

  3. Yes, by all means! by clem · · Score: 4, Funny

    Stop making our job skills transferable!

    --
    Your courageous and selfless spelling corrections have made me a better person.
  4. HTML isn't anymore by Anonymous Coward · · Score: 2, Interesting

    What was once a standard for rendering text and images together in a single document has suffered from severe scope creep over the years. With the addition of multimedia, HTML crossed the line from static to active content markup, which in my opinion defeated its original purpose. HTML needs an active companion language, an actual programming language, one that will replace the disparate third-party technologies in use today. Just eliminating Flash and Javascript for example would eliminate a vast majority of the world's browsing headaches.

    We are so close to a Web-based operating system I can taste it.

    1. Re:HTML isn't anymore by telchine · · Score: 5, Funny

      HTML needs an active companion language, an actual programming language, one that will replace the disparate third-party technologies in use today. Just eliminating Flash and Javascript for example would eliminate a vast majority of the world's browsing headaches.

      I agree!

      I shall call this new language "Jscript"!

      -Bill

    2. Re:HTML isn't anymore by Lord+Lode · · Score: 4, Interesting

      You ask for a companion programming language and at the same time propose eliminating Javascript. I see a contradiction in there.

    3. Re:HTML isn't anymore by TWiTfan · · Score: 4, Insightful

      Just eliminating Flash and Javascript for example would eliminate a vast majority of the world's browsing headaches.

      If you know of a language that will do what Flash and Javascript will do with no headaches, please share it with us.

      --
      The cow says "Moo." The dog says "Woof." The Timothy says "Thanks, valued customer. We appreciate your input."
    4. Re:HTML isn't anymore by VortexCortex · · Score: 2

      You ask for a companion programming language and at the same time propose eliminating Javascript. I see a contradiction in there.

      As someone who uses JavaScript daily, I see no contradiction. Perhaps you've confused it with an programming language?

    5. Re:HTML isn't anymore by Ultra64 · · Score: 5, Funny

      Ok, I'll take the bait. How in the hell is JavaScript *not* a programming language?

      1. It is a language
      2. I write programs with it

    6. Re:HTML isn't anymore by istartedi · · Score: 5, Insightful

      We are so close to a Web-based operating system I can taste it.

      One of the things I like to say is, "In the long run, all file formats become programming languages". When somebody says they need a simple format for a config file or something, inevitably scope creep causes them to ask for something like a conditional (can you have a config setup so that if we're running offline it does this; but if the network is available it does that?). For the developer of the file format, *any* file format, it's a good idea to have a language developer's perspective.

      Now, once you look at programming languages you start to get drawn into operating systems. C was developed in conjunction with Unix. Forth tends to become an operating system. Lisp, although it runs in userspace is used as a shell via Emacs and some have compared that to an OS. They talked about building Java chips at one point, and a Java OS certainly would have been written to go with it--it's only natural.

      Thus I feel compelled to revise my little one-liner. "In the long run, all file formats become operating systems".

      The next time the boss says he needs a flat-text config file, think about what kind of scheduling algorithm you want to use.

      --
      For all intensive purposes, "whom" is no longer a word. That begs the question, "who cares"?
    7. Re:HTML isn't anymore by GrumpySteen · · Score: 3, Insightful

      Just eliminating Flash and Javascript for example would eliminate a vast majority of the world's browsing headaches.

      HTML needs an active companion language, an actual programming language

      The big problems inherent to Flash and Javascript are not that they don't work. It's that both involve letting arbitrary code run on your computer and their security isn't perfect.

      Replacing them with a new programming language that will run arbitrary programs on your computer is not going to solve that because a new language isn't going to have perfect security either.

      With a new, active language, you'd still get annoying ads, drive-by malware downloads, pages that load a several megabytes of crappy code to display three lines of text and all of the other problems that make people hate Flash and Javascript.

    8. Re:HTML isn't anymore by HaZardman27 · · Score: 2

      I would like to see your argument for why Javascript is not a programming language. I would especially like to see an argument that doesn't make up arbitrary and personal definitions of "programming language".

      --
      Apparently wizard is not a legitimate career path, so I chose programmer instead.
    9. Re:HTML isn't anymore by Mordok-DestroyerOfWo · · Score: 2, Insightful

      Ok, I'll take the bait. How in the hell is JavaScript *not* a programming language?

      1. It is a language 2. I write programs with it

      There isn't enough snarky elitism associated with it yet for it to be a "real" programming language. As soon as you can get to the state of natural obfuscation that Perl enjoys, you'll see an uptake with the true nerds.

      --
      "Never let your sense of morals prevent you from doing what is right" - Salvor Hardin
    10. Re:HTML isn't anymore by SuricouRaven · · Score: 2, Interesting

      So is lambda calculus. There's more than a passing simularity there, too.

    11. Re:HTML isn't anymore by NoNonAlphaCharsHere · · Score: 2

      So is Conway's Game of Life, that doesn't mean amateurs should be writing code that runs on client's machines with it.

    12. Re:HTML isn't anymore by osu-neko · · Score: 2

      I agree, one could argue that of it requires a separate program to run it, rather than being compiled to a program, it could be called something else. Though personally, I believe that of It's Turing complete it is a programming language. The language remains the same whether compiled or interpreted, so I'd think that's a silly distinction to classify a language (additionally, a language can have a compiler or interpreter built, or even exist without either (though it wouldn't be so useful in the last case).

      Indeed. If "requiring a separate program to run it" was the qualifier for exclusion, the only thing a programming language could write is operating systems...

      --
      "Convictions are more dangerous enemies of truth than lies."
    13. Re:HTML isn't anymore by lgw · · Score: 5, Funny

      OK, honest question about JavaScript, since I don't know it. Does JavaScript enclose blocks of code in curly-braces?

      As we all know, curly braces are the One True Distinction between real profession programming languages and toy scripting languages. For example, everyone knows C# is a real profession programming language, but Visual Basic is a toy scripting language, despite offering nearly-identical functionality on top of the CLR. However, C# clearly encloses blocks of test in curly braces, and Visual Basic laughably doesn't, toy that it is!

      So, let's settle this JavaScript debate once and for all: on which side of the curly braces line does it lie?

      --
      Socialism: a lie told by totalitarians and believed by fools.
    14. Re:HTML isn't anymore by aix+tom · · Score: 4, Funny

      That's never gonna win against the implementation of COBOL* that I am about to release shortly.

      *CuteObjectBasedOnlineLolcode

    15. Re:HTML isn't anymore by DragonWriter · · Score: 2, Insightful

      So is Conway's Game of Life, that doesn't mean amateurs should be writing code that runs on client's machines with it.

      There is no language in which amateurs should be writing code that runs on client's machines.

  5. what are you even saying? by fazey · · Score: 5, Insightful

    If you break the html standard... each browser will interpret things even more differently than they already do. This means you now have to give a crap about what browser the visitor of your site is using, because the developers went off and did their own thing. I'm glad the author found some toys he likes... but this hardly makes an html standard useless. For example, what does this do for tomcat? What does this do for ASP.NET? The answer is nothing.

    1. Re:what are you even saying? by Synerg1y · · Score: 5, Insightful

      Yep, the author doesn't truly understand WHY HTML works and that's because it's interpreted by the browser a certain way. There already exist a plethora of differences between IE and firefox/chrome, de-standardizing HTML would make it impossible to create websites that look consistent to all users.

  6. Fix it.... by whizbang77045 · · Score: 2

    But it's working the way it is. The time-honored software way is to fix it.

  7. Just like the good ol' MSIE days! by femtobyte · · Score: 5, Insightful

    <_MSIE_XZ92 MS_FONT_TP = "comic sans" Q_BINARY_BLOB = "89FF372198A" BRWSR_FOO_P = "unidiv/flimblargle">Great idea!</_MSIE_XZ92>

    This post optimized for viewing with with MSIE 9.3.

  8. Please standardize more by concealment · · Score: 5, Insightful

    The web worked when it had a simple standard that worked in every situation.

    We've put layers on top of that, and now it's chaos. A bloated, irregular, often incomprehensible chaos designed to allow people to make custom interfaces out of the web.

    The whole point of the web, versus having an application for every specific task (like we did on desktops before the 1990s, and like we now do on smartphones), was to have a standard and simplified interface.

    The web grew and thrived under that goal. It's become more corporate, nuanced, isolated, sealed-off, etc. under our "new" way.

  9. Extending the DOM; WAI-ARIA in search engines by tepples · · Score: 3, Interesting

    "Instead, the author proposes that CSS, Javascript+DOM, the W3C's accessibility framework, and Web Components are sufficient to implement the rendering of smaller, domain-specific markups."

    In other words, implement everything new as polyfills. But how would one have implemented new HTML5 features, such as the 2D Canvas, WebGL, and the video tag as polyfills? Even if one doesn't standardize new extensions to HTML markup, one still needs to standardize new extensions to the DOM. In addition, no new elements means that user agents that do not process script or WAI-ARIA, such as robots used by search engines, won't be able to make sense of pages. Do any current web search engines process WAI-ARIA?

    1. Re:Extending the DOM; WAI-ARIA in search engines by fuzzyfuzzyfungus · · Score: 4, Interesting

      The author's proposal sounds suspiciously like he has fallen for the seductive path of elegant generalizations(that are too theoretical for the ugly details to yet be visible) instead of confronting the ugly details that our current attempt at standardization has made visible...

      To be sure, the sausage-by-comittee that tends to result when you try to standardize something is quite ugly and takes ages to settle down; but if the proposal is "Just let people use whatever shims they want for everything" you haven't really solved the problem, just comitted yourself to standardizing a suitably powerful interface for the shims to sit on, along with giant piles of shim-dependent code that crawlers and any other applications that break the shims' assumptions won't be able to make the slightest sense of.

      Heck, for maximum elegance in the core standards, we could just replace virtually everything with the "Object" tag, and let people embed whatever they want, or abandon this 'HTML' nonsense entirely and just make Native Client the standard, freeing developers to implement pretty much any conceivable structure, from a legacy browser engine, to a Flash client, to a TECO interpreter built entirely out of Minecraft redstone logic, as the shim for their 'site'. A glorious age of unfettered freedom!

    2. Re:Extending the DOM; WAI-ARIA in search engines by phantomfive · · Score: 5, Funny

      But how would one have implemented new HTML5 features, such as the 2D Canvas,

      Simple. Each pixel is a separate div.

      WebGL,

      Lots and lots of divs. Lots of divs.

      --
      "First they came for the slanderers and i said nothing."
  10. Standardize! by Murdoch5 · · Score: 4, Insightful

    CSS, HTML and JavaScript need to be standardized and built to work together. If you want to add your own libraries on then that is fine but I run into so many issues with different browsers handling my scripts differently, this is 100% due to nothing being standardized. I shouldn't have to use special operators or libraries to create the effects I want / need.

  11. Re:Javascript by GrumpySteen · · Score: 2

    This isn't some huge problem that hasn't been resolved. Whitelist the sites that actually need it and leave Javascript disabled for all other sites. It's not difficult and it takes only a few moments to do it and reload a site when you need it.

    Of course that would require a few minutes of work on your part and you seem to be too busy whining to do it.

  12. People have short memories it seems. by PCK · · Score: 2

    Netscape navigator introduced the notorious BLINK tag and things like frames, back in the early days it pretty much was a free for all.

  13. This rule should have a number: by eexaa · · Score: 2

    If in doubt, add one more complexity layer.

  14. Yes! by jonr · · Score: 2

    I like it. Let's just find a good name... lets see.. we can mark up everything now... so I guess we keep the "ML" part. And content authors can create new and unknown tags, the traditional symbol for unknown is X.. I know, lets call it XML!

  15. HTML5 is a design by committee failure by exabrial · · Score: 4, Interesting

    HTML5 is the response by a bunch of whiners that normal xhtml is "too hard." Yes it's too hard to remember to close your tags. It's too hard to remember to put quotes around attributes. Why are humans checking your syntax? Have the danged computer check your syntax.

    "Pave the cowpaths" is an excuse to appease a bunch of zealots that are hellbent on pushing their personal preferences and egos into a standard rather than designing something that is quick/easy to parse and universally render across platforms. It's only going to get worse as the standard is never completed over the next decade.

    XML serialization of HTML sucks. It's verbose, and it's ugly. But it's effective because it's well defined and it leaves very little room for interpretation.

    Honestly, I'd like to see two standards. One, is XHTML5 Strict that follows the XML serialization. This will be left to the big boys who have real work to do. The other standard would be an extension to MarkDown to allow CSS customization with classes and ids. This would allow the path the cowpaths crowd to get things down as fast as possible and keep the verbosity of XML out of their way.

  16. To be fair... by Junta · · Score: 3, Insightful

    His point was about web content being more dynamic than he thinks is required. A fair point, nowadays a straightforward web form with very limited scope is frowned upon if it neglects to do some sort of javascript trickery or another. He isn't after *more* capability, he seeks a more constrained experience and to have more developers exhibit a shred of restraint rather than mandate moderately more open ended access to the client facilities for superfluous bells and whistles. If a browser hangs up nowadays, it's almost certainly due to badly written javascript or javascript implementation gone insane in the face of valid javascript. Simplistic content doesn't choke up browsers and in a lot of cases, that simplicistic content model *could* suffice for the purpose. There are cases where javascript can enrich the experience beyond what is reasonable without it, but web developers immediately jump to the deep end without a second thought today.

    Now, in terms of 'powerful and flexible', I'd argue that inherently it cannot hold that crown precisely because javascript is restricted from doing things like opening arbitrary filehandles and such. This isn't a bad thing, but it means the claim of 'most powerful' is flawed. Javascript is a popular language not due to having 'the' best set of capabilities or the best syntax (everyone bundles some sort of 'library' precisely to bandaid over javascripts failing at the low level), it's popular by virtue of being ubiquitous.

    --
    XML is like violence. If it doesn't solve the problem, use more.
  17. Difference between scripts and programs by tepples · · Score: 4, Insightful

    A computer program is defined as "a set of statements or instructions to be used directly or indirectly in a computer in order to bring about a certain result," and a programming language defines the syntax and semantics of computer programs. So what makes a scripting language not a programming language? What makes a script not a computer program? For all I can see, JavaScript is like Lua and Python: a dynamically typed programming language that is transmitted over the wire in source code form.

  18. Re:Search engine support for JavaScript by scot4875 · · Score: 2

    If someone is hiding their content behind JavaScript walls, they don't deserve to have it indexed.

    --Jeremy

    --
    Jesus was a liberal
  19. Stop Standardizing HTML Badly by Dracos · · Score: 3, Interesting

    HTML5 is riddled with faulty logic, flawed reasoning, and bad semantics. Even reading the spec gives the impression that the writing is of lesser quality than pervious versions. Why this is the case after 9 years completely baffles me.

    Selected points:

    • The b and i elements are presentational, no matter how the authors try to claim otherwise. Let them stay dead.
    • Sectioning is a mess, and whether related elements are sections is dependent on context. "Strongly Suggesting" that developers use h1 for every headline within sectioned content dilutes its semantic value. Just create a level-less h element, like XHTML2 did, that inherits its level based on depth and context.
    • There is still no way to clearly associate dd elements with their dt. Wrapping these sets with li would fix this.

    Last but not least: enough with the XML hatred. XHTML5, with proper XML syntax, should be the focus instead of an afterthought. XML syntax compliance isn't that hard or time consuming. Markup languages are for machine consumption, not human readability. Not requiring tags to be closed, bare unary attributes (ie, checked instead of checked="checked") and all the other shortcuts are asinine and only foster laziness and sloppiness... which would not be tolerated in any compiled or interpreted language.

  20. Oh god by SmallFurryCreature · · Score: 2

    Yeah, and if people just used the amount of car they need to get from A to B, polution would plummet and fuel prices would go down and the roads wouldn't need so much maintenance. You FIRST!

    The original web was designed as a gigantic book where instead of footnotes, you could click on a reference and read it from there. Everything else is fluff but it is that fluff that made the web. Want to see the original web, just browse wikipedia. It is very useful, even essential perhaps BUT it is not all of the web. All of the web is content sites that don't want you to leave for other sites. It is games, it is forums, it is applications that are on the web despite being better suited to a desktop. The web has far outgrown its original vision.

    BUT it could only do this because there WAS a standard to follow. A web application being so easy to install (runs on any browser equipped machine) only works if whatever browser is installed follows a standard. The reason Gmail has long since replaced outlook express is that you need to install outlook express and configure it. With the gmail web application, you just go to the url and it just works. That could NEVER have happened if there were a dozen different browsers out there with a dozen different markup languages. Proof?

    There are PLENTY of markup languages, I remember one from an old color matrix printer where you could insert color codes. .rtf is a markup language. xml is a horrid collection of them.

    HTML works because anyone can look up the specs and the spec doesn't constantly change. We KNOW what happens when you let everyone create their own version, it is called IE and I will kill you before we go back to those days and not a jury in the world will convict me.

    And if you want a markup language that does more? CREATE YOUR FUCKING OWN ONE! You are perfectly free to create a new type of "browser" with a new way to getting it to render data files into whatever you bloody well please. Plenty gone before you. And you know why you know of so fucking few? Because everytime somebody says "this should be a new standard" ten other people say exactly the same thing.

    You can't create a new standard without getting everybody onboard and that means making compromises.

    You can already extent HTML all you want, create a new element if you must but just don't claim to follow the standard strict and you are free to use whatever means you want to then render those new elements. Many common librabries already do this.

    But this guy wants to take the strict standard and then add to it and then have it become the new standard. That won't work.

    --

    MMO Quests are like orgasms:

    You may solo them, I prefer them in a group.

  21. subject by poor_boi · · Score: 2
    He basically wants to drop tag names and just have tags create generic dom nodes which get sculpted by CSS and JS.

    <html6style>
    .myCoolTag { act-like-html: br }
    .heyThisIsFun { act-like-html: p }
    .canWeDropTheHtmlStandardNow { act-like-html: i }
    </html6style>
    <html>
    This is the first line.
    <html class="myCoolTag">
    This comes after a newline
    <html class="heyThisIsFun">
    This comes after a paragraph break.
    <html class="canWeDropTheHtmlStandardNow">And this is italicized.</html>
    </html>

    That's too verbose for him though, so he wants to be able to write this:

    <html6style>
    .myCoolTag { act-like-html: br }
    .heyThisIsFun { act-like-html: p }
    .canWeDropTheHtmlStandardNow { act-like-html: i }
    </html6style>
    <html>
    This is the first line.
    <myCoolTag>
    This comes after a newline
    <heyThisIsFun>
    This comes after a paragraph break.
    <canWeDropTheHtmlStandardNow>And this is italicized.</canWeDropTheHtmlStandardNow>
    </html>

    You'll notice that all this does is push the HTML spec into the CSS spec. I don't see much of an advantage to that. And it makes it impossible to get even a basic understanding of HTML document structure without constantly referring back to the CSS.

    He also wants all new features that would previously have been implemented by adding tags to the HTML specification to be implemented by way of shims (polyfills). But who standardizes the behavior of shimmed constructs? Well, nobody. People just pick the shims they like. And because the shims are JS + CSS, the W3C is in charge of making sure the browsers execute them properly. Kind of like how today the W3C is in charge of making sure browsers execute HTML properly.

    I think this guy might be happy if we got rid of every tag except <canvas> and all reusable components (e.g. <button>) came from third party vendors. E.g. <include src="http://html6.google.com/button.polyfill">. Oh boy I can't wait.

  22. absolutely by CFD339 · · Score: 2

    The person who came up with the way xml signatures work clearly already had some kind of disease. I'm thinking late stage syphilis.

    --
    The problem with quotes on the internet, is that nobody bothers to check their veracity. -- Abraham Lincoln
  23. Stop trying to make everything XML gratuitously by DragonWriter · · Score: 2

    Last but not least: enough with the XML hatred. XHTML5, with proper XML syntax, should be the focus instead of an afterthought. XML syntax compliance isn't that hard or time consuming. Markup languages are for machine consumption, not human readability.

    Markup languages are for both, that's what distinguishes markup languages from, say, binary data formats. And HTML5 has parsing rules that are just as unambiguous for machine reading as XMLs, defined in the standard, and don't need the verbosity of XML to acheive it.