Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 72388

Is the web browsing context of an iframe discarded when changing or setting the src or srcDoc attributes?

$
0
0

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.


Viewing all articles
Browse latest Browse all 72388

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>