Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCache the Document title #6713
Open
Cache the Document title #6713
Labels
Comments
|
Cc'ing @nick-thompson who said he was interested in looking into this. |
|
Thanks, I'm on it! |
Sinmce an SVG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Whenever Document.title_changed() is called by the virtual methods on HTMLTitleElement, the tree is traversed to find the first title element in the document and notify the chrome of the change.
The current title element should be cached in Document in a MutNullableHeap<JS<HTMLTitleElement>> field and be updated in bind_from_tree() and unbind_from_tree() in the virtual methods on HTMLTitleElement.