Topic: The Logout link has an amp; in it

Hello,

I've noticed this minor bug - the produced HTML-code:

<li id="navlogout"><a href="login.php?action=out&id=4159">Logout</a></li>

should probably be this instead:

<li id="navlogout"><a href="login.php?action=out&id=4159">Logout</a></li>

Regards
Alex

http://preferans.de/ - russian card game

Re: The Logout link has an amp; in it

AFAIK the markup won't validate properly if you don't use the entity for the ampersand.

Looking for a certain modification for your forum? Please take a look here before posting.

Re: The Logout link has an amp; in it

pogenwurst is correct. That is intentional.

More info on HTML entities:
http://www.w3schools.com/tags/ref_entities.asp

Re: The Logout link has an amp; in it

Nope I don't think so. It's a simple GET-link. Why use HTML entities here

login.php?action=out&id=4159

Also why don't the other navigational links have an & in them?

Just make view source on this very page and please look at the top.

Regards
Alex

http://preferans.de/ - russian card game

Re: The Logout link has an amp; in it

Each (navigational) link should use &. The other ones simply don't use & tongue
The quote link too:

<a href="post.php?tid=12413&qid=73089">Quote</a>

Just go check with w3c smile

6

Re: The Logout link has an amp; in it

The use of "&" is not valid xhtml, the reason being that in xml "&" is reserved for signifying the start of an entity reference. Its use results in the validation error "unknown entity". If you were to serve the pages as application/xhtml+xml the "&" would cause the page to fail completely if the browser was using a strict xml parser.

The only time you must use "&" is if you are using header() because the link does not appear in the markup and "&" would actually get sent to the browser as a string.

Moving this topic since clearly not a bug.