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

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