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.

32<br />

2 Common infrastructure<br />

2.1 Terminology<br />

This specification refers to both <strong>HTML</strong> and XML attributes and DOM attributes, often in the same<br />

context. When it is not clear which is being referred to, they are referred to as content<br />

attributes for <strong>HTML</strong> and XML attributes, and DOM attributes for those from the DOM.<br />

Similarly, the term "properties" is used for both JavaScript object properties and CSS properties.<br />

When these are ambiguous they are qualified as object properties and CSS properties<br />

respectively.<br />

Generally, when the specification states that a feature applies to the <strong>HTML</strong> syntax (page 781) or<br />

the X<strong>HTML</strong> syntax (page 901), it also includes the other. When a feature specifically only applies<br />

to one of the two languages, it is called out by explicitly stating that it does not apply to the<br />

other format, as in "for <strong>HTML</strong>, ... (this does not apply to X<strong>HTML</strong>)".<br />

This specification uses the term document to refer to any use of <strong>HTML</strong>, ranging from short<br />

static documents to long essays or reports with rich multimedia, as well as to fully-fledged<br />

interactive applications.<br />

For simplicity, terms such as shown, displayed, and visible might sometimes be used when<br />

referring to the way a document is rendered to the user. These terms are not meant to imply a<br />

visual medium; they must be considered to apply to other media in equivalent ways.<br />

When an algorithm B says to return to another algorithm A, it implies that A called B. Upon<br />

returning to A, the implementation must continue from where it left off in calling B.<br />

2.1.1 XML<br />

To ease migration from <strong>HTML</strong> to X<strong>HTML</strong>, UAs conforming to this specification will place elements<br />

in <strong>HTML</strong> in the http://www.w3.org/1999/xhtml namespace, at least for the purposes of the<br />

DOM and CSS. The term "elements in the <strong>HTML</strong> namespace", or "<strong>HTML</strong> elements" for<br />

short, when used in this specification, thus refers to both <strong>HTML</strong> and X<strong>HTML</strong> elements.<br />

Unless otherwise stated, all elements defined or mentioned in this specification are in the<br />

http://www.w3.org/1999/xhtml namespace, and all attributes defined or mentioned in this<br />

specification have no namespace (they are in the per-element partition).<br />

When an XML name, such as an attribute or element name, is referred to in the form<br />

prefix:localName, as in xml:id or svg:rect, it refers to a name with the local name localName<br />

and the namespace given by the prefix, as defined by the following table:<br />

xml<br />

html<br />

http://www.w3.org/XML/1998/namespace<br />

http://www.w3.org/1999/xhtml

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

Saved successfully!

Ooh no, something went wrong!