Unhelpful error messages

Leif Halvard Silli <[email protected]>
Newsgroups gmane.comp.web.amaya.general
Organization Målform.no
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.