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

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 76123

Trending Articles