Unhelpful error messages

I have an XHTML document where there are text directly in the <body> 
element. This is not allowed, so Amaya's error log tried to tell me 
this. However, the language it used was confusing. Instead of saying 
that "text" is not allowed it said that "Element <Text>" is not allowed 
- which didn't ring any bells until I tried and alternative validator. 
I hope this can be clarified. Here is an example of the confusing error 
log message:

	line 299, char 0: Element <Text> not allowed outside a block Element

Subsequently - probably as a result of the above error in the code - 
Amaya reported many other errors about forbidden elements nested inside 
P elements. Example, 2 lines below:

	line 301: A <p> element cannot be a child of <p> element

And there were many message like that, which all were wrong - I have no 
illegal elements inside any of the <p> elements of that document. The 
code in question, lookes like the following - and I use "<Text />" to 
represent text that appear directly in the <body> element:

<Text /><p>Lorem ipsum. <a href="#">@</a></p>
<Text /><p>Etc. <a href="#">@</a></p>
-- 
leif halvard silli

Received on Saturday, 20 February 2010 01:48:08 UTC