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 14361 - & in a href is flaged as invalid
Summary: & in a href is flaged as invalid
Status: RESOLVED INVALID
Alias: None
Product: HTML Checker
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: PC All
: P2 major
Target Milestone: ---
Assignee: Michael[tm] Smith
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-03 07:25 UTC by Martin Barker
Modified: 2015-08-23 07:07 UTC (History)
1 user (show)

See Also:


Attachments

Description Martin Barker 2011-10-03 07:25:36 UTC
The Validator flags an & in a href as invalid this would be the only place it would be valid as if you tryed to send & though the address bar any thing that followed it would not be sent correctly as ; is a break in a GET parameter sent to a page

Example Code
<a class="thickbox" href="../../../index.php/login/#TB_inline?height=200&width=200&inlineId=form">Log In</a>

Given Result
 Line 44, Column 731: & did not start a character reference. (& probably should have been escaped as &amp;.) 
Comment 1 Etienne Miret 2011-10-09 21:18:42 UTC
& in href IS invalid. Use &amp; instead.