Y
yawnmoth
I've been expirementing with CSS expressions and have encountered a
problem that doesn't make a lot of sense to me. After playing around
with it, I've managed to reduce it to the following:
<a href="#" style="margin-top:expression(alert('test'))">test</a>
Basically, the expressions seem to be called over and over again. In
this case, an alert box keeps poping up. It's almost like "while (1)
alert('test')", in fact, save for the fact that, initially, it only
seems to "alert" twice. Then as you move the mouse it alerts more and
then it just seems to get caught in an infinite loop, regardless of
where the mouse is.
Any ideas as to why?
(also, I'm aware that this is probably not the best approach to be
taking to solve the problem I'm, ultimately, trying to solve. I'll
probably investigate other approaches, later, but that doesn't mean
that I can't, in the interim, attempt to figure out why this approach
isn't working when it seems to me like it should)
problem that doesn't make a lot of sense to me. After playing around
with it, I've managed to reduce it to the following:
<a href="#" style="margin-top:expression(alert('test'))">test</a>
Basically, the expressions seem to be called over and over again. In
this case, an alert box keeps poping up. It's almost like "while (1)
alert('test')", in fact, save for the fact that, initially, it only
seems to "alert" twice. Then as you move the mouse it alerts more and
then it just seems to get caught in an infinite loop, regardless of
where the mouse is.
Any ideas as to why?
(also, I'm aware that this is probably not the best approach to be
taking to solve the problem I'm, ultimately, trying to solve. I'll
probably investigate other approaches, later, but that doesn't mean
that I can't, in the interim, attempt to figure out why this approach
isn't working when it seems to me like it should)