Jump to: navigation, search

Applies to  ?


The following div example renders data in HTML format.

<div datafld="Column2" dataformatas="html"></div>

The following span example renders data in HTML format.

<span datasrc="#bank_acct" datafld="balance" dataformatas="html"></span>

The following textArea example renders data in text format.

<textarea datasrc="#customer" datafld="address" dataformatas="text" rows=6 COLS=60></textarea>



As of Windows Internet Explorer 7, the DATAFORMATAS attribute is no longer supported for the input type=button object. The dataFld property is not available on param objects; use getAttribute('dataFld') instead. Internet Explorer 5.01 or later honors the regional settings for the user's control panel when the DATAFORMATAS attribute is set to localized-text. Internet Explorer 5.01 or later performs a locale-dependent type conversion on the native value, instead of using the data source object to perform the conversion, when binding a textual element such as a span, div, or input to date, currency, or numeric data. Microsoft Internet Explorer 5 does not provide this feature. To compensate for this limitation, a data source object can implement ISimpleDataConverter to participate in the conversion. Neither of these features is supported in earlier versions of Windows Internet Explorer.


See also

Related articles


… further results"html" is not in the list of possible values (Canvas, CSS Font, CSS Layout, Animation, Audio, Background, Border, Box Model, CSS Attributes, CSSOM, Combinators, Deprecated, Document Structure, Exclusions, FileSystemAPI, Filters, Flexbox, Fonts, Generated and Replaced Content, Gradients, Grid Layout, HTML, Multimedia, Media Queries, Mobile, Multi-Column, Off-line Storage, Paged Media, Performance, Pointer Events, Pseudo-Classes, Pseudo-Elements, Regions, Responsive Web Design, Ruby, Scrollbar, Selectors, Security, Shapes, Syntax, Tables, Text, Touch, Transforms, Transitions, Video, Visual Effects, Web Components, WebRTC, XHR) for this property.

Related pages (MSDN)

  • button
  • div
  • input type=button
  • label
  • legend
  • marquee
  • object
  • option
  • select
  • span
  • table
  • Introduction to Data Binding


This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]