Elem.islistelement() – Adobe Dreamweaver API Reference CS5 User Manual
Page 350

345
DREAMWEAVER API REFERENCE
Page content
Last updated 8/27/2013
Example
[...]
var DOM = dw.getDocumentDOM();
var floats = issueUtils.getFloats(DOM.body);
var prev = null;
// first float in the document isn't affected, so start
// at 1.
for (var i=1; i < floats.length; i++){
prev = floats[i].previousSibling;
// if the element before the float is a header
if (prev && prev.isHeaderElement()){
// do something
}
}
[...]
elem.isListElement()
Availability
Dreamweaver CS3.
Description
Checks whether the element is one of the following tags: ul, ol, dl.
Arguments
None.
Returns
A Boolean value indicating whether the object is a list element.
Example
[...]
var DOM = dw.getDocumentDOM();
var floats = issueUtils.getFloats(DOM.body);
var prev = null, children = null;
for (var i=0; i < floats.length; i++){
children = floats[i].childNodes;
for (var k=0; k < children.length; k++){
if (children[k].isListElement()){
// do something
}
}
}
[...]