473,387 Members | 1,529 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 1847
"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
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...
18
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)...
0
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...
6
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...
9
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...
3
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
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...
4
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,...
0
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 :...
1
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
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,...
0
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...
0
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,...

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.