David Håsäther | 1 Oct 2005 11:11
Picon

Re: "/" in normal text confuses end tag detection?


On 2005-09-25 19:20, Frank R. Suchy wrote:

> Error  Line 156 column 39: end tag for "FONT" omitted, but its declaration does 
> not permit this.
> 
>       <font size="-1"> Sa &amp; So, 24./25. September</font><br><b>Basics und Au
> 
> The validator marked the slash between "24." and "25." as place of the error.

Most likely, you have a FONT element, in the form of a NET-enabling
start-tag (i.e. "<font/") somewhere before this. When the parser reaches
the solidus in "24./25.", that particular FONT element will be ended.
However, since the other FONT element is not yet ended, you'll receive
this error.

--

-- 
David Håsäther

David Håsäther | 1 Oct 2005 11:19
Picon

Re: "/" in normal text confuses end tag detection?


On 2005-10-01 11:11, David Håsäther wrote:

> Most likely, you have a FONT element, in the form of a NET-enabling
> start-tag (i.e. "<font/") somewhere before this.

Correction: It's not necessarily a FONT element.

--

-- 
David Håsäther

Vidiot | 1 Oct 2005 22:04
Favicon

Detection error within javascript/comment


Web page involved: http://vidiot.com/24/index.html
Error received:
    Error Line 288 column 67: end tag for element "STRONG" which is not open.
    ...P>You've been here <STRONG>" + Count() + "</STRONG> time(s).");

Complete code segment:
    <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
    <!-- Begin
    document.write("<P>You've been here <STRONG>" + Count() + "</STRONG> time(s).");
    // End -->
    </SCRIPT>

The validator shouldn't complain about HTML code within javascript code, since
the HTML could be generated "on-the-fly."  Also, the code that it is
complaining about is within a comment.

MB
--

-- 
e-mail: vidiot <at> vidiot.com                                /~\ The ASCII
                                                         \ / Ribbon Campaign
[So it's true, scythe matters.  Willow  5/12/03]          X  Against
Visit - URL: http://vidiot.com/                          / \ HTML Email

Lachlan Hunt | 2 Oct 2005 11:11
Picon

Re: Detection error within javascript/comment


Vidiot wrote:
> Complete code segment:
>     <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
>     <!-- Begin
>     document.write("<P>You've been here <STRONG>" + Count() + "</STRONG> time(s).");
>     // End -->
>     </SCRIPT>
> 
> The validator shouldn't complain about HTML code within javascript code, since
> the HTML could be generated "on-the-fly."

http://www.htmlhelp.com/tools/validator/problems.html#script

> Also, the code that it is complaining about is within a comment.

No it isn't, it just looks like it is.
http://lachy.id.au/log/2005/05/script-comments

--

-- 
Lachlan Hunt
http://lachy.id.au/

Frank Ellermann | 2 Oct 2005 11:32
Picon
Picon

Re: Detection error within javascript/comment


Lachlan Hunt wrote:

> http://lachy.id.au/log/2005/05/script-comments

Thanks, among other things I didn't know this...

<script type="text/javascript"><!--//--><![CDATA[//><!--
    ...
//--><!]]></script> 

...kludge for text/html XHTML inline scripts.  Bye

Steve | 4 Oct 2005 00:04

[VE][64] Error Message Feedback

Validating http://www.bikerleatherz.com/sitemap.htm
Error [64]: "document type does not allow element X here"

[ Add your message/question here.
  Follow the instructions at
http://validator.w3.org/feedback.html#errormsg ]

I don’t know html real well but am trying to make my site more “google-friendly” so I might get some traffic.  This url I’ve provided is a site map for google to peruse.  Maybe I’m not claiming the xml properties correctly (or not using xml correctly at all), but all my errors are:

document type does not allow element "A" here

These are simple url tags for site map and am not sure what I’m doing wrong here – please help?

Thank you so much for your time,

 

Steve Hayslip

stevehayslip <at> cableone.net

http://www.bikerleatherz.com/

http://www.gutzleather.com/

http://www.mercygrace.com/

 

Larry Hatch | 4 Oct 2005 01:23

What's with the Banana Peel?


Hello at W3C:

Regarding the wide thin banner at bottom of this
page:   http://validator.w3.org/ ..

At the right, is what appears to be a banana peel 
tossed onto the floor.

If so, what is that supposed to indicate?
Is it a subtle warning about NOT validating code?
I considered a yellow ribbon, a dead canary etc.
but it looks for all the world like a banana peel.

Please respond to webmaster <at> larryhatch.net or
simply reply to this email.

Thanks

- Larry Hatch

Liam Quinn | 4 Oct 2005 04:39

Re: [VE][64] Error Message Feedback


On Mon, 3 Oct 2005, Steve wrote:

> Validating http://www.bikerleatherz.com/sitemap.htm 
[...]
> I don't know html real well but am trying to make my site more
> "google-friendly" so I might get some traffic.  This url I've provided is a
> site map for google to peruse.  Maybe I'm not claiming the xml properties
> correctly (or not using xml correctly at all), but all my errors are:
> 
> document type does not allow element "A" here
> 
> These are simple url tags for site map and am not sure what I'm doing wrong
> here - please help?

HTML does not allow one "A" element to contain another "A" element.  On
the line before the error, you missed a </a> tag, so the "A" element is 
still open when the parser comes to the next link.

--

-- 
Liam Quinn

Lachlan Hunt | 4 Oct 2005 04:53
Picon

Re: [VE][64] Error Message Feedback


Steve wrote:
> Validating http://www.bikerleatherz.com/sitemap.htm 

Firstly, before I get to the error you have reported, we must first deal 
with exactly what kind of document you are using:

<?xml version="2.0" encoding="utf-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

There are numerous problems with this:
1. The XML declaration contains specifies version 2.0, yet there is no 
XML 2.0 defined yet.  There is currently only 1.0 and 1.1.

2. You've used an XML declaration, yet provided an HTML 4.01 DOCTYPE and 
HTML 4 *is not* an application of XML, it is SGML.  While <?xml ...> is 
a valid SGML Processing Instruction, hence the validator does not report 
an error, it's quite obviously not what you intended.

Remove the XML declaration.

Also, you've attempted to specify the encoding as UTF-8 in the the XML 
declaration, yet that is ignored for text/html document.  You've also 
specified the character encoding in a meta element with conflicting 
information:
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

You should change that to UTF-8 (as long as the document is actually 
encoded in UTF-8, not Windows-1252, or at least only uses the common 
US-ASCII subset.)

> trying to make my site more "google-friendly" so I might get some traffic.

The best way to make your site "google-friendly" is to focus on 
publishing high quality content that people will actually be interested 
in reading.

> Error [64]: "document type does not allow element X here" 
> 
> document type does not allow element "A" here
> 
> These are simple url tags for site map and am not sure what I'm doing wrong
> here - please help?

As Liam mentioned, you missed an </a> end-tag.  However, there is a lot 
of room for improvement in your markup.  In this case, I'd suggest 
remove all the non-breaking spaces (&nbsp;) and mark it up as a list. 
Where some items are indented more than others, use nested lists.

For example, using a few of the items from that page, I recommend 
marking it up like this:

<h1>Index-Home
<ul>
   <li><a href="">Link Directory</a>
     <ul>
       <li><a href="">Link Exchange Information</a>
       <li><a href="">Bikers</a>
         <ul>
           <li><a href="">Biker Links A-E F-Z</a>
           <li><a href="">Clubs</a>
         </ul>
       <li><a href="">Clothes</a>
       <li><a href="">Directories</a>
     </ul>
</ul>

If you don't want the bullets to appear, then use a stylesheet to remove 
them.

--

-- 
Lachlan Hunt
http://lachy.id.au/

Olivier Thereaux | 4 Oct 2005 05:04
Picon
Favicon

Re: What's with the Banana Peel?


On Mon, Oct 03, 2005, Larry Hatch wrote:
> Hello at W3C:

Hi!

> Regarding the wide thin banner at bottom of this
> page:   http://validator.w3.org/ ..
> 
> At the right, is what appears to be a banana peel 
> tossed onto the floor.

It's actually a half-eaten banana. On a wooden bench.

Regards,
--

-- 
olivier


Gmane