473,799 Members | 3,185 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/
e7d125cdff1ae2a 2>
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;ma rgin:
0px;color:#ffff ff;">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 1939
On 2007-07-16, Andy Dingley <di*****@codesm iths.comwrote:
Another thread
<http://groups.google.co.uk/group/alt.www.webmaster/msg/
e7d125cdff1ae2a 2>
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;ma rgin:
0px;color:#ffff ff;">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:absolu te;
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;ma rgin:
0px;color:#ffff ff;">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;ma rgin:
0px;color:#ffff ff;">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
3404
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 to a website? (Probably via POST) I'd imagine this is done often, so maybe I'm just missing some terminology for doing the search. It seems you'd also have to simulate cookies to do this right. Is code available?
4
1387
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 to a website? (Probably via POST) I'd imagine this is done often, so maybe I'm just missing some terminology for doing the search. It seems you'd also have to simulate cookies to do this right. Is code available?
5
3179
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 requirements. I would like to ask experts like you to see which items are actually doable with ASP.Net. Below I listed all of the items we are looking for but I can understand if some of the items are impossible to check/sniff. We would like to create a sniffer...
3
2545
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 Unicode characters I type into the textboxes of my ASPX Web pages (via IE6) to post back to the server and get saved in my SQL database as Armenian Unicode characters. Not having much luck, though -- all I get back are question marks.
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10470
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9067
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7561
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5459
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5583
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4135
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 we have to send another system
2
3751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.