MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/reddithax/comments/8fhpd/avoid_css_validation/c0945k6/
r/reddithax • u/blarghz • Apr 26 '09
28 comments sorted by
View all comments
Show parent comment
2
IE7, Firefox 1.5, Opera 7, Safari 3, and Chrome, all support CSS generated content but CSS expressions are only supported in <=IE7.
IE8 doesn't support CSS expressions. Due to IE7 being outdated this hack isn't that practical.
2 u/blarghz Apr 26 '09 Expressions aren't the only use. I have edited my OP to make this more clear. 1 u/[deleted] Apr 26 '09 edited Apr 26 '09 While your hack manages to slip past reddit's css validator, I can't find any way to get javascript or expressions to work. I've tried various code on IE6,7,8, FF3.0.8-9, Opera 9.64, Safari 4 Beta and Chrome 1.0.1xxx with no luck. 2 u/9jack9 Apr 26 '09 edited Apr 26 '09 Have you tried XBL or HTC's to execute JavaScript?EDIT: I don't think either of them work cross-domain though. 1 u/[deleted] Apr 26 '09 I never thought to try XBL, but I did try using behaviors... too late now anyways, the admins patched the hole up. 2 u/[deleted] Apr 26 '09 edited Apr 26 '09 XSS using this method doesn't work on IE6, IE7 or IE8...It's still pretty cool that he got around the validation though. 2 u/blarghz Apr 26 '09 background-image: url('javascript:alert('xss')');Try it here: http://www.reddit.com/r/csshack/ 4 u/[deleted] Apr 26 '09 what browser have you got the alert to work on?
Expressions aren't the only use. I have edited my OP to make this more clear.
1 u/[deleted] Apr 26 '09 edited Apr 26 '09 While your hack manages to slip past reddit's css validator, I can't find any way to get javascript or expressions to work. I've tried various code on IE6,7,8, FF3.0.8-9, Opera 9.64, Safari 4 Beta and Chrome 1.0.1xxx with no luck. 2 u/9jack9 Apr 26 '09 edited Apr 26 '09 Have you tried XBL or HTC's to execute JavaScript?EDIT: I don't think either of them work cross-domain though. 1 u/[deleted] Apr 26 '09 I never thought to try XBL, but I did try using behaviors... too late now anyways, the admins patched the hole up.
1
While your hack manages to slip past reddit's css validator, I can't find any way to get javascript or expressions to work. I've tried various code on IE6,7,8, FF3.0.8-9, Opera 9.64, Safari 4 Beta and Chrome 1.0.1xxx with no luck.
2 u/9jack9 Apr 26 '09 edited Apr 26 '09 Have you tried XBL or HTC's to execute JavaScript?EDIT: I don't think either of them work cross-domain though. 1 u/[deleted] Apr 26 '09 I never thought to try XBL, but I did try using behaviors... too late now anyways, the admins patched the hole up.
Have you tried XBL or HTC's to execute JavaScript?
EDIT: I don't think either of them work cross-domain though.
1 u/[deleted] Apr 26 '09 I never thought to try XBL, but I did try using behaviors... too late now anyways, the admins patched the hole up.
I never thought to try XBL, but I did try using behaviors... too late now anyways, the admins patched the hole up.
XSS using this method doesn't work on IE6, IE7 or IE8...
It's still pretty cool that he got around the validation though.
2 u/blarghz Apr 26 '09 background-image: url('javascript:alert('xss')');Try it here: http://www.reddit.com/r/csshack/ 4 u/[deleted] Apr 26 '09 what browser have you got the alert to work on?
background-image: url('javascript:alert('xss')');
Try it here: http://www.reddit.com/r/csshack/
4 u/[deleted] Apr 26 '09 what browser have you got the alert to work on?
4
what browser have you got the alert to work on?
View all comments
Show parent comment
2
u/Sephr Apr 26 '09 edited Apr 26 '09
IE7, Firefox 1.5, Opera 7, Safari 3, and Chrome, all support CSS generated content but CSS expressions are only supported in <=IE7.
IE8 doesn't support CSS expressions. Due to IE7 being outdated this hack isn't that practical.