Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
NotShadowStar
Sep 20, 2000
Considering all the ridiculous bullshit you have to do to get IE6 to work properly, one line of Javascript is perfectly fine considering what you get out of it.

Adbot
ADBOT LOVES YOU

pseudorandom name
May 6, 2007

Refusing to style elements unless they've been created at least once by a script is IE6 being disgusting, but old versions of Firefox not knowing the default style for HTML5 elements isn't something any reasonable person can complain about.

Munkeymon
Aug 14, 2003

Motherfucker's got an
armor-piercing crowbar! Rigoddamndicu𝜆ous.



Zombywuf posted:

You do know that html5 and XHTML 1.0 are two separate languages right? Standards mode for the one is therefore not standards mode for the other. The clue is in how they have different names.

Standards mode just means IE6 won't skullfuck the layout, not that it will understand tags its parser doesn't know about.

quote:

And MS will be backporting support for html 5 from IE8 to IE6 when exactly?

IE6 doesn't properly support XHTML without stupid kludges, either, and XHTML was current when IE6 was relevant to people outside of China and some very unfortunate corporate users. There's no reason to complain about a horribly broken piece of poo poo not working right in a slightly different and wholly predictable way.

Lumpy
Apr 26, 2002

La! La! La! Laaaa!



College Slice

Zombywuf posted:


EDIT: Also just wanting to reiterate the question, when did XHTML get deprecated?

"Depreciated" was a poor choice of wording on my part. I meant "unless you have an actual valid reason to use XHTML Strict, you should use HTML5, since the XHTML spec is no longer being worked on, and while it works fine now, maybe IE10 or FF 5 (or IE15 or FF12, or whatever) won't support it, whereas even if you don't use any HTML5 tags or features, your regular old web pages will render just fine even in the no-longer supported IE6 if you use the HTML5 doctype, so there is no *default* reason to use XHTML Strict instead of HTML5." Again, you may have a valid reason to do so, and then by all mean, go nuts.

PhonyMcRingRing
Jun 6, 2002

revmoo posted:

Fair enough, I just don't really like the idea of declaring html5 if I'm not using any of its features. I see your points though.

By using that doctype you would immediately benefit from reduced page sizes of 100 bytes or so.

rjmccall
Sep 7, 2007

no worries friend
Fun Shoe

Lumpy posted:

"Depreciated" was a poor choice of wording on my part.

While depreciate and deprecate have some overlap in ordinary English, only deprecate is accepted technical jargon.

Zombywuf
Mar 29, 2008

Munkeymon posted:

Standards mode just means IE6 won't skullfuck the layout, not that it will understand tags its parser doesn't know about.
Nah, it'll still skullfuck the layout and anything else it can lay it's hands on.

quote:

IE6 doesn't properly support XHTML without stupid kludges, either, and XHTML was current when IE6 was relevant to people outside of China and some very unfortunate corporate users. There's no reason to complain about a horribly broken piece of poo poo not working right in a slightly different and wholly predictable way.

XHTML was 2000 IIRC, and IE6 is still 10% of the internet. Just typing that makes me want to self harm.

Janitor Prime
Jan 22, 2004

PC LOAD LETTER

What da fuck does that mean

Fun Shoe

Zombywuf posted:

XHTML was 2000 IIRC, and IE6 is still 10% of the internet. Just typing that makes me want to self harm.

I'm pretty sure most of that 10% is just China running pirated windows xp.

Zombywuf
Mar 29, 2008

MEAT TREAT posted:

I'm pretty sure most of that 10% is just China running pirated windows xp.

Not according to our web logs it's not.

Lumpy
Apr 26, 2002

La! La! La! Laaaa!



College Slice

rjmccall posted:

While depreciate and deprecate have some overlap in ordinary English, only deprecate is accepted technical jargon.

My spelling is the real horror.

NotShadowStar
Sep 20, 2000

rjmccall posted:

While depreciate and deprecate have some overlap in ordinary English, only deprecate is accepted technical jargon.

You're thinking of defecate.

TOO SCSI FOR MY CAT
Oct 12, 2008

this is what happens when you take UI design away from engineers and give it to a bunch of hipster art student "designers"
The HTML version naming is all hosed up.

HTML is a web markup standard for SGML. The latest version is HTML 4.01.

XHTML is HTML, but modified slightly to use XML. The latest version is XHTML 1.1.

XHTML2 was a different web markup spec, slightly similar but almost completely different from HTML/XHTML. The W3C abandoned it because everyone was already familiar with how HTML/XHTML worked. It started the "not popular -> steal a popular standard's acronym" craze (see also: XMLRPC and REST).

HTML5 is a web markup spec, based on XHTML. Its native markup language is XML, but it has a special compatibility syntax for parsing basically arbitrary text. This syntax is based on browser's "quirks mode" parsing. Correct parsers represent it as an XML document, *not* an SGML document.

