Inside JavaScript

The canHaveHTML Property

The canHaveHTML property is much like the canHaveChildren property, except that the canHaveHTML property indicates whether an element can contain HTML content (for example, a <DIV> element can, but a <BR> element can't) rather than children. You can see the support for this property in Table 5.10.

Table 5.10. The canHaveHTML Property

Property

NS2

NS3

NS4

NS6

IE3a

IE3b

IE4

IE5

IE5.5

IE6

canHaveHTML

               

x

x

 

Read-only

 

Type: Boolean

Категории