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>").