So, if anything, it's HTML that's dead. The next version of XHTML will be named "HTML5", and will be supported by every modern browser.

Of course, 99% of the web will continue to be completely invalid and malformed pseudo-markup that not even browsers can parse reliably.

pseudorandom name
May 6, 2007

Isn't one of HTML5's selling points that every browser will parse the malformed pseudo-markup in the same way?

TOO SCSI FOR MY CAT
Oct 12, 2008

this is what happens when you take UI design away from engineers and give it to a bunch of hipster art student "designers"

pseudorandom name posted:

Isn't one of HTML5's selling points that every browser will parse the malformed pseudo-markup in the same way?
Generally, this has been true for years already. HTML5's compatibility syntax is just documentation of what browsers are already doing.

That's still useful, especially for implementing web scraping libraries.

Dransparency
Jul 19, 2006

Zombywuf posted:

Not according to our web logs it's not.

Here's the breakdown by region according to Microsoft:

http://ie6countdown.com/

So China "only" represents a little under half.

Dransparency fucked around with this message at 02:01 on Apr 1, 2011

fishmech
Jul 16, 2006

by VideoGames
Salad Prong

pseudorandom name posted:

Isn't one of HTML5's selling points that every browser will parse the malformed pseudo-markup in the same way?

That was supposed to be HTML 4 and HTMl 3 and HTML 2 and HTML 1's selling points as well but it never happens.

TOO SCSI FOR MY CAT
Oct 12, 2008

this is what happens when you take UI design away from engineers and give it to a bunch of hipster art student "designers"

fishmech posted:

That was supposed to be HTML 4 and HTMl 3 and HTML 2 and HTML 1's selling points as well but it never happens.
No, those specs were designed under the assumption that the page will be basically correct. They had DTDs, and "valid HTML!1!" buttons, and so on.

By now, the web nerd community has generally figured out that nobody except other web nerds will write valid pages. HTML5 has no DTD, and thus it's not even possible for a page to be "valid HTML5". They've just accepted that the best solution is to have two parsers: one for tech nerds (XML), and one for everyone else (tag soup).

Zombywuf
Mar 29, 2008

Janin posted:

By now, the web nerd community has generally figured out that nobody except other web nerds will write valid pages. HTML5 has no DTD, and thus it's not even possible for a page to be "valid HTML5". They've just accepted that the best solution is to have two parsers: one for tech nerds (XML), and one for everyone else (tag soup).

Oh boy. You do realise that when you define the correct behaviour on incorrect input you are still defining correct input right? Why do you assume that everyone will implement the same correct behaviour when they've never managed to do it in the past?

Also, have you read the HTML 5 spec, they go to lengths to explain exactly how to tell if a document is valid. Go read it, it's under "Conformance Requirements."

zootm
Aug 8, 2006

We used to be better friends.

Janin posted:

HTML5 is a web markup spec, based on XHTML.
Not really true; it borrows elements from both HTML 4 and XHTML 1.0, but is not a direct derivative from XHTML.

Janin posted:

Its native markup language is XML, but it has a special compatibility syntax for parsing basically arbitrary text.
This is a misrepresentation. The HTML syntax (which you keep wrongly referring to as the "compatibility" syntax) is the recommended syntax. The XML syntax is for situations where your document is for whatever reason generated with XML tools (as many templating engines do), or if you want to use XML features (namespaces is the only cited example). Its overly-punitive approach to error handling (especially for insignificant errors) makes it a poor choice for pages where puny humans have had any input into the content.

Janin posted:

This syntax is based on browser's "quirks mode" parsing.
The spec defines "fallback" behaviour for parsing so that invalid documents are still interpreted consistently. This does not prevent documents being marked invalid. This does not make the specification more ambiguous. This does not prevent the HTML syntax from being the "format suggested for most authors".

Janin posted:

Correct parsers represent it as an XML document, *not* an SGML document.
Browsers represent it as an HTML DOM (this version being the HTML5 DOM), which is similar to an XML DOM. This DOM is the authoritative representation of a document, rather than the markup, so that different markup languages can be valid for a given document.

Janin posted:

So, if anything, it's HTML that's dead. The next version of XHTML will be named "HTML5", and will be supported by every modern browser.
The recommended syntax of HTML5 is the HTML syntax. The current version of XHTML is called "XHTML5" and is a lesser-used syntax defined in the HTML5 specification.

Janin posted:

Of course, 99% of the web will continue to be completely invalid and malformed pseudo-markup that not even browsers can parse reliably.
Part of the "point" of HTML5 is that all browsers will now use the same rules for dealing with broken content.

zootm fucked around with this message at 08:44 on Apr 1, 2011

TOO SCSI FOR MY CAT
Oct 12, 2008

this is what happens when you take UI design away from engineers and give it to a bunch of hipster art student "designers"

Zombywuf posted:

Oh boy. You do realise that when you define the correct behaviour on incorrect input you are still defining correct input right? Why do you assume that everyone will implement the same correct behaviour when they've never managed to do it in the past?
Because the various browsers already implement the behavior. HTML5 is a description of what they already do.

Zombywuf posted:

Also, have you read the HTML 5 spec, they go to lengths to explain exactly how to tell if a document is valid. Go read it, it's under "Conformance Requirements."
You mean the part labeled "This section is non-normative."?

I don't see how you can claim that a document can be valid HTML5, when 1) the spec is still in constant flux 2) there is no DTD or other validation mechanism defined and 3) whatwg decided validation is for losers, so it's now a "living" standard (aka: never finished).

TOO SCSI FOR MY CAT
Oct 12, 2008

this is what happens when you take UI design away from engineers and give it to a bunch of hipster art student "designers"

zootm posted:

Not really true; it borrows elements from both HTML 4 and XHTML 1.0, but is not a direct derivative from XHTML.
HTML 4 and XHTML 1.0 are the exact same spec, just in different syntaxes. XHTML is the more modern version. Saying HTML 5 is based on HTML 4 and XHTML 1.0 is equivalent to saying it's based on XHTML 1.0.

zootm posted:

This is a misrepresentation. The HTML syntax (which you keep wrongly referring to as the "compatibility" syntax) is the recommended syntax. The XML syntax is for situations where your document is for whatever reason generated with XML tools (as many templating engines do), or if you want to use XML features (namespaces is the only cited example). Its overly-punitive approach to error handling (especially for insignificant errors) makes it a poor choice for pages where puny humans have had any input into the content.
The compatibility syntax can define constructs (such as "<b>hello<i>html</b> world</i>" which cannot be represented in the HTML 5 document structure. It's not possible to round-trip. In contrast, the XML syntax matches the document structure.

XML's error handling is only a problem for authors so stupid they type by drooling on the screen and mashing their fingers on the keyboard randomly. Writing valid XML is absolutely trivial, and somehow every single programmer except web "ninjas" have managed to do it for a decade.

As for XHTML features, haven't you ever heard of SVG? MathML?

zootm posted:

The spec defines "fallback" behaviour for parsing so that invalid documents are still interpreted consistently. This does not prevent documents being marked invalid. This does not make the specification more ambiguous. This does not prevent the HTML syntax from being the "format suggested for most authors".
"This section is non-normative."

There's no validation for an HTML 5 document, so it's not possible for any particular document to be invalid or not. An implementation (web browser, scraper) might be compliant with the spec as of some given date, but pretty much any random ASCII dump is an HTML 5 document.

zootm posted:

The recommended syntax of HTML5 is the HTML syntax. The current version of XHTML is called "XHTML5" and is a lesser-used syntax defined in the HTML5 specification.
I think it's a bit rich to make that claim, seeing as how the only constraint for something to be HTML 5 according to the compatibility syntax is that it be vaguely textual. Obviously, the set of garbage documents that can validate as XML will be smaller than that which can parse in compatibility mode.

zootm posted:

Part of the "point" of HTML5 is that all browsers will now use the same rules for dealing with broken content.
They may use the same rules, but that doesn't mean any particular document will be rendered how the author intended it.

Smugdog Millionaire
Sep 14, 2002

8) Blame Icefrog
The real horror is how much people care.

Malloc Voidstar
May 7, 2007

Fuck the cowboys. Unf. Fuck em hard.
I'm mad about markup

Zombywuf
Mar 29, 2008

Janin posted:

Because the various browsers already implement the behavior. HTML5 is a description of what they already do.

Er, have you ever worked with browsers? They do many different things, and if you've defined behaviour in a spec then you have defined "correct" behaviour. Trying the specify the unspecified is insane.

quote:

You mean the part labeled "This section is non-normative."?

No, what were you reading? http://www.w3.org/TR/html5/infrastructure.html#conformance-requirements

quote:

I don't see how you can claim that a document can be valid HTML5, when 1) the spec is still in constant flux 2) there is no DTD or other validation mechanism defined and 3) whatwg decided validation is for losers, so it's now a "living" standard (aka: never finished).

Er, welcome to the real world. Everything changes all the time, but if the w3c conformance checker says you're conforming you get a pass. You seem rather hung up on DTDs, there are many ways to specify a syntax. Hundreds of pages of spec for example.

Smugdog Millionaire posted:

The real horror is how much people care.
Yeah, it's not like I spend half my time trying to get protocol A to talk to protocol B or anything.

ToxicFrog
Apr 26, 2008


Zombywuf posted:

Yeah, it's not like I spend half my time trying to get program A to talk to program B using protocol C, which they both claim to support, but actually implement differently (and incorrectly) in both cases.

Fixed that for you. :suicide:

zootm
Aug 8, 2006

We used to be better friends.
He was talking about the bit I linked (which advocates HTML over XHTML most of the time). It's non-normative because it's advice not specification but I'm not getting back into this argument since it's silly.

Mustach
Mar 2, 2003

In this long line, there's been some real strange genes. You've got 'em all, with some extras thrown in.
Can we all agree that (X)HTML, XML, and the W3C are terrible?

Malloc Voidstar
May 7, 2007

Fuck the cowboys. Unf. Fuck em hard.

Mustach posted:

Can we all agree that (X)HTML, XML, and the W3C are terrible?
the WHATWG is worse than the W3C. an unversioned standard that changes without notice? what a great idea

also, gently caress Java with its decade old bugs: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4414164

wwb
Aug 17, 2004

I'll agree that the W3C is horrible. XML is great in the right places (like cross-platform data transfer) and HTML has changed the world.

But the w3c can suck a fat dick.

Internet Janitor
May 17, 2008

"That isn't the appropriate trash receptacle."
XML is better for cross-platform data transfer than, say, binary files, but simpler standards with fewer edge cases like JSON are better than XML.

wwb
Aug 17, 2004

What exactly are "fewer edge cases?"

I'd rather have schema-bound XML than json for most data transfer tasks. Though I will say I loves me some JSON and typically choose json over xml when given the choice.

NotShadowStar
Sep 20, 2000
But XML. scales. like. a. boss.

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

NotShadowStar posted:

But XML. scales. like. a. boss.

The best part was the simple XSLT used to rename a variable, and Tim Bray crying from laughter in the audience.

qntm
Jun 17, 2009

BonzoESC posted:

The best part was the simple XSLT used to rename a variable, and Tim Bray crying from laughter in the audience.

Is there supposed to be audio with that presentation?

wwb
Aug 17, 2004

^^^Oh, I agree that anyone using XSLT should probably be shot. I cut my teeth in the days of "we are going to expose XML data everywhere and render all websites across all platforms using XSLT." Which sucked. But the whole world seems to be caught up in "OMG, XML Sucks balls" mentality which is vastly overstating the case. It is a tool, and at times a great tool and the right tool for the job. Just like JSON or YAML can be in the right scenarios. And sometimes CSV is actually the right choice too.

TOO SCSI FOR MY CAT
Oct 12, 2008

this is what happens when you take UI design away from engineers and give it to a bunch of hipster art student "designers"
XML is perfect for its intended purpose, which is lightweight document markup.

It's slightly verbose for general data serialisation -- s-expressions are cleaner.

It's absolutely terrible for use as a general-purpose syntax, as in XSLT.

The only problem I have with the XML spec itself is internal subsets; whoever thought it would be awesome for a single specification to describe two entirely unrelated syntaxes and type hierarchies should be forced to write a validating parser. Luckily, practically nobody uses them for anything.

JSON is just s-expressions re-invented poorly by the OMG JAVASCRIPT WEB RAILS NJINA crowd.

NotShadowStar
Sep 20, 2000

qntm posted:

Is there supposed to be audio with that presentation?

Watch and laugh

If you don't laugh hysterically, you're part of the problem.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

I have no idea why I don't like dealing with XML, but I'll often skip using or working on a project just because I'd have to work with XML. I'm a fickle bitch, I guess.

Zombywuf
Mar 29, 2008

XML comes with far to much baggage, did you know entity references can expand to parsed data, parsed data that does not comprise a complete fragment? It's pretty telling that the best way to express an XML schema does not use XML.

XSLT is an ok templating language, there are better.

XPath is a fantastic way to extract structured data, although usually restricted subsets that allow event based extraction are better.

XQuery is, um, an interesting idea.

Adbot
ADBOT LOVES YOU

TOO SCSI FOR MY CAT
Oct 12, 2008

this is what happens when you take UI design away from engineers and give it to a bunch of hipster art student "designers"

Zombywuf posted:

XML comes with far to much baggage, did you know entity references can expand to parsed data, parsed data that does not comprise a complete fragment?
Entities in general are just silly. I can't think of any reason to use them that isn't better handled by a different concept.

Zombywuf posted:

It's pretty telling that the best way to express an XML schema does not use XML.
I think that's natural; XML is a markup language, and non-trivial validation requires a Turing-complete language.

Zombywuf posted:

XSLT is an ok templating language, there are better.
No, no, no. XSLT is not OK for anything. It's easily one of the worst ideas to come out of the "enterprise ecosystem".

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply