As the title states, these two functions are now deprecated with recommended replacements. However, as least with switchToFrame, the replacement function was only added in v9 so we can't use it without breaking older versions. One strategy would be to feature detect the switchFrame function and use it if available, otherwise fallback to switchToFrame.
As the title states, these two functions are now deprecated with recommended replacements. However, as least with
switchToFrame, the replacement function was only added in v9 so we can't use it without breaking older versions. One strategy would be to feature detect theswitchFramefunction and use it if available, otherwise fallback toswitchToFrame.