Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-03-12 23:40:46

Sirannon
New Member
From: Earth.
Registered: 2006-03-08
Posts: 6

W3 Validator is confusing me...

Hello all,

The W3C Validator is repeatedly notifying me of this erroneous line:

Warning Line 6 column 61: character “<” is the first character of a delimiter but occurred as data.

…k rel=“stylesheet” type=“text/css” media=“screen” href=”<txp:css />” />

This message may appear in several cases:

* You tried to include the “<” character in your page: you should escape it as “&lt;” * You used an unescaped ampersand “&”: this may be valid in some contexts, but it is recommended to use “&amp;”, which is always safe. * Another possibility is that you forgot to close quotes in a previous tag.

I’m quite confused. Is the txp tag in there what is throwing off the Validator? Something else? I don’t have any ampersand symbols anywhere in my HTML, nor in the particular line it mentioned… Quite confusing. Could someone please help me sort this out? Thank you. :)

Offline

#2 2007-03-13 00:17:19

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: W3 Validator is confusing me...

What’s the URI of the page?

Offline

#3 2007-03-13 08:26:54

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: W3 Validator is confusing me...

Looks like you’re validating a TXP page/template instead of the page that a visitor would see when visiting your website. It’s the < in <txp:css /> that makes the validator complain

Offline

#4 2007-03-13 17:25:52

Sirannon
New Member
From: Earth.
Registered: 2006-03-08
Posts: 6

Re: W3 Validator is confusing me...

Ruud, thank you for clarifying what I was doing wrong. I’ve now fixed the errors and my page was validated. =)

Offline

Board footer

Powered by FluxBB