comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: [Slightly OT] How to process lightweight text markup languages?
Date: Tue, 20 Jan 2015 15:43:11 -0600
Date: 2015-01-20T15:43:11-06:00	[thread overview]
Message-ID: <m9mi5g$8jc$1@loke.gir.dk> (raw)
In-Reply-To: a26a1003-dff6-4f07-90e7-b9aa041ad1bd@googlegroups.com

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2259 bytes --]

<gautier_niouzes@hotmail.com> 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.





  parent reply	other threads:[~2015-01-20 21:43 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-18 18:04 [Slightly OT] How to process lightweight text markup languages? Natasha Kerensikova
2015-01-18 20:21 ` Dmitry A. Kazakov
2015-01-19 11:09   ` G.B.
2015-01-19 13:21     ` Dmitry A. Kazakov
2015-01-19 16:58       ` G.B.
2015-01-19 17:58         ` Dmitry A. Kazakov
2015-01-20 14:41           ` Robert A Duff
2015-01-19 20:12         ` Randy Brukardt
2015-01-19 21:37           ` gautier_niouzes
2015-01-20  8:44             ` Dmitry A. Kazakov
2015-01-20 12:36               ` G.B.
2015-01-20 13:14                 ` Dmitry A. Kazakov
2015-01-20 20:36               ` Shark8
2015-01-20 21:16                 ` Dmitry A. Kazakov
2015-01-20 22:55                   ` J-P. Rosen
2015-01-21  8:35                     ` Dmitry A. Kazakov
2015-01-20 19:19             ` Natasha Kerensikova
2015-01-20 21:43             ` Randy Brukardt [this message]
2015-01-20 19:16           ` Natasha Kerensikova
2015-01-20 18:47   ` Natasha Kerensikova
2015-01-20 19:44     ` Dmitry A. Kazakov
2015-01-20 22:00       ` Randy Brukardt
2015-01-22 13:41         ` Natasha Kerensikova
2015-01-22 18:38           ` Dmitry A. Kazakov
2015-01-22 21:48             ` Randy Brukardt
2015-01-23 10:24     ` Stephen Leake
2015-01-21 14:54 ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox