473,654 Members | 2,974 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with W3C validator

I'm having a problem with the W3C validator:

http://validator.w3.org/check?uri=ht...missive.com%2F

I don't understand this error message:

Line 117, column 61: an attribute specification must start with a name or
name token

....ef="/" accesskey="H" title="Access Key: Alt+H" id="here"">Home </a>

Check for stray quotes or incomplete attribute definitions.

Note that the final " before >Home</a> is what the validator thinks is
needed, not what is in the source. The only thing I can think is that
either the : or the + in the title attribute value are causing a problem
but I can't think why. Any suggestions?

TIA, Darren

--
=============== =============== =============== =============== ==========
D. D. Brierton da****@dzr-web.com www.dzr-web.com
Trying is the first step towards failure (Homer Simpson)
=============== =============== =============== =============== ==========

Jul 23 '05 #1
9 1855
"D. D. Brierton" <da****@dzr-web.com> writes:
I'm having a problem with the W3C validator:

http://validator.w3.org/check?uri=ht...missive.com%2F

...ef="/" accesskey="H" title="Access Key: Alt+H" id="here"">Home </a>

Note that the final " before >Home</a> is what the validator thinks is
needed, not what is in the source.


$ wget -q -O- http://www.microemissive.com/ | grep 'Home</a>'
<a href="/" accesskey="H" title="Access Key: Alt+H" id="here"">Home </a>
$

Looks like it's in the source to me. What makes you think it isn't?

--
Chris
Jul 23 '05 #2
On Tue, 31 Aug 2004 14:53:27 +0100, D. D. Brierton <da****@dzr-web.com>
wrote:
I'm having a problem with the W3C validator:

http://validator.w3.org/check?uri=ht...missive.com%2F

I don't understand this error message:

Line 117, column 61: an attribute specification must start with a name or
name token

...ef="/" accesskey="H" title="Access Key: Alt+H" id="here"">Home </a>

Check for stray quotes or incomplete attribute definitions.

Note that the final " before >Home</a> is what the validator thinks is
needed, not what is in the source. The only thing I can think is that
either the : or the + in the title attribute value are causing a problem
but I can't think why. Any suggestions?


I don't see any reason why you are using two "'s in a row at the end.
What's your reasoning for having that extra "?

Unless you can give a darn good reason for that to be double double
quotes, kill one in each case. Do that and add the </li> tags where
missing, making the markup look like

<li>
<a href="/" accesskey="H" title="Access Key: Alt+H" id="here">Home </a>
</li>

and your page should validate.
Jul 23 '05 #3
On Tue, 31 Aug 2004 15:08:14 +0100, Chris Morris wrote:

$ wget -q -O- http://www.microemissive.com/ | grep 'Home</a>'
<a href="/" accesskey="H" title="Access Key: Alt+H" id="here"">Home </a>
$

Looks like it's in the source to me. What makes you think it isn't?


Arghh -- sorry, you're correct. Mozilla's view-source *doesn't* show it. I
thought view-source showed you the actual source code Mozilla received
from the server, not what Mozilla had parsed it as.

Thanks for that.

Best, Darren

--
=============== =============== =============== =============== ==========
D. D. Brierton da****@dzr-web.com www.dzr-web.com
Trying is the first step towards failure (Homer Simpson)
=============== =============== =============== =============== ==========

Jul 23 '05 #4
On Tue, 31 Aug 2004 15:17:10 +0100, D. D. Brierton <da****@dzr-web.com>
wrote:
On Tue, 31 Aug 2004 15:08:14 +0100, Chris Morris wrote:

$ wget -q -O- http://www.microemissive.com/ | grep 'Home</a>'
<a href="/" accesskey="H" title="Access Key: Alt+H" id="here"">Home </a>
$

Looks like it's in the source to me. What makes you think it isn't?


Arghh -- sorry, you're correct. Mozilla's view-source *doesn't* show it.
I
thought view-source showed you the actual source code Mozilla received
from the server, not what Mozilla had parsed it as.


Mozilla's view source window leaves much to be desired. I generally use a
text editor, Opera and IE allow me to do so, but not Mozilla.

Alternately, check "Show Source" in the validator, the actual source will
be presented below the results.
Jul 23 '05 #5
On Tue, 31 Aug 2004 10:13:41 -0400, Neal wrote:
I don't see any reason why you are using two "'s in a row at the end.
What's your reasoning for having that extra "?


I didn't realise that I was! The navbar is generated by a PHP script, and
Mozilla's view-source was NOT showing the second " and so I misread the
validator error as saying that I *needed* an extra " -- e.g. because for
some reason it thought that one of the attributes wasn't closed properly.

Now I can see that the extra closing " was being generated by my PHP
scripts, and I've fixed it (and fixed the problem with the missing </ul>
in the nested lists). The fix should be up soon.

Thanks, Darren

--
=============== =============== =============== =============== ==========
D. D. Brierton da****@dzr-web.com www.dzr-web.com
Trying is the first step towards failure (Homer Simpson)
=============== =============== =============== =============== ==========

Jul 23 '05 #6
In message <pa************ *************** *@dzr-web.com>, D. D. Brierton
<da****@dzr-web.com> writes
...ef="/" accesskey="H" title="Access Key: Alt+H" id="here"">Home </a>


Your query is obviously answered already, but on another issue:

Why put the access key in the title attribute? It doesn't describe the
target of the link, which is what title is for in the case of <a>.

And it isn't even very useful, because the usual way to see the title is
to hover over the link with the mouse - at which point one would surely
click rather than go back to the keyboard!

(It's pretty rubbish the way browsers don't give any indication of what
the access key is, but I just disagree that title is a very good way of
getting around that problem...)

--
George Lund
Jul 23 '05 #7
George Lund <ge****@lund.co .uk> writes:
In message <pa************ *************** *@dzr-web.com>,
D. D. Brierton <da****@dzr-web.com> writes
...ef="/" accesskey="H" title="Access Key: Alt+H" id="here"">Home </a>
Your query is obviously answered already, but on another issue:

Why put the access key in the title attribute? It doesn't describe
the target of the link, which is what title is for in the case of <a>.


Not necessarily. It's one good use of it (where the link text alone
isn't sufficient) but it could be used for any other supplemental
information.
And it isn't even very useful, because the usual way to see the title
is to hover over the link with the mouse - at which point one would
surely click rather than go back to the keyboard!
That is true, but only in browsers that require hovering to show the
title attribute. And it's also not necessarily correct because of the
various different ways of triggering accesskeys.
(It's pretty rubbish the way browsers don't give any indication of
what the access key is, but I just disagree that title is a very good
way of getting around that problem...)


Well, browser accesskey implementation in general is fairly bad. And
inconsistent - Alt+H in some, Ctrl+H in others, Shift+Esc,H in
Opera. Only Opera's implementation avoids the possibility of
collisions with other keys (Alt+H minimises the browser for me, Ctrl+H
is help, etc.)

Some people recommend to use numeric accesskeys to get around this,
but on my system Alt+number switches between different workspaces on
the desktop and so would never be picked up by the browser (and if the
browser did pick it up it would switch between tabs).

--
Chris
Jul 23 '05 #8
On Wed, 01 Sep 2004 20:54:20 +0100, George Lund wrote:
In message <pa************ *************** *@dzr-web.com>, D. D. Brierton
<da****@dzr-web.com> writes
...ef="/" accesskey="H" title="Access Key: Alt+H" id="here"">Home </a>
Your query is obviously answered already, but on another issue:


Oops -- I just noticed your follow-up ...
Why put the access key in the title attribute? It doesn't describe the
target of the link, which is what title is for in the case of <a>.
I agree -- it is sub-optimal. It's the technique I am using for now until
I can think of a better way of doing it.
And it isn't even very useful, because the usual way to see the title is
to hover over the link with the mouse - at which point one would surely
click rather than go back to the keyboard!
Yes! I am aware of these shortcomings. In fact, accesskeys just seem
pretty broken to me in general, but I include them in an effort to be a
good citizen.
(It's pretty rubbish the way browsers don't give any indication of what
the access key is, but I just disagree that title is a very good way of
getting around that problem...)


Unfortunately, in all my reading I am yet to come across a good way of
using accesskeys. All the techniques I've seen are beset with problems.

Best, Darren

--
=============== =============== =============== =============== ==========
D. D. Brierton da****@dzr-web.com www.dzr-web.com
Trying is the first step towards failure (Homer Simpson)
=============== =============== =============== =============== ==========

