From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: [Slightly OT] How to process lightweight text markup languages? Date: Tue, 20 Jan 2015 15:43:11 -0600 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: NNTP-Posting-Host: rrsoftware.com X-Trace: loke.gir.dk 1421790192 8812 24.196.82.226 (20 Jan 2015 21:43:12 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 20 Jan 2015 21:43:12 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:24647 Date: 2015-01-20T15:43:11-06:00 List-Id: wrote in message news:a26a1003-dff6-4f07-90e7-b9aa041ad1bd@googlegroups.com... >Le lundi 19 janvier 2015 21:12:41 UTC+1, Randy Brukardt a écrit : > >> No, this is a fallicy. The Internet (and world in general) would be >> better >> off if documents that are sufficiently malformed were simply not >> displayed >> at all. In that case, the document source would be fixed if anyone cares >> enough. > >Alas the forces of competition resulted in the opposite: if a browser >doesn't display >a malformed HTML, users blame the browser and try another one. You're right today, of course, but it didn't have to be that way. And shouldn't have been... > By developing >Wasabee I was amazed by the proportion of sites with malformed HTML code. >I guess it was always close to 100% but over time it is even closer. >Chances are >that only the W3 site is okay... We checked all of the pages on the previous AdaIC site through the WC3 tools. (Us Ada people care about Standards, you see.) We didn't intentially post anything with errors (although it happened a few times). So there was at least two such sites. I'm pretty sure that the various Ada standards and other documents produced by our tools are also correct (I've checked them periodically). ... >Only the input is idiot. The tool has to be smart. See for instance the >algorithm >in Wasabee that corrects an ill-formed HTML tree. Same in real life: >sometimes >smart guys have to find solutions for idiots (customers, bosses,...) It's impossible to guess all of the ways that some "smart" tool will interpret malformed input, and indeed those ways can be different for different tools. That provides a near-infinite number of ways for bad guys to sneak junk past one's defenses. >> And for what? So that people who can't be bothered to get their documents >> formatted correctly still get some results (thus reenforcing their bad >> behavior). Bah humbug!! > >You'd like to start a new, parallel Web with only well formatted documents >? Sounds good to me. I pretty much do that for e-mail today, and that certainly helps prevent spam from being delivered. I'd do it for the web, too, if I could figure out how. Randy.