(informal protocol)
| Inherits from | DOMDocument : DOMNode : DOMObject : WebScriptObject : NSObject |
| Conforms to | |
| Framework | /System/Library/Frameworks/WebKit.framework |
| Availability | Available in Mac OS X v10.5 and later. |
| Declared in | DOMExtensions.h |
| Companion guides |
Creates a document fragment containing the given HTML markup.
- (DOMDocumentFragment *)createDocumentFragmentWithMarkupString:(NSString *)markupString baseURL:(NSURL *)baseURL
The HTML content to parse into a DOM tree.
The URI from which the content originated. Used for interpreting relative URLs.
A DOMDocumentFragment derived from the original markup string.
This is a convenience method for the createDocumentFragment method in DOMDocument. It creates a fragment that has the HTML markup parsed into child nodes of the fragment using the baseURL to resolve any relative paths for images or other resources.
DOMExtensions.hCreates a document fragment containing the given text.
- (DOMDocumentFragment *)createDocumentFragmentWithText:(NSString *)text
The text to convert.
A DOMDocumentFragment object derived from the source text.
This is a convenience method for the createDocumentFragment method in DOMDocument. This method creates a fragment that contains the supplied plain text.
DOMExtensions.hLast updated: 2009-08-19