Implement the iframe srcdoc attribute, which should operate similarly to the src attribute but with higher priority, without the need to initiate a fetch request.
Also, I have fixed several bugs:
When remove the src or srcdoc attributes, the iframe should be reloaded.
For non-cross-domain iframes, after being connected to the Document, their contentWindow’s parent/top properties should not be null.
Implement the iframe srcdoc attribute, which should operate similarly to the src attribute but with higher priority, without the need to initiate a fetch request.
Also, I have fixed several bugs:
References: