According HTML5 official specs, they state:
When an iframe element is removed from a document, the user agent must discard the nested browsing context, if any
So I wonder if the browsing context is also discarded if I change the src or srcDoc attributes.
Specs also mention about it:
When the user agent is to process the iframe attributes, it must run the first appropriate steps from the following list
But it is not clear to me if setting/changing this attributes will discard the current browsing context.