Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

Next Page > Hide TOC

DOMDocument Additions Reference

Inherits from
DOMNode : DOMObject : WebScriptObject : NSObject
Conforms to
DOMEventTarget (DOMNode)
NSCopying (DOMObject)
NSObject (NSObject)
Framework
/System/Library/Frameworks/WebKit.framework
Availability
Available in Mac OS X v10.3.9 and later.
Declared in
WebDOMOperations.h
Companion guides

Overview

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.

Tasks

Getting the Web Frame

Constructing URLs

Getting CSS Rules

Instance Methods

getMatchedCSSRules:

Returns the CSS rules for a given DOM element.

- (DOMCSSRuleList *)getMatchedCSSRules:(DOMElement *)elt :(NSString *)pseudoElt

Availability

URLWithAttributeString:

Constructs a URL given an attribute string.

- (NSURL *)URLWithAttributeString:(NSString *)string

Discussion

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.

Availability
Declared In
WebDOMOperations.h

webFrame

Returns the web frame of the DOM document.

- (WebFrame *)webFrame

Availability
Declared In
WebDOMOperations.h

Next Page > Hide TOC


Last updated: 2006-07-31




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice