W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2003

Re: Error: missing quote mark for attribute value

From: Charles Reitzel <creitzel@rcn.com>
Date: Mon, 17 Feb 2003 11:48:46 -0500
Message-Id: <4.3.2.7.2.20030217114324.02a682a8@pop.rcn.com>
To: <M.Zuiderwijk@priva.nl>
Cc: <html-tidy@w3.org>

I would suggest escaping the angle brackets and quotes (&lt; &gt; &quot;) 
for XML embedded within attribute values.  Although in a pure XML parser, 
this should not be necessary.  In an SGML-aware parser it is.  In 
particular, Tidy will detect missing end quotes on attribute 
values!  Escaping the embedded markup should hide it from Tidy.

Any application code (Javascript?) that is accessing the value of this 
attribute _should_ still receive the same text. Let us know how it goes.  I 
am curious.

take it easy,
Charlie


At 04:09 PM 2/17/2003 +0100, Marco Zuiderwijk wrote:
>Hello,
>
>I have an HTML file which contains object parameters containing XML (example:
><PARAM NAME="Address" 
>VALUE='<address ><info><name>text</name></info><objects 
>type="Location" ><object><index>Idx 
>20</index></object></objects></address>'>). When I call tidy to convert 
>this file to XHTML I got the error "missing quote mark for attribute value 
>on the line containing the XML parameter. I have tried several options, 
>but cannot get it right. Does anybody know how to handle this?
>
>Regards,
>Marco
Received on Monday, 17 February 2003 11:39:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:53 GMT