Back to index
The fragment sink allows a client to parse a fragment of sink, possibly surrounded in context. More...
|NS_IMETHOD||GetFragment (nsIDOMDocumentFragment **aFragment)=0|
|This method is used to obtain the fragment created by a fragment content sink. |
|NS_IMETHOD||SetTargetDocument (nsIDocument *aDocument)=0|
|This method is used to set the target document for this fragment sink. |
|This method is used to indicate to the sink that we're done building the context and should start paying attention to the incoming content. |
|This method is used to indicate to the sink that we're done building The real content. |
|This method is a total hack to help with parsing fragments. |
The fragment sink allows a client to parse a fragment of sink, possibly surrounded in context.
Also see nsIParser::ParseFragment(). Note: once you've parsed a fragment, the fragment sink must be re-set on the parser in order to parse another fragment.
|NS_IMETHOD nsIFragmentContentSink::GetFragment||(||nsIDOMDocumentFragment **||aFragment||)||
This method is a total hack to help with parsing fragments.
It is called to tell the fragment sink that a container from the context will be delivered after the call to WillBuildContent(). This is only relevent for HTML fragments that use nsHTMLTokenizer/CNavDTD.
This method is used to set the target document for this fragment sink.
This document's nodeinfo manager will be used to create the content objects. This MUST be called before the sink is used.
|aDocument||the document the new nodes will belong to (should not be null)|