The Issues Api Functions - Adobe 38040334 - Dreamweaver CS3 User Manual

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

Advertisement

The issues API functions

All of the functions in the issues API are required except for
extension APIs, you are responsible for writing the body of each function and returning an appropriate value to
Dreamweaver. For information about browser compatibility check functions, see the "Page Content" topic in the
Dreamweaver API Reference.
findIssue()
Availability
Dreamweaver CS3.
Description
Searches the document for the combination of CSS and HTML that will trigger a specific browser rendering issue.
Arguments
None.
Returns
An array of element nodes that exhibit (or otherwise represent) the problem. Dreamweaver selects these nodes as
the user navigates from one browser compatibility issue to the next.
Example
The following
findIssue()
has been applied:
function findIssue(){
var DOM = dw.getDocumentDOM();
var issueNodes = new Array();
var buttons = DOM.getElementsByTagName('button');
var props = null;
for (var i=0; i < buttons.length; i++){
props = window.getDeclaredStyle(buttons[i]);
if (props.cssFloat == "left" || props.cssFloat == "right"){
issueNodes.push(buttons[i]);
}
}
return issueNodes;
}
getAffectedBrowserProfiles()
Availability
Dreamweaver CS3.
Description
Provides Dreamweaver with a list of browsers for which this issue is relevant.
Arguments
None.
function returns an array of
getAffectedBrowserDisplayNames()
tags to which
<button>
float: left
DREAMWEAVER CS3
Extending Dreamweaver
. As with all
or
float: right
123

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents