[WSG] Multiple comments to filter non Gecko-based browsers
Hi, I'm trying to use nested comments as a filter for non gecko-based browsers. This is my markup: !-- style type=text/css some rules here /style !-- Gecko-based browsers get it right; they see the nested comment and ignore the inner block. But the Validator gives me a warning about this (multiple comments in comment declaration). The thing that bothers me is that WDG [1] says that !-- hello-- is a legal comment, but my guess is that the Validator would choke on this too. Isn't confusing? [1] http://www.htmlhelp.com/reference/wilbur/misc/comment.html Thierry | http://www.TJKDesign.com ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Multiple comments to filter non Gecko-based browsers
Hi Thierry I guess the first question would be.. what are you trying to do and is their another solution? Not sure what you mean by filter for non Gecko browsers? Cheers James On 4/14/05, Thierry Koblentz [EMAIL PROTECTED] wrote: Hi, I'm trying to use nested comments as a filter for non gecko-based browsers. This is my markup: !-- style type=text/css some rules here /style !-- Gecko-based browsers get it right; they see the nested comment and ignore the inner block. But the Validator gives me a warning about this (multiple comments in comment declaration). The thing that bothers me is that WDG [1] says that !-- hello-- is a legal comment, but my guess is that the Validator would choke on this too. Isn't confusing? [1] http://www.htmlhelp.com/reference/wilbur/misc/comment.html Thierry | http://www.TJKDesign.com ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Multiple comments to filter non Gecko-based browsers
I guess the first question would be.. what are you trying to do and is their another solution? Not sure what you mean by filter for non Gecko browsers? Hi James, I found out that non Gecko-based browsers see the inner block (between the comments), so I can use this markup to feed them without styling elements in FF, etc. Honnestly, I didn't find a real need for that yet, but I'm frustrated with the info I found so far re: multiple comments. It's very inconsistent and I hoped that one of you guys could give me a definitive answer on this. Regards, Thierry | http://www.TJKDesign.com ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **