a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Hosting from $3.99 per month!

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions. dd

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

<noscript> tags and the W3C validator

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> <noscript> tags and the W3C validator
Page: [1]
 
womble

 

Posts: 5721
Joined: 3/14/2005
From: Living on the edge
Status: offline

 
<noscript> tags and the W3C validator - 9/7/2005 15:35:24   
Something strange appears to be going on. I have a xhtml strict page which validated perfectly, until I put <noscript> tags in to satisfy accessibility concerns. I've taken the <noscript> tags out and the page validates again, but with it in it just refuses to validate. Any ideas anyone?

_____________________________

~~ "A cruel god ain't no god at all" ~~
~~ Erase hate. Practice love. ~~
:)
jaybee

 

Posts: 14210
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: <noscript> tags and the W3C validator - 9/7/2005 16:38:52   
I have <noscript> tags that validate transitional


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">


<script type="text/javascript" src="http://www.makepovertyhistory.org/whiteband_small_right.js">
</script>
<noscript><a href="http://www.makepovertyhistory.org/" title="go to the make poverty history web site">
http://www.makepovertyhistory.org</a></noscript>


quote:

Date and Time: 9/7/2005 4:29:40 PM
Passed Automated Verification


< Message edited by jaybee -- 9/7/2005 16:44:44 >


_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to womble)
womble

 

Posts: 5721
Joined: 3/14/2005
From: Living on the edge
Status: offline

 
RE: <noscript> tags and the W3C validator - 9/7/2005 16:47:38   
That's what I thought, but I can't see what. If I comment them out it validates fine.

I've been having a hunt round and it seems a few people elsewhere have been having the same problem. Someone suggested a fix by putting them in a <div>, but I've tried that and still not validating...:)

This is the page I'm having problems on (not tried on any of the others yet)

_____________________________

~~ "A cruel god ain't no god at all" ~~
~~ Erase hate. Practice love. ~~
:)

(in reply to jaybee)
Tailslide

 

Posts: 6370
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: <noscript> tags and the W3C validator - 9/7/2005 17:41:27   
Which one is giving you problems (or is it all of them?). Far as I remember you can't use <noscript> in the <head> section though.

I don't use <noscript>s - too many problems with them. I know there's a school of thought that every script should have a <noscript> but I don't think it's always necessary. If the Javascript concerned is affecting accessibility then a <noscript> might be a good idea - a server-side alternative is better though if possible. If it doesn't affect accessibility then I wouldn't bother.

Because I've not got around to working out the server-side stylesheet switcher yet, I've used document.write to write the toggles for the text size stylesheet switcher on my site - no Javascript - no switcher. There is, however an explanation on the accessibility page about how they can increase the text in their browser.

I've also now steered towards scripts that will "fail-safe" with JS off - so that for instance in a section visibility toggle script - all the sections are visible when JS is switched off - no need for a <noscript>.

Edit: This is a quote from the Webaim site regarding a cosmetic Javascript effect:

"In this example, there is no important content or functionality introduced by the JavaScript. The swapping of images is purely cosmetic..... No additional accessibility techniques are required."


< Message edited by Tailslide -- 9/7/2005 18:05:08 >


_____________________________

Little Blue Plane Web Design | Land Rover project

:)

(in reply to womble)
womble

 

Posts: 5721
Joined: 3/14/2005
From: Living on the edge
Status: offline

 
RE: <noscript> tags and the W3C validator - 9/7/2005 17:58:40   
:)
I've just realised two of them were in the <head> section (this is what happens if you stare at the screen all day) :)

The other one, with all the tweaking I'd done, I'd got an extra </p> after the no-script. Taken out and all validates now.
Thanks.

/sneak off quietly feeling very silly...

_____________________________

~~ "A cruel god ain't no god at all" ~~
~~ Erase hate. Practice love. ~~
:)

(in reply to Tailslide)
jaybee

 

Posts: 14210
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: <noscript> tags and the W3C validator - 9/8/2005 2:41:22   
quote:

/sneak off quietly feeling very silly...


No comment :)

Psssst. Always post a url, that way we can see the problem immediately rather than having to guess. :)

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to womble)
Page:   [1]
OutFront Discoveries

All Forums >> Web Development >> General Web Development >> <noscript> tags and the W3C validator
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts