Re: missing quote mark for attribute value

* 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