Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Why on earth isn't this simple page failing validation
Old 07-14-2010, 04:09 AM Why on earth isn't this simple page failing validation
Novice Talker

Posts: 6
Trades: 0
Hi there,

I have a simple page which is failing validation and I was wondering if somebody could take a quick look.

Here's the page:

http://www.ishigaki-japan.com/node/424

Result:

http://validator.w3.org/check?verbos...m%2Fnode%2F424

Clearly I am closing the meta tag. I can't see the problem, but I must be doing something wrong.

Thanks in advance,

Richard

P.S Apologies for the error in the title - I meant 'Why on earth is this simple page failing to validate'

Last edited by RichardInJapan; 07-14-2010 at 04:28 AM..
RichardInJapan is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-14-2010, 09:36 AM Re: Why on earth isn't this simple page failing validation
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Well, you simply have a <meta> tag that is not closed:
Code:
<meta name="robots" content="noindex, follow">
Change it to
Code:
<meta name="robots" content="noindex, follow"/>
and voila...
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 07-18-2010, 11:22 PM Re: Why on earth isn't this simple page failing validation
Novice Talker

Posts: 6
Trades: 0
Thanks for the reply, however, it is closed. It's just that the validator says that it's not.
RichardInJapan is offline
Reply With Quote
View Public Profile
 
Old 07-19-2010, 12:29 AM Re: Why on earth isn't this simple page failing validation
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
When I look at the page source, it's not closed.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 07-19-2010, 03:55 AM Re: Why on earth isn't this simple page failing validation
Novice Talker

Posts: 6
Trades: 0
Thanks very much tripy. You're indeed correct. I'm pushing the line:

<meta name="robots" content="noindex, follow"/>

...into my CMS' template file for the page but the backslash is being filtered out for some reason. No idea why.

What's strange is that this page validates just fine despite the fact that it has the same problem:

http://www.ishigaki-japan.com/node/461


Thanks tripy.

Last edited by RichardInJapan; 07-19-2010 at 04:23 AM..
RichardInJapan is offline
Reply With Quote
View Public Profile
 
Old 07-19-2010, 04:40 AM Re: Why on earth isn't this simple page failing validation
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
What's strange is that this page validates just fine despite the fact that it has the same problem:
Nope. That page has a correctly formed "robots" meta.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-19-2010, 07:45 AM Re: Why on earth isn't this simple page failing validation
Novice Talker

Posts: 6
Trades: 0
Clearly I'm missing something really obvious here.

Code which doesn't validate:

<meta name="robots" content="noindex,follow">

Code which does validate:

<meta name="robots" content="index,follow">

Aside from the fact that the first is 'noindex' I don't see the difference. Neither have a closing back slash.
RichardInJapan is offline
Reply With Quote
View Public Profile
 
Old 07-19-2010, 07:59 AM Re: Why on earth isn't this simple page failing validation
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Well, don't know what pages you are looking at but. ...

From /node/461/
HTML Code:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>Printable Japanese Coupon</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="index,follow" />
from /node/424/
HTML Code:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>English Voucher</title>
  <meta name="robots" content="noindex, follow">
</head>
<body>
  <div>
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-19-2010, 08:31 AM Re: Why on earth isn't this simple page failing validation
Novice Talker

Posts: 6
Trades: 0
If I do a save as .htm I see the robots line without the closing backslash. If I do a 'view source' in Firefox I see it with a red backslash which I assume is indicating the absence of a slash.

Essentially I see the same for both pages in terms of formatting when I save as .htm. I'm simply not seeing what you're seeing. Very very strange.
RichardInJapan is offline
Reply With Quote
View Public Profile
 
Old 07-19-2010, 08:55 AM Re: Why on earth isn't this simple page failing validation
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
I see it with a red backslash which I assume is indicating the absence of a slash.
Nope! that shows it is a "self-closing" element

you should see a red slash on ALL meta elements, link elements, img elements and any <br /> tags.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-19-2010, 09:20 AM Re: Why on earth isn't this simple page failing validation
Novice Talker

Posts: 6
Trades: 0
Thanks Chris. I wasn't aware of that.

So...Firefox shows the same source (in terms of formatting) for both pages.

However, I've noticed that the difference can be seen when doing a view source via I.E.

I still have no idea why the slash in my template file is not making it to the final source. Probably a Drupal theming issue.

Thanks, Rich
RichardInJapan is offline
Reply With Quote
View Public Profile
 
Old 07-26-2010, 08:29 PM Re: Why on earth isn't this simple page failing validation
Average Talker

Posts: 22
Name: Web Pablo
Trades: 0
HTML Code:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Printable Japanese Coupon</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="index,follow" />
webpablo is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Why on earth isn't this simple page failing validation
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.10275 seconds with 12 queries