04.02.2013 Views

HTML 5 Draft Standard - 30 July 2009 - Huihoo

HTML 5 Draft Standard - 30 July 2009 - Huihoo

HTML 5 Draft Standard - 30 July 2009 - Huihoo

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

34<br />

2.1.3 Scripting<br />

The construction "a Foo object", where Foo is actually an interface, is sometimes used instead of<br />

the more accurate "an object implementing the interface Foo".<br />

A DOM attribute is said to be getting when its value is being retrieved (e.g. by author script),<br />

and is said to be setting when a new value is assigned to it.<br />

If a DOM object is said to be live, then that means that any attributes returning that object must<br />

always return the same object (not a new object each time), and the attributes and methods on<br />

that object must operate on the actual underlying data, not a snapshot of the data.<br />

The terms fire and dispatch are used interchangeably in the context of events, as in the DOM<br />

Events specifications. [DOM3EVENTS]<br />

2.1.4 Plugins<br />

The term plugin is used to mean any content handler for Web content types that are either not<br />

supported by the user agent natively or that do not expose a DOM, which supports rendering the<br />

content as part of the user agent's interface.<br />

Typically such content handlers are provided by third parties.<br />

One example of a plugin would be a PDF viewer that is instantiated in a browsing context<br />

(page 608) when the user navigates to a PDF file. This would count as a plugin regardless<br />

of whether the party that implemented the PDF viewer component was the same as that<br />

which implemented the user agent itself. However, a PDF viewer application that launches<br />

separate from the user agent (as opposed to using the same interface) is not a plugin by<br />

this definition.<br />

Note: This specification does not define a mechanism for interacting with<br />

plugins, as it is expected to be user-agent- and platform-specific. Some UAs<br />

might opt to support a plugin mechanism such as the Netscape Plugin API;<br />

others might use remote content converters or have built-in support for<br />

certain types. [NPAPI]<br />

⚠Warning! Browsers should take extreme care when interacting with external<br />

content intended for plugins (page 34). When third-party software is run with the<br />

same privileges as the user agent itself, vulnerabilities in the third-party software<br />

become as dangerous as those in the user agent.<br />

2.1.5 Character encodings<br />

An ASCII-compatible character encoding is a single-byte or variable-length encoding in<br />

which the bytes 0x09, 0x0A, 0x0C, 0x0D, 0x20 - 0x22, 0x26, 0x27, 0x2C - 0x3F, 0x41 - 0x5A,<br />

and 0x61 - 0x7A, ignoring bytes that are the second and later bytes of multibyte sequences, all

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!