Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Issue: All CSS site validation problems with noscript
Old 10-09-2007, 10:36 AM Issue: All CSS site validation problems with noscript
fitnfree's Avatar
Ultra Talker

Latest Blog Post:
Almond Cookie Recall
Posts: 384
Name: Jeni
Location: Wisconsin, USA
Trades: 0
I changed a JS code I was using to protect e-mail address to one that adds the noscript option -- I want to start doing this wherever I use JavaScript, but on the first site I'm trying this on, I just can't figure out what W3C is trying to tell me when I validate...tried so many different things but either the page gets messing up (http://wicrimestoppers.org) or it just won't validate.

Can anyone help me figure out how to properly fix this and still utilize the noscript? Here's the errors W3C spits out at me:

Line 145, Column 23: document type does not allow element "noscript" here; missing one of "object", "ins", "del", "map", "button" start-tag.
//--></script><noscript><a href='http://w2.syronex.com/jmr/safemailto/#noscript'✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Line 145, Column 80: document type does not allow element "a" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
…syronex.com/jmr/safemailto/#noscript'>Webmaster (using spam protection)</a></✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
fitnfree is offline
Reply With Quote
View Public Profile Visit fitnfree's homepage!
 
 
Register now for full access!
Old 10-09-2007, 03:14 PM Re: Issue: All CSS site validation problems with noscript
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
With XHTML, you need to wrap all your in-line scripts inside of CDATA:
http://www.w3schools.com/xml/xml_cdata.asp

XHTML has no problem with the <noscript> that I can see, I'll have to do some digging on this one.

*** Ok, from what I've found, this is a known issue in the DTD, and NOT the validator. For whatever reason, <script> is seen as inline, whereas <noscript> is seen as block ! Screwy, but that's how it apparently is. So, don't pull your hair out over this one - or change your DOCTYPE to XHTML 1.1 (which isn't supported by IE 6). Me.. I'd ignore this as a validation issue.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Last edited by LadynRed; 10-09-2007 at 03:22 PM..
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 10-09-2007, 06:37 PM Re: Issue: All CSS site validation problems with noscript
fitnfree's Avatar
Ultra Talker

Latest Blog Post:
Almond Cookie Recall
Posts: 384
Name: Jeni
Location: Wisconsin, USA
Trades: 0
Quote:
Me.. I'd ignore this as a validation issue.
I like that answer this time -- lol -- I was tearing my hair out on this one trying everything!

Thanks so much, LNR!!
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
fitnfree is offline
Reply With Quote
View Public Profile Visit fitnfree's homepage!
 
Old 10-11-2007, 03:40 PM Re: Issue: All CSS site validation problems with noscript
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You're welcome
I learned something new too !
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Issue: All CSS site validation problems with noscript
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.40375 seconds with 12 queries