News for hackers. Stuff that matters.
Re:Something is wrong with this picture. by haberman on Monday November 07, 2011 @08:12PM (#3209000)
The myth that the web would be better with strict XML parsing is convincingly debunked here: http://web.archive.org/web/20110514122249/http://diveintomar...

Web pages (unlike Android layout files) are complicated composites of multiple data sources that are generated on-the-fly, and are combined in complicated (but sometimes low-tech) ways like string manipulation. Under such circumstances, it is simply too hard to create perfect XML every time.

Re:Something is wrong with this picture. by stonemetal on Monday November 07, 2011 @08:54PM (#3209126)
That isn't really related to what he said at all. Sure web browsers should be forgiving in what they except, but dev tools shouldn't be. How would you like the C compiler that tried to interpret any old chicken scratch as a valid C program? Never a compiler error again!
Re:Something is wrong with this picture. by haberman on Monday November 07, 2011 @09:40PM (#3209261)
> How would you like the C compiler that tried to interpret any old chicken scratch as a valid C program? Never a compiler error again!

Oh fun, bad analogies time! How would you like it if your word processor refused to save a text document because it detected an incomplete sentence?

Re:Something is wrong with this picture. by stonemetal on Tuesday November 08, 2011 @11:00AM (#3211214)
Nope no analogy. If I expect a machine to understand a language, then it had better be able to determine weather or not a document written in that language is valid. It doesn't matter if it is a programming language or a mark up language. Permissive modes are great for accepting the work of others, but when learning how to write that language in the first place a strict interpretation is best. That way you can focus on getting it right.
Re:Something is wrong with this picture. by bzbarsky on Monday November 07, 2011 @10:04PM (#3209318)
C compilers do this all the time. If you're lucky, they'll warn you about undefined behavior as they do it, instead of just silently making all sorts of optimizations because the standard allows them to.

Now as it happens, C compilers have a syntax validator as part of them. Lots of HTML editors, past and present, have used HTML validators too...

Re:Something is wrong with this picture. by laughinghan on Tuesday November 08, 2011 @01:02AM (#3209692)
What dev tools? Any text editor is a dev tool that can and is used to create HTML for browsers to (forgivingly) accept.

That's actually fundamental design aspect of HTML which was partly responsible for it's popularity.

Re:Something is wrong with this picture. by stonemetal on Tuesday November 08, 2011 @08:24AM (#3210606)
Last I checked IE, Fire Fox and Chrome all had a dev mode. Sure they might not have had them at first but a strict mode or a parse check or some thing of that sort would have been helpful all along.
Re:Something is wrong with this picture. by yuhong on Monday November 07, 2011 @09:31PM (#3209241)
Of course, but there are way of combining data sources that will produce valid XML.