Fix jQuery #13980: don't use frameElement property

Don't know how to test this, any ideas?
/cc @timmywil @gibson042