QX.js Scripting Guide

Overview

QXML DOM

The QXML DOM (QuarkXPress Markup Language Document Object Model) is the JavaScript programming interface for accessing a QuarkXPress layout's object model. QXML DOM is based on the WHATWG HTML Living Standard Custom Elements specification, which is a part of the W3C DOM specification. Every QXML DOM element is a custom HTML5 element that represents a corresponding QuarkXPress layout object with a custom tag name along with its properties and styling. As it is based on the W3C HTML standard, you can expect to be immediately productive with scripting the QXML DOM if you are already familiar with scripting the HTML DOM. Like HTML DOM elements, all QXML custom elements are styled via custom CSS properties based on the W3C CSS Specification. The HTML 'style' attribute is used to specify the inline CSS properties to style QXML custom elements.