- From: Allan Smith <webmanager@telfordsteamrailway.co.uk>
- Date: Mon, 14 Jun 2004 15:46:53 +0100
- To: "'Beton, Richard'" <richard.beton@roke.co.uk>, www-validator@w3.org
Yes and No No - because it works as is Yes - if you intend to validate your page against WCAG, Bobby or other accessibility conformance standard Then you will find the page will not validate - give it a try As soon as I added 'onclick' to one of my pages validation was lost. However - I do not have an answer to your 'target' issue - my onlick was for a completely different reason I wanted 2 different URLs for the href - one for none-Jscript and one for Jscript enabled I got round this by setting the value in the href to the non Jscript value and then using an onload script which changed the href value - obviously only having any effect when Jscript is enabled Thus I had the same effect without onclick and WCAG / Bobby validation was maintained. Allan -----Original Message----- From: www-validator-request@w3.org [mailto:www-validator-request@w3.org] On Behalf Of Beton, Richard Sent: 14 June 2004 15:30 To: Allan Smith; www-validator@w3.org Subject: Re: target in xhtml11 Allan Smith wrote: >Re option 2 - javascript >The suggested code obviously works > >But then creates a problem when validating with WCAG / Bobby etc along the >lines of >... Find a way of doing this that does not use a mouse.. (my words) >and adding an 'onkey' doesn't stop the validation fail > > I'm sorry Allan, I'm not sure I understand your point. The happy consequence of using the href attribute with javascript is that it remains accessible, whether or not javascript is available/enabled. <a href="http://www.w3.org" onclick="return wOpen(this, '_blank')">W3.org</a> Are you suggesting I need to add something else to improve it further? Rick -- Visit our website at www.roke.co.uk Roke Manor Research Ltd, Roke Manor, Romsey, Hampshire SO51 0ZN, UK. The information contained in this e-mail and any attachments is confidential to Roke Manor Research Ltd and must not be passed to any third party without permission. This communication is for information only and shall not create or change any contractual relationship.
Received on Monday, 14 June 2004 10:47:29 UTC