W3C home > Mailing lists > Public > www-validator@w3.org > December 2010

Re: [VE][libxml2-65] attributes construct error because of empty GET variable

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Sat, 18 Dec 2010 07:29:07 +0200
Message-ID: <D63B0AF053A842059060CFB26A9A1823@JukanPC>
To: "Stan Gobien" <stan.gobien@telenet.be>, <www-validator@w3.org>
Stan Gobien wrote:

> Validating http://www.allesamerika.nl/amerika-rondreizen/index.php
> Error [libxml2-65]: ""
>
> attributes construct error
> .href="index.php?regio=&amp;zoekveld=&amp;dir=ASC&amp;sort=reis_naam&amp;staat=.

Strange. The validator http://www.htmlhelp.com/validator reports no errors.

> The error is thrown because my URL is formed with an empty GET
> variable.
> Like this:
> http://host.domain.com?index.php?VAR1=&amp;VAR2=data

I don't think that's the reason. It shouldn't.

> Is this an error in the validator?

I think it is.

> Or is it not allowed to form URL's with GET variables who have empty
> data.

It is allowed and common, and it has nothing to do with XML validation - in 
it, the href attribute value is just data, a string, to be checked only by 
generic XML rules.

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/ 
Received on Saturday, 18 December 2010 05:30:01 GMT

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