|
|
Extensions to HTMLAIR and WebKit define a few non-standard HTML elements and attributes, including: HTML frame and iframe elementsAIR adds new attributes to the frame and iframe elements of content in the application sandbox:
HTML Canvas elementDefines a drawing area for use with the WebKit Canvas API. Graphics commands cannot be specified in the tag itself. To draw into the canvas, call the canvas drawing methods through JavaScript. <canvas id="drawingAtrium" style="width:300px; height:300px;"></canvas> For more informtion, see The Canvas object. HTML element event handlersDOM objects in AIR and WebKit dispatch some events not found in the standard DOM event model. The following table lists the related event attributes you can use to specify handlers for these events:
HTML contentEditable attributeYou can add the contentEditable attribute to any HTML element to allow users to edit the content of the element. For example, the following example HTML code sets the entire document as editable, except for first p element: <html>
<head/>
<body contentEditable="true">
<h1>de Finibus Bonorum et Malorum</h1>
<p contentEditable="false">Sed ut perspiciatis unde omnis iste natus error.</p>
<p>At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis.</p>
</body>
</html>
Note: If you set the document.designMode property
to on, then all elements in the document are editable,
regardless of the setting of contentEditable for
an individual element. However, setting designMode to off,
does not disable editing of elements for which contentEditable is true.
See Document.designMode property for
additional information.
|