An Issues Example - Adobe 38040334 - Dreamweaver CS3 User Manual

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

Advertisement

Sequence of events
Dreamweaver parses the styles that apply to the current document, whether defined inline, in the head, or in an
1
external stylesheet, as the affected browser would read them.
Dreamweaver calls the
2

An Issues example

The following examples are the files
ColAndColgroupCapturedByCaption.js
ColAndColgroupCapturedByCaption.htm
<!DOCTYPE HTML SYSTEM "-//
//DWExtension layout-engine 5.0//dialog">
<html>
<head>
<title>Col and Colgroup Captured by Caption</title>
<script src="../../Shared/Common/Scripts/dwscripts.js"></script>
<script src="issue_utils.js"></script>
<script src="ColAndColgroupCapturedByCaption.js"></script>
<script>
//--------------- LOCALIZEABLE GLOBALS------------------
var ISSUE_NAME = "Col and Colgroup/Caption Conflict";
var ISSUE_DESC = "If the caption tag is placed directly after the opening table tag as
required by the HTML 4.01 specification, any styles applied to col and colgroup tags in the
same table are ignored.";
//--------------- END LOCALIZEABLE---------------
</script>
</head>
<body>
</body>
</html>
ColAndColgroupCapturedByCaption.js
function findIssue(){
var DOM = dw.getDocumentDOM();
var issueNodes = new Array();
if (DOM){
// first see if there are any caption tags in the doc.
var captions = DOM.getElementsByTagName('caption');
// declare a mess of variables that we'll need in the
// for loop below.
var currCap = null, props = null, parentTable = null;
var colgroups = null, cols = null, allcol = null;
var property = "", definedStyles = new Array();
// ok, now loop through all the captions, if any.
function in each Issue file that applies to the affected browser.
findIssue()
ColAndColgroupCapturedByCaption.htm
located in the Configuration/BrowserProfiles/Issues/ folder.
DREAMWEAVER CS3
Extending Dreamweaver
and
121

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents