tag:blogger.com,1999:blog-34454975.post4355821165780953411..comments2023-06-28T16:58:41.189+02:00Comments on Web Reflection: noscript tag behaviour and head conflictsAndrea Giammarchihttp://www.blogger.com/profile/16277820774810688474noreply@blogger.comBlogger15125tag:blogger.com,1999:blog-34454975.post-70782636044904159972011-11-30T16:49:43.745+01:002011-11-30T16:49:43.745+01:00I currently use this:
<style type="text/cs...I currently use this:<br /><style type="text/css" id="noscript"><br /> @import "./css/noscript.css";<br /></style><br /><br />in combination with: <br />$(function() {<br /> $("#noscript").remove();<br />});<br /><br />with works great :DThumbnailhttp://www.jeroendj.nlnoreply@blogger.comtag:blogger.com,1999:blog-34454975.post-56653567694308476012010-11-29T00:23:14.660+01:002010-11-29T00:23:14.660+01:00Idea: I have few css for different screen res. So ...Idea: I have few css for different screen res. So I can first link to default «non-js-browser» css, then js valid one for override. <br /><br />Is I'm right or where I am?Head [r]https://www.blogger.com/profile/18167066138460518729noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-42840537756239075322010-09-20T13:16:46.188+02:002010-09-20T13:16:46.188+02:00Hello! After getting help from your comments I tho...Hello! After getting help from your comments I thought I would share with you the simple trick I used. My problem was that I needed to provide a few alternative styles for when the website is viewed without javascript. Embedding <i>style</i> in an <i>object</i> helped for W3C validation but embedding <i>style</i> in <i>noscript</i> is illegal as well. Therefore I took advantage of the attribute "title" of <i>style</i> tags, which allows me to retrieve it very easily and as first thing, then simply remove it with javascript.Laetinoreply@blogger.comtag:blogger.com,1999:blog-34454975.post-1495460562540094112010-04-17T11:48:35.200+02:002010-04-17T11:48:35.200+02:00Chad, that is a hack, not a real solution to the i...Chad, that is a hack, not a real solution to the intrinsic problem :(Andrea Giammarchihttps://www.blogger.com/profile/16277820774810688474noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-2898889505094014022010-04-16T00:09:13.151+02:002010-04-16T00:09:13.151+02:00Placing object around the noscript tag allows it t...Placing object around the noscript tag allows it to validate - thank you for the suggestion.Chad Musgrovehttp://www.proadinsight.comnoreply@blogger.comtag:blogger.com,1999:blog-34454975.post-57749047042635720222009-09-09T05:00:00.274+02:002009-09-09T05:00:00.274+02:00Fortunately for me, a commented STYLE block inside...Fortunately for me, a commented STYLE block inside an OBJECT inside a NOSCRIPT inside a HEAD seems to work in XHTML and validates:<br /><br /><object><script src="scripts/css_browser_selector.js" type="text/javascript"></script><br /><noscript><!-- <style type="text/css">.gallery li a:hover img.polaroid { visibility:visible !important; }</style> --></noscript></object><br /><br />Sorry to hear external style sheets don't seem to work. I'd be tempted to try @import in a commented STYLE BLOCK as above when I have a minute.digibeehttp://www.digibee.netnoreply@blogger.comtag:blogger.com,1999:blog-34454975.post-67892474132168325442009-08-03T20:06:21.259+02:002009-08-03T20:06:21.259+02:00You can put the NOSCRIPT tag in the head section o...You can put the NOSCRIPT tag in the head section of xhtml if you put it in a OBJECT tag but after that it still does not accept external css as validAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-34454975.post-83400931373388466062009-06-24T15:14:39.016+02:002009-06-24T15:14:39.016+02:00The noscript tag IS VALID in head tag. The validat...The noscript tag IS VALID in head tag. The validator is buggy. There is not a single word in standard specs that would say that noscript is invalid, so every browser do support it in head tag. See Document Head section of HTML 4.01 Document Type definition, where noscript is explicitly mentioned in head tag entity - http://www.w3.org/TR/html4/strict.dtd<br /><br />So, use noscript nested in head tag freelyAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-34454975.post-37328316136346556042009-04-03T04:30:00.000+02:002009-04-03T04:30:00.000+02:00I am in a catch 22 .. I want to direct user to a n...I am in a catch 22 .. I want to direct user to a new page by adding refresh and new url in meta tag in noscript in head. Now this is not valid XHTML and if i add this in body, i cant have meta .. So what do i do :(Gaurav Talwarnoreply@blogger.comtag:blogger.com,1999:blog-34454975.post-78642282453187771882009-03-11T17:23:00.000+01:002009-03-11T17:23:00.000+01:00here is a fix. hope it works for you.fix for noscr...here is a fix. hope it works for you.<BR/><BR/><A HREF="http://lists.evolt.org/archive/Week-of-Mon-20020429/111421.html" REL="nofollow">fix for noscript in html head tag</A>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-34454975.post-12626710442881144342009-03-11T17:14:00.000+01:002009-03-11T17:14:00.000+01:00I agree noscript should be valid in head, but i ha...I agree noscript should be valid in head, but i have sacrificed this in order to maintain valid htmlAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-34454975.post-21596859096247050212008-05-17T12:17:00.000+02:002008-05-17T12:17:00.000+02:00Indeed the noscript should be valid inside the hea...Indeed the noscript should be valid inside the head. <BR/>A workaround is to include an stylesheet in the head by default, and let an script remove it. Though this won't work in every occasion.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-34454975.post-50415876936034224952008-04-14T15:53:00.000+02:002008-04-14T15:53:00.000+02:00Yes I have to agree this is as fatheaded a decisio...Yes I have to agree this is as fatheaded a decision as I have encountered so far.mcmlxxiihttps://www.blogger.com/profile/07280207958741443587noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-53304596048418793582008-02-11T14:25:00.000+01:002008-02-11T14:25:00.000+01:00I agree with you, I also noticed that noscript tag...I agree with you, I also noticed that noscript tags does not validate anymore in the head, which is quite annoying, I understand that it shouldn't validate in p tags or etc. but in head? :( I don't see any reason..Quatruxhttps://www.blogger.com/profile/11619237314430465347noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-51627353256883674312007-12-26T16:06:00.000+01:002007-12-26T16:06:00.000+01:00Totally agree. NOSCRIPT should be valid inside the...Totally agree. NOSCRIPT should be valid inside the HEAD section. Currently I'm implementing NOSCRIPT in the head to define different style sheets for users with or without javascript, even though it doesn't validate.Anonymousnoreply@blogger.com