W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2006

Re: missing quote mark for attribute value

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 31 Oct 2006 14:41:00 +0100
To: "Florian Vielhauer" <florian.vielhauer@ambitionsoft.de>
Cc: <html-tidy@w3.org>
Message-ID: <6ckek2t2bt41umlot9lik0i6o359eapfr2@hive.bjoern.hoehrmann.de>

* Florian Vielhauer wrote:
>I'm getting the error "missing quote mark for attribute value".

><span id="mySpan" xml="<><><><><><>"></span>

For HTML documents this is (probably hard to fix) bug. For XHTML
documents using "<" in attribute values is not allowed, you have
to escape it. Please note that you should not make attributes up
like above, and if you do, please choose names that do no start
with "xml".

>Can someone please tell me, what the cause for his error message is?

You could report this bug to http://tidy.sf.net 's bug tracker,
as linked on that page. Note though that it is very difficult to
parse such markup as you expect, Tidy also has to cope with cases
where the author simply forgot to close the attribute like in

  <foo bar="value</foo><baz x="...

Here you would want Tidy to close the bar attribute at "<" and
not the trailing '"'.
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Tuesday, 31 October 2006 13:41:13 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:56 UTC