contentScriptType attribute | contentScriptType property
Gets the default scripting language of the current document fragment.
![]() ![]() |
Syntax
| HTML |
|---|
<element contentScriptType="p" ... > |
| JavaScript |
|---|
p = object.contentScriptType |
Property values
Type: String
The default scripting language that is used to process the value strings in event attributes. This language is used for all instances of script that do not specify their own scripting language.
Test
Exceptions
| Exception | Condition |
|---|---|
|
An attempt is made to modify an object that cannot be changed. For versions earlier than Internet Explorer 10, NO_MODIFICATION_ALLOWED_ERR is returned. |
Standards information
- Scalable Vector Graphics: Document Structure, Section 5.11.2
Remarks
Do not set the contentScriptType property. If you try to set this property, it causes an error. The set of valid language types is defined by RFC4329: Scripting Media Types.
See also
Show:

