Compression issues with JQuery file in YUI Compressor
It's not YUI per se, it's the jcarouselLite js. "float" is a reserved word. It needs to be put in quotes. EG:
li.css({overflow: "hidden", "float": o.vertical ? "none" : "left"});
Similar issue with your own code. YUI is trying its best to compile that js but will refuse/warn you of code like the one you found. IMO it's doing the right thing.
I've run into this issue a few times with the word "class". If you're using YUI on the server side, it should spit out the line number it's complaining about.
Here's a list of reserved words that seems pretty comprehensive.
http://mattsnider.com/languages/javascript/reserved-words-in-javascript/
The other answers here answer the actual problem (reserved words). But I am using YUI via BundleTransformer and it isn't outputting line numbers, so I was a little lost as to where to look.
To speed up the process of finding the keywords I went looking for another tool.
This online YUI compressor helped me find the problematic property name.