content element

By Opera Software

From Opera 15 onward, Opera 11 & 12’s extension format is no longer supported, and instead, we’ve switched to Chromium’s extension model. Check out our new documentation for developing extensions for Opera 15 and higher and start building your own extensions.

Description

The <content> element is used to define a custom start file for the extension. The following attributes are associated with it.

  • src: Points to a file within the extension package which is supposed to be the start file
  • encoding: Character encoding of the file identified by the src attribute

Example

<widget xmlns="http://www.w3.org/ns/widgets">
  <content src="index.xml"
    encoding="utf-8"
    type="application/xhtml+xml"/>
</widget>

This article is licensed under a Creative Commons Attribution 3.0 Unported license.

Comments

No new comments accepted.