comp.lang.ada
 help / color / mirror / Atom feed
From: gautier_niouzes@hotmail.com
Subject: Re: AdaCore xmlada throws XML_Fatal_Error on <script> tag
Date: Thu, 7 Sep 2017 13:05:07 -0700 (PDT)
Date: 2017-09-07T13:05:07-07:00	[thread overview]
Message-ID: <8427cc1e-8bb7-4b0c-99a8-ba7a79f82fbf@googlegroups.com> (raw)
In-Reply-To: <2ea55671-19c1-4ff4-90d0-7dc55856fb1e@googlegroups.com>

> As Emmanuel pointed out, you need an HTML parser, not an XML parser.

Just developing on this topic: a typical random Web page is a mix of the following
1) HTML (typically, <br> tags)
2) Ill-formed HTML (closing tags that don't close anything, opening tags that are never closed, singleton tags written as closing tags: </br>)
3) XHTML (HTML following XML syntax; e.g. <br />)
At some point, there was a will to impose a clean, well-defined standard (XHTML), but it did not succeed because of a typical phenomenon: browsers need to be compatible with 1) & 2) to be in use; a browser accepting only well-formed XHTML would be ignored by users...


  parent reply	other threads:[~2017-09-07 20:05 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-07  1:10 AdaCore xmlada throws XML_Fatal_Error on <script> tag Stephen Leake
2017-09-07  6:21 ` briot.emmanuel
2017-09-07 19:56   ` Stephen Leake
2017-09-08 23:31     ` Georg Bauhaus
2017-09-07 15:12 ` gautier_niouzes
2017-09-07 20:03   ` Stephen Leake
2017-09-07 20:05   ` gautier_niouzes [this message]
2017-09-07 20:47     ` Stephen Leake
2017-09-07 20:52       ` Stephen Leake
2017-09-07 20:54         ` Stephen Leake
2017-09-07 21:46       ` gautier_niouzes
2017-09-08  2:12         ` Stephen Leake
2017-09-08  5:38           ` Stephen Leake
2017-09-08 16:55             ` Shark8
2017-09-09 18:07             ` Stephen Leake
2017-09-09 19:35               ` Simon Wright
2017-09-08  5:40           ` gautier_niouzes
replies disabled

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