As for jQuery - these are the normal limitations of the published jQuery API. With jQuery the code often supports undocumented behaviors (like you are listing). However the jQuery team is free to change behaviors that are not documented at any time.
Closure-compiler warns you if you are not matching what is listed as the API spec (and that definition is community maintained - so not always 100% right).
Here's the relevant specifications: