473,503 Members | 3,308 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Characters "/*/*/" in CSS? Is it another browser sniffer?

Another thread
<http://groups.google.co.uk/group/alt.www.webmaster/msg/
e7d125cdff1ae2a2>
linked to an accessibility checker at this site
<http://wave.webaim.org/index.jsp>

In their own (unimpressive) code I saw lots of inlined CSS, all
beginning with the sequence "/*/*/"

<div style="/*/*/background-color:#990000;">
<h1 style="/*/*/text-align:center;margin:
0px;color:#ffffff;">WAVE 3.0 Accessibility Tool</h1>
</div>

Now what's this about? Is it some sort of dodgy-browser escaping that
exploits an obscure CSS parser bug? It's a new one on me if it is.
Crazy CMS output? Or just clueless coders?

Jul 16 '07 #1
4 1928
On 2007-07-16, Andy Dingley <di*****@codesmiths.comwrote:
Another thread
<http://groups.google.co.uk/group/alt.www.webmaster/msg/
e7d125cdff1ae2a2>
linked to an accessibility checker at this site
<http://wave.webaim.org/index.jsp>

In their own (unimpressive) code I saw lots of inlined CSS, all
beginning with the sequence "/*/*/"

<div style="/*/*/background-color:#990000;">
<h1 style="/*/*/text-align:center;margin:
0px;color:#ffffff;">WAVE 3.0 Accessibility Tool</h1>
</div>

Now what's this about? Is it some sort of dodgy-browser escaping that
exploits an obscure CSS parser bug? It's a new one on me if it is.
Crazy CMS output? Or just clueless coders?
I've seen something similar in the styles of http://www.python.org before.

It's still there, here it is:

#left-hand-navigation
{
/*/*//*/
position:absolute;
left:5px;
top:10em;
z-index:1;
font-family: Arial, Helvetica, sans-serif;
font-size:0.75em;
/* */
}

I think the idea is that everything in that selector block should be
considered commented out, but NS4 treats the first and last lines as
complete comments so you get the properties.

If you understand leaning-toothpick, this is what browsers are supposed
to do:

\/\*[^*]*\*+([^/*][^*]*\*+)*\/ /* ignore comments */
{s}+\/\*[^*]*\*+([^/*][^*]*\*+)*\/ {unput(’ ’); /*replace by space*/}
Jul 16 '07 #2
Andy Dingley wrote:
>
<div style="/*/*/background-color:#990000;">

Now what's this about? Is it some sort of dodgy-browser escaping
http://centricle.com/ref/css/filters/

--
Berg
Jul 16 '07 #3
Andy Dingley wrote:
In their own (unimpressive) code I saw lots of inlined CSS, all
beginning with the sequence "/*/*/"
<div style="/*/*/background-color:#990000;">
<h1 style="/*/*/text-align:center;margin:
0px;color:#ffffff;">WAVE 3.0 Accessibility Tool</h1>
</div>
I can't remember the details, but I read somewhere about
how different browsers parse comments. I think some treat
the above as two comment openers and then a slash, then
some text, and then a slash and the closing of two nested comments.

Others (and I think this is by-the-book even though it makes
life difficult for coders) interpret it as
one opening comment, a slash, one comment-closer, some
UNcommented text, then comment-opener, slash, comment-closer
Now what's this about? Is it some sort of dodgy-browser escaping that
exploits an obscure CSS parser bug? It's a new one on me if it is.
Crazy CMS output? Or just clueless coders?
I'd be wary of anyone that claims to really understand accessibility
and yet makes it S.O.P. to bury CSS inside of HTML tags.
--
Wes Groleau
Can we afford to be relevant?
http://www.cetesol.org/stevick.html
Jul 17 '07 #4
On 2007/07/16 06:59 (GMT-0700) Andy Dingley apparently typed:
Another thread linked to an accessibility checker at this site
<http://wave.webaim.org/index.jsp>
In their own (unimpressive) code I saw lots of inlined CSS, all
beginning with the sequence "/*/*/"
<div style="/*/*/background-color:#990000;">
<h1 style="/*/*/text-align:center;margin:
0px;color:#ffffff;">WAVE 3.0 Accessibility Tool</h1>
</div>
Now what's this about? Is it some sort of dodgy-browser escaping that
exploits an obscure CSS parser bug? It's a new one on me if it is.
Crazy CMS output? Or just clueless coders?
Looks directed at NN4: http://css-discuss.incutio.com/?page=CaioHack
--
"All scripture is God-breathed and is useful for teaching,
rebuking, correcting, and training in righteoousness."
2 Timothy 3:16 NIV

Team OS/2 ** Reg. Linux User #211409

Felix Miata *** http://mrmazda.no-ip.com/
Jul 17 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3393
by: _max_ | last post by:
HttpWebRequest() allows 'pseudo-browser' simulation to intercept incoming HTML for 'screen scraping', etc. But how would you do the opposite: Programmatically find out what a browser is sending...
4
1368
by: _max_ | last post by:
HttpWebRequest() allows 'pseudo-browser' simulation to intercept incoming HTML for 'screen scraping', etc. But how would you do the opposite: Programmatically find out what a browser is sending...
5
3156
by: David Baker | last post by:
Hi all I am very new to ASP.Net. I am trying to create a sniffer for our program. We want our users to click our sniffer and hopefully the sniffer will check their computer against our...
3
2523
by: Christian Nunciato | last post by:
Hi all: I've read through the various related posts in this forum, but without any success as yet. I've got an ASP.NET application built in VS.NET 2003, and I'm trying to get the Armenian...
0
7192
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7064
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7315
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6974
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7445
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5559
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3158
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1492
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
369
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.