In the spec:
A browsing context that is not a nested browsing context has no parent browsing context, and is the top-level browsing context of all the browsing contexts for which it is an ancestor browsing context.
I think I can't understand what it means very well,could you give some little example?Thanks a lot.
Consider this document:
<!-- a.html -->
<!doctype html>
<title>A</title>
<p>A</p>
<iframe src="b.html"></iframe>
<button onclick="window.open('c.html')">open</button>
When clicking the button, there will be three browsing contexts:
| A |
| +-----------------------+ |
| | B | |
| | | |
| +-----------------------+ ( open ) |
| |
| +-------------------------------------+
| | C |
| | |
+---------| |
| |
| |
+-------------------------------------+
Does that help? If so, we can maybe convert the diagram to SVG and put this into the standard.
@zcorpan Thanks for your clarification!It does help for me.
Yes, I believe put this diagram into the standard will be helpful for others.In addition,I think you can simplify the words I mention above in this issue because it's a liitle huge and complex,or you can put this diagram into the standard and divide the sentence to many pieces and explain each the corresponding piece by using some words with the diagram.
For example:
In the spec:
A browsing context that is not a nested browsing context has no parent browsing context......
Then we can say something in the spec like A and C both are not a nested browsing and both haven't parent browsing context.......
This is just my thought,hope it would be helpful.
nice
Most helpful comment
Consider this document:
When clicking the button, there will be three browsing contexts:
Does that help? If so, we can maybe convert the diagram to SVG and put this into the standard.