Adobe 38040334 - Dreamweaver CS3 User Manual page 102

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Property or method
getElementsByAttributeName(attrName)
hasChildNodes()
hasTranslatedAttributes()
Properties and methods of text objects
Each contiguous block of text in an HTML document (for example, the text within a
JavaScript object. Text objects never have children. The following table describes the properties and methods of text
objects that are taken from DOM Level 1 and used in Dreamweaver. A bullet (•) marks read-only properties.
Property or method
nodeType •
parentNode •
child Nodes •
previousSibling •
nextSibling •
data
hasChildNodes()
Properties and methods of comment objects
A JavaScript object represents each HTML comment. The following table details the properties and methods of
comment objects that are taken from DOM Level 1 and are used in Dreamweaver. A bullet (•) marks read-only
properties.
Property or method
nodeType •
parentNode •
childNodes •
previousSibling •
nextSibling •
Return value
A
that can be used to step through elements with an attribute
NodeList
attrName
(for example, all elements with the attribute "for"). Not part of
DOM Level 1 or 2.
A Boolean value that indicates whether the tag has any children.
A Boolean value that indicates whether the tag has any translated attributes.
(This property is not included in DOM Level 1; it was added to Dreamweaver
3 to support attribute translation.)
Return value
Node.TEXT_NODE
The parent tag
An empty
NodeList
The sibling node immediately prior to this one. For example, in the code
, the
tag has three child nodes (text node, element node, text node).
/>blah</p>
<p>
The
previousSibling
of the third child is the
of the first child is
.
null
The sibling node immediately following this one. For example, in the code
, the
/>blah</p>
nextSibling
of the third child is
nextSibling
The actual text string. Entities in the text are represented as a single character (for example,
the text
Joseph &amp; I
is returned as
false
Return value
Node.COMMENT_NODE
The parent tag
An empty
array
NodeList
The sibling node immediately prior to this one.
The sibling node immediately following this one.
tag) is represented by a
p
<br />
tag; the
previousSibling
of the first child of the
tag is the
p
.
null
Joseph & I
).
DREAMWEAVER CS3
96
Extending Dreamweaver
<p>blah<br
<p>blah<br
tag; the
<br />

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents