Ooohw, sometimes (read: mostly) I hate different browsers, different engines and frameworks that says that they are browser compatible. I’ve struggled with a bug for a really long time and now I’ve found the problem. When you use the Mootools’ 1.2 function getStyle you may want to take notice of the following bug:
The Mootools 1.2 function
alert($('element').getStyle('background-image'));
Some browsers may return different values. Firefox returnes the relative path like: images/example.jpg but Opera, Chrome, Safari AND Internet Explorer returned the full path: http://mywebsite.com/images/example.jpg.
This was very confusing for me so I though I’d post it on the website. Just to make sure you guys don’t make the same mistake again!
Happy Programming!




