johnny190 — 2013-12-05T13:21:12-05:00 — #1
I'm using noscript for a non-js version. The XHTML 1.0 validator doesn't seem to like the style element within <noscript>
Are there any workarounds for this?
felgall — 2013-12-05T13:33:31-05:00 — #2
- Styles are only allowed in the <head>
- <noscript was only allowed in the body. HTML 5 allows it anywhere but it hasn't been necessary to use it at all since Netscape 4.
johnny190 — 2013-12-05T16:02:47-05:00 — #3
Thanks for the response. We are soon moving to HTML 5 where noscript will be allowed in <head>.
I'm just wondering if there is some kind of "hack" or workaround to make it compliant with XHTML 1.0 Strict, without modifying the code very much.
paul_wilkins — 2013-12-05T22:51:07-05:00 — #4
Even though you are moving soon to HTML 5, are you going to restrict access from all browsers that don't handle HTML 5? It is normally a better practice to ensure that your techniques are widely accessible.
felgall — 2013-12-06T00:48:41-05:00 — #5
Just because they allow an obsolete tag to be used anywhere doesn't mean you should use it.