W3C home > Mailing lists > Public > www-amaya@w3.org > April to June 2001

Re: Parsing of "<pre><samp> black && white </samp></pre>"

From: Jose Kahan <jose.kahan@w3.org>
Date: Wed, 25 Apr 2001 10:35:08 +0200
To: Vladimir G Ivanovic <ivanovic@parc.xerox.com>
Cc: www-amaya@w3.org
Message-ID: <20010425103508.D30381@tarawa.inrialpes.fr>
Hello,

On Tue, Apr 24, 2001 at 05:32:53PM -0400, Vladimir G Ivanovic wrote:
> Amaya 4.3 (Linux) does not accept this:
> 
>      1	<html xmlns="http://www.w3.org/1999/xhtml">
>      2	<body>
>      3	<pre><samp>
>      4	black && white

The problem is that you should code the & as &amp;, otherwise it's being
interpreted as an entity name. The XML parser is much stricter than the
HTML one.

This is exactly what the parsing error reports, but not in such a
clear way:
> 
>     *** Errors/warnings in /tilde/ivanovic/tmp/test.html temp file: /tilde/ivanovic/.amaya/1/test.html  line 4, char 7: not well-formed

> Q2: If it is a bug, how do I report it, both for Amaya and for the W3C
>     HTML Validator.

I think it's a validator bug.
Received on Wednesday, 25 April 2001 04:35:23 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 April 2014 11:01:35 UTC