This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 4847 - Error occurs with a hyper-link that has GET informacion in it
Summary: Error occurs with a hyper-link that has GET informacion in it
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: HEAD
Hardware: PC Windows XP
: P4 normal
Target Milestone: ---
Assignee: Olivier Thereaux
QA Contact: qa-dev tracking
URL: http://datamatrix-bg.info
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-11 09:21 UTC by Dimitar Boiadjiev
Modified: 2007-07-11 10:15 UTC (History)
0 users

See Also:


Attachments

Description Dimitar Boiadjiev 2007-07-11 09:21:24 UTC
I have the following hyper-link code on my page:
<a style="background-color: #3399AA; color: #003366; " href="?css=css1&page=0">style1</a>

and the XHTML1.0 validator keeps giving me these errors:
>>cannot generate system identifier for general entity 'page'
...A; color: #003366; " href="?css=css1&page=0">style1</a><br /><a style="backgr
________________________________________^ (points to p in 'page')
>>general entity "page" not defined and no default entity. (points to p in 'page' again)
>>reference not terminated by REFC delimiter.
...olor: #003366; " href="?css=css1&page=0">style1</a><br /><a style="background
(points to '=' after 'page')

And many more simular errors (pointing to '=', '?', '&'. (total 24 errors)
I want to know if my code really contains errors or it's a BUG in the validator.
Note: the WEB-COUNTER (error 11, line 134 (warning) to error 62, line 137 are errors that occur because of wrong code and arent validator bug related.

Thank You.
Comment 1 Olivier Thereaux 2007-07-11 10:15:33 UTC
(In reply to comment #0)
> I want to know if my code really contains errors or it's a BUG in the
> validator.

In general, if the validator says your code is wrong, you can trust that it *is* wrong. In this case in particular:

> I have the following hyper-link code on my page:
> <a href="?css=css1&page=0">style1</a>

Have you read the explanation that comes with the error message?
http://validator.w3.org/docs/errors.html#ve-338
[[ If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). ]]
In other words, replace "&" with "&amp;", even in your links.