Simplify XML checks. +0 bytes.
Update inline docs
Remove internal isNative function. -10 bytes.
Don't use frameElement property. Fixes #13980. Closes gh-214.