String Data

Site Navigation 

The values of String properties have been converted (entityifyed) for display in HTML and formatting (tabs, carriage returns) is not presented in the browser, but the formatting characters are preserved in the HTML page source. The values of Functions are presented in <pre> tags so the formatting is presented (and preserved in the HTML source) with the exception that leading and trailing white-space characters have been trimmed.

As a result it may be necessary to examine the source code of the HTML page in order to get an accurate description of the string actually returned by the browser. Text nodes, for example, that contain only tab or carriage return characters will appear to have empty data and nodeValue properties on the HTML page but the white-space characters can be identified in the HTML page source code.

Also, long strings (such as innerHTML on the document.documentElement), are wrapped in <span> tags with inline style attributes that reduce the size of the text on the listing pages. To read the contents of these strings it may be necessary to 1. Use the browser's font/view size/zoom facilities. 2. Select and copy the text into a text editor. 3. View the page source.

© Richard Cornford 2004