On Apr 30, 2:22 am, Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Jonathan wrote: > > I have a question about BindToTree() in nsHTMLImageElement. > > What is it trying to do? > > Handle the situation when the bind changes the image's base URI, as the > comments > say.... > > > And under what situation that the 'nsIDocument* aDocument' is null. > > When the image is being added as a child of a node that's not in a document at > the moment. > > -Boris
Than you Boris. But when will a node not in a document? Isn't all nodes should always have a document? For example: If I have <html><body> test <img src="http://...."> test </body><html> Since all html elment are inside a html document, should all html elements will be created after the document is created? And hence a node should always have a document? Thank you for any clarification. _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

