You are here: Re: Writing HTML parser wasn't as hard as I thought it'd be « HTML « IT news, forums, messages
Re: Writing HTML parser wasn't as hard as I thought it'd be

Posted by mbstevens on 04/21/07 00:51

On Sat, 21 Apr 2007 10:45:01 +1000, dorayme wrote:

> In article
> <1177081954.773575.230030@d57g2000hsg.googlegroups.com>,
> dpapathanasiou <denis.papathanasiou@gmail.com> wrote:
>
>> > This is unfortunate why? Because of the high correlation between
>> > people who have something to say worth reading and those who can write
>> > XML without screwing it up? Face it, HTML is a markup language
>> > historically created directly by humans, which means you *will* get
>> > good content with syntax errors by authors who will not fix it.
>>
>> But this problem was entirely preventable: if Netscape and early
>> versions of IE had rejected incorrectly-formatted html, both people
>> hacking raw markup and web authoring tools would have learned to
>> comply with the spec, and parsing html would not be the nightmare it
>> is today.
>
> It's a nice fantasy that a zero tolerance policy would work. Face
> it, someone would bring out a competitor that tolerated faults
> and everyone would rush to use that one instead.

You need to set up a switch 0-9 for how much crap code the parser will
accept.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация