-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
About the term "top-level-browsing-context" #2322
Comments
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:
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:
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 |
@zcorpan could you clear up my misunderstanding, please? The term of document-tree child browsing context is defined by the spec in the following way:
In the other hand, in a document tree means
So this concept is concerned with DOM tree and its elements. Is it accurate to say that child's container, which is a broswing context, is a DOM element (node) and it is in a node tree? |
https://html.spec.whatwg.org/#bc-container "The container of a browsing context bc is the browsing context container whose nested browsing context is bc, or null if there is no such element." "Certain elements (for example, iframe elements) can instantiate further browsing contexts. These elements are called browsing context containers." The container is never a browsing context. The container is a iframe/embed/object that has a browsing context, or it's null if the browsing context isn't nested. |
In the spec:
I think I can't understand what it means very well,could you give some little example?Thanks a lot.
The text was updated successfully, but these errors were encountered: