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

RE: Error Message Feedback

From: Neil Smith <Neil_Smith@hargreaveslansdown.co.uk>
Date: Tue, 8 Aug 2006 10:32:47 +0100
Message-ID: <F8003EC770ECF341A39411089ED06E3455F0FF@hlemail01.hargreaveslansdown.co.uk>
To: "David Dorward" <david@dorward.me.uk>, <www-validator@w3.org>

Yep I was comlpetely bogus on the CDATA and mixed up the angle
It's OK, I've had my coffee now, should be fine after that ;-))

Cheers David,
Regs - Neil

> -----Original Message-----
> From: www-validator-request@w3.org 
> [mailto:www-validator-request@w3.org] On Behalf Of David Dorward
> Sent: 08 August 2006 10:08
> To: www-validator@w3.org
> Subject: Re: Error Message Feedback
> On Tue, Aug 08, 2006 at 09:47:02AM +0100, Neil Smith wrote:
> > This was discussed last week - technically it's incorrect 
> to have the 
> > closing angle bracket inside your javascript string.
> No, closing angle brackets are fine. Opening angle brackets 
> cause problems, as do ampersands.
> > You could reasonably use the decimal character entity &#60; instead.
> That is an opening angle bracket, but it will cause problems 
> for XHTML served as HTML (since <script> elements implicitly 
> contain CDATA in HTML documents).
> > Many people now enclose script blocks in CDATA sections,
> > i.e.  http://www.w3schools.com/xml/xml_cdata.asp
> > <![CDATA[
> > <script language="javascript" type="text/javascript">
> The script element should contain CDATA, it shouldn't me 
> marked as CDATA itself - otherwise browsers (treating the 
> XHTML as XHTML rather than broken HTML) will render the 
> entire script element as text!
> You also need to take steps so that the CDATA isn't treated 
> as JavaScript if the document is served as HTML.
> The XHTML spec has suggestions on dealing with this. I just 
> avoid XHTML on the client side except in situations where it 
> provides a real benefit (which, so far, with the content I 
> write, has been never).
> > A better solution is to tell PHP to use XHTML compatible argmuent 
> > separators
> The requirement is not restricted to XHTML, it applies to HTML too.
> > (it's actually a bug in PHP's default setting on some versions).
> On some versions? When did they fix it? Last time I looked at 
> the bug I got the impression that the developers were 
> convinced that generating correct HTML by default would break 
> people's scripts.
> > You're not sending it what "normal" user agents would see
> Rejecting cookies isn't /that/ unusual.
> -- 
> 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
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 Tuesday, 8 August 2006 09:32:49 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:49 UTC