W3C home > Mailing lists > Public > www-validator@w3.org > May 2006

[www-validator] <none>

From: Neil Smith <Neil_Smith@hargreaveslansdown.co.uk>
Date: Thu, 25 May 2006 12:41:08 +0100
Message-ID: <F8003EC770ECF341A39411089ED06E342AB316@hlemail01.hargreaveslansdown.co.uk>
To: <www-validator@w3.org>
Yep that sounds like a fair possibilty, according to the RFC2487 
[http://www.rfc-archive.org/getrfc.php?rfc=4287]  "3.1.1.2.  HTML"


However I'm finding it hard to explain why this would only kick an error
at the final position before a <title /> closing element - appearing to
be a "special case" makes me wonder about the parser instead of my
sanity ;-)

It's not possible to repro when the general <title /> element contains
A&amp;L within the content : 

&amp; has to be at the last-but-one character position before the
clising tag to repro, and (apparently) only before the closing title
element to the exclusion of other elements.

Peculiar, isn't it ?
Cheers - Neil



> -----Original Message-----
> From: www-validator-request@w3.org 
> [mailto:www-validator-request@w3.org] On Behalf Of David Dorward
> Sent: 25 May 2006 11:57
> To: Neil Smith
> Cc: www-validator@w3.org
> Subject: Re: Feed Validator : Parsing error in Atom [entity 
> preceding closing tag]
> 
> 
> 
> On Thu, May 25, 2006 at 11:15:27AM +0100, Neil Smith wrote:
> > When submitting a document in Atom format to the feed validator 
> > service
> > http://validator.w3.org/feed/check.cgi
> > 
> > Inclusion of an &amp; entity followed by a single character in the 
> > range a-zA-Z only, before the closing <title /> element tag 
> causes the 
> > feed validator to report " EOF in middle of entity" :
> 
> I'm not an expert on ATOM, but I believe this is what is happening:
> 
> Your title element has a type attribute that specifies it 
> contains HTML and so the text must have special characters 
> represented by character references.
> 
> This HTML is being represented in XML, so any special 
> characters in the HTML source must also be represented as 
> character entities.
>  
> Thus: foo&bar in text becomes
>       foo&amp;bar in HTML and
>       foo&amp;amp; in XML encoded HTML
> 
> You've only encoded the ampersand once, so are getting a warning.
> 
> > Use of more than one alpha character after the &amp; entity 
> does not 
> > cause this error in the validator.  It should of course be 
> reasonable 
> > to end a title element in for example E&amp;O, or in our case the 
> > abbreviation for a company, i.e A&amp;L
> 
> I'm now entering the realm of guesswork, but I suspect that 
> you can't have named entities with only one letter, so the 
> parser knows that &O; isn't a real entity, but that &Ox; could be.
> 
> 
> (I read the mailing list, please address responses there and do not CC
> me.)
> -- 
> David Dorward                                      
> http://dorward.me.uk
> 
> 
> 
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security 
> System. For more information please visit 
> http://www.messagelabs.com/email 
> ______________________________________________________________________
> 


==============================================================================
For more information on Hargreaves Lansdown, visit our web site http://www.hargreaveslansdown.co.uk
IMPORTANT NOTICE
This email is intended solely for the recipient and is confidential and not for third party unauthorised distribution. If an addressing, or transmission, error has misdirected this email, please notify the author by replying to this email or notifying the system manager (internal.security@hargreaveslansdown.co.uk) if you are not the intended recipient you must not disclose, distribute, copy, print or rely on this email. 
Any opinions expressed in this document are those of the author and do not necessarily reflect the opinions of Hargreaves Lansdown. In addition, staff are not authorised to enter into any contract through email and therefore nothing contained herein should be construed as such. This email has been prepared using information believed by the author to be reliable and accurate but Hargreaves Lansdown makes no warranty as to the accuracy or completeness. In particular, Hargreaves Lansdown does not accept responsibility for any changes made to this email after it was sent. 
Hargreaves Lansdown Asset Management, Hargreaves Lansdown Fund Managers, Hargreaves Lansdown Pensions Direct and Hargreaves Lansdown Stockbrokers are authorised and regulated by the Financial Services Authority and registered in England and the registered office is Kendal House, 4 Brighton Mews, Clifton, Bristol, BS8 2NX. Telephone: 0117 9889880


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
Received on Thursday, 25 May 2006 11:41:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:22 GMT