| Inherits from | DOMNode : DOMObject : WebScriptObject : NSObject |
| Conforms to | |
| Framework | /System/Library/Frameworks/WebKit.framework |
| Availability | Available in Mac OS X v10.3.9 and later. |
| Declared in | WebDOMOperations.h |
| Companion guides |
Additions to the DOMDocument class facilitate communication between the DOM API and WebKit and help convert DOM URL element attributes into web-friendly NSURL objects.
Constructs a URL given an attribute string.
- (NSURL *)URLWithAttributeString:(NSString *)string
The HTML attribute string to convert.
An NSURL object containing an absolute URL derived from the specified attribute string.
This method constructs a URL given the string value of an element attribute. Examples include the href attribute of a DOMHTMLAnchorElement object, or the src attribute of a DOMHTMLImageElement object. This method only applies to attributes that refer to URLs.
This method is similar to URLWithString: in the NSURL class, except that URLWithAttributeString: handles relative URLs automatically based on the current document’s location.
WebDOMOperations.hReturns the web frame associated with the DOM document.
- (WebFrame *)webFrame
The web frame object for the receiver.
WebDOMOperations.h© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-08-19)