Jul 23 '05 #9
"D. D. Brierton" <da****@dzr-web.com> wrote:
In fact, accesskeys just seem
pretty broken to me in general, but I include them in an effort to be a
good citizen.


I noble motive, but using access keys generally doesn't help people, and
doesn't make you a better citizen. In addition to being largely ignored
(due to limitations of user agents and users), they can cause real harm -
especially to people with disabilities. For example, suppose you are
accustomed to using Alt+o to open your current browser's help system. One
day you visit a page and need some help from the browser, and you type
Alt+o. Suddenly something completely different happens - something that
the page author associated with your Alt+o by using accesskey="o".

Accesskeys are fundamentally broken, since they have been implemented
using the same technique as browsers' built-in (or programmable)
shortcuts, thereby clashing with them. And those shortcuts are crucial to
many people (e.g., those who cannot use a mouse) and a great convenience
to many people who like to work with keyboard control - after all, such
things explain why accesskey was invented in the first place.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 23 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
9477
by: PhillyFan | last post by:
I have a page setup using anchors. For some reason not all the anchors are working correctly. The last three anchors do not start where they are supposed to. I then started removing the anchor links to troubleshoot erroneous code. The more anchors I removed from the bottom the move the problem moved upwards. Any help with this problem would be appreciated. Here is the page link so you can see what I am talking about: ...
18
5624
by: David Morris | last post by:
G'day. Is there a known "display:block;" problem in opera? In playing around trying to get some cross browser conformance, I either inadvertently or redundantly (depending on your perspective) added "display:block;" to a style defining tables that also had zero padding, margin and border. With "xdisplay:block;" (that is nothing) all browsers (well Ie6, MZ, Ff Op in
0
2227
by: Tom Pearson | last post by:
I create controls and validators dynamically dependent on data at runtime. I create the control then the relevant validator(s) for it assigning the Control.ID as the control to validate. These controls and validators are then added to a table for display to the user. This code did seem to work originally, but now does not amd I am stumped as to why. There have been some code changes, but not to the methods below and I have pretty much...
6
1922
by: ima | last post by:
http://www.kencoffman.com/templates.htm I've been experimenting with float:left and I've been able to clear those floats as far as Opera 8.02 and Firefox 1.0.6 but IE6 is a problem. I've researched a bit and read about a hack but for some reason I've been unable to get it to work. Perhaps I've missed some subtle requirement like placed it in the wrong place in my css file. If you view the page with Opera or Firefox, you'll notice...
9
2333
by: rbronson1976 | last post by:
Hello all, I have a very strange situation -- I have a page that validates (using http://validator.w3.org/) as "XHTML 1.0 Strict" just fine. This page uses this DOCTYPE: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> When I change the DOCTYPE to (what should be the equivalent):
3
2066
by: msnews.microsoft.com | last post by:
Hi All, I m facing problem in Server Side Validation. For Example The Scenario is I have two fields on the page 1 Country Dropdown List 2 Province Textbox 3 State Dropdown List
4
1207
by: Alan Silver | last post by:
Hello, If you add (say) two text boxes to a form, then add a validator with some simple rule for one of them, you can observer the following problem:- Type some erroneous value in the text box with the validator, then click on the other text box. This makes the validator's red error message appear. Now, change the invalid text to something valid, and without clicking anywhere else, click the submit button.
4
2041
by: Richard | last post by:
Hi, I like a demo on layers posted at http://www.echoecho.com/csslayers.htm. It displays two text phrases in separate layers visually overlapped, first with one on top and the other beneath, and then vise versa. The site also provided the code they claimed produced this (overlapping) effect. I plugged their code into the body of a vanilla html shown below, but the items were not overlapped, neither with
0
1098
by: Gonza | last post by:
Hi group, i'm trying to add a customvalidator control to a custom web control. The problem is i'm getting a "Unable to find control id..." exception. Here is the code: public class CuitTextBox : WebControl { protected override void OnInit(EventArgs e) {
1
1351
by: swathichavalla | last post by:
Problem description: Clients working with an apple computer with the safari browser are experiencing problems with brokerage orders. When the client wants to enter a stock order, the order entry screen displays 31-12-2005 as date. When the client presses the OK button, it states that the entered date is wrong. When the client changes the date to 31-12-2006, the application says the date is wrong. If he uses the firefox browser he has no...
0
8375
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8290
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8815
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8707
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7306
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4149
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2714
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.