Copyright © 2008 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark and document use rules apply.
This document provides supplemental information on the 10 June 2008 working draft of the HTML 5 specification [HTML5]. It primarily documents changes that have been made to the HTML 5 draft specification since the time of its 22 January 2008 publication as a First Public Working Draft [HTML5FPWD].
This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at http://www.w3.org/TR/.
Please send comments about this document to public-html-comments@w3.org (archived).
This document was produced by the HTML Working Group, part of the HTML Activity in the W3C Interaction Domain. You can find the source for the current version of this document in the W3C source repository.
Publication as a Working Group Note does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.
This document was produced by a group operating under the 5 February 2004 W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy.
This section provides a high-level list of selected changes made to the HTML 5 draft specification after 22 January 2008. For more detailed descriptions of the changes, see the sections in this document that follow this one. (Note: The source for this summary is maintained in the HTML 5 differences from HTML 4 document [HTML4DIFFS]; the summary was copied from that document into this one.)
ping
attribute have changed.
<meta http-equiv=content-type> is now a
conforming way to set the character encoding.canvas element has been cleaned up. Text
support has been added.
globalStorage is now restricted to the same-origin
policy and renamed to localStorage. Related event
dispatching has been clarified.
postMessage() API changed. Only the origin of the
message is exposed, no longer the URI. It also requires a second
argument that indicates the origin of the target document.
dataTransfer object now has a types
attribute indicating the type of data being transferred.
m element is now called mark.
figure element no longer requires a caption.
ol element has a new reversed
attribute.
queryCommandEnabled() and related methods.
headers attribute has been added for
td elements.
table element has a new createTBody()
method.
data-name and can access these through the DOM
using dataset[name] on the element in question.
q element has changed to require punctation inside
rather than having the browser render it.
target attribute can now have the value
_blank.
showModalDialog API has been added.
document.domain API has been defined.
source element now has a new
pixelratio attribute useful for videos that have some kind
encoding error.
bufferedBytes, totalBytes and
bufferingThrottled DOM attributes have been added to the
video element.
begin event has been renamed to
loadstart for consistency with the Progress Events
specification.
charset attribute has been added to
script.
iframe element has gained the sandbox
and seamless attributes which provide sandboxing
functionality.
ruby, rt and rp
elements have been added to support ruby annotation.
showNotification() method has been added to show
notification messages to the user.
beforeprint and afterprint
events has been added.This section provides a per-section record of changes in the 10 June 2008 working draft of the HTML 5 specification [HTML5] that were made after the 22 January 2008 First Public Working Draft (FPWD) [HTML5FPWD]. Note that it documents substantive changes only, and omits editorial changes. It is intended to be readable as a “standalone” document — meaning that readers are meant to be able to use it to get an overview of the changes that have been made, without necessarily needing to read the specification itself or to read through the entire diff document that shows all the changes.
View “Section 1, Introduction” in the 10 June 2008 version of the specification.
View “Section 1, Introduction” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
The “Introduction” section of the specification provides both non-normative (informative) background and context information on the specification, as well as normative information.
View “Section 1.2, Structure of this specification” in the 10 June 2008 version of the specification.
View “Section 1.2, Structure of this specification” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This non-normative section provides information about the major divisions of information in the specification. In this section, the following changes were made:
View “Section 1.3, Conformance requirements” in the 10 June 2008 version of the specification.
View “Section 1.3, Conformance requirements” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section provides information about conformance requirements for Web browsers and user agents, conformance checkers, data mining tools, authoring tools, and markup generators. In this section, the following changes were made:
Also, the text of a related statement was updated to reference the concept of the browsing context; the text of that statement now reads:
Automated conformance checkers are exempt from detecting errors that require interpretation of the author’s intent (for example, while a document is non-conforming if the content of a blockquote element is not a quote, conformance checkers running without the input of human judgement do not have to check that blockquote elements only contain quoted material).
Conformance checkers must check that the input document conforms when parsed without a browsing context (meaning that no scripts are run, and that the parser’s scripting flag is disabled), and should also check that the input document conforms when parsed with a browsing context in which scripts execute, and that the scripts never cause non-conforming states to occur other than transiently during script execution itself.
For interoperability, authors are advised to avoid optional features of XML.
It is possible for xml:base attributes to be present even in HTML fragments, as such attributes can be added dynamically using script. (Such scripts would not be conforming, however, as xml:base attributes as not allowed in HTML documents.)
View “Section 1.4, Terminology” in the 10 June 2008 version of the specification.
View “Section 1.4, Terminology” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section provides information about specific technical terms used in the specification. In this section, the following changes were made:
DOM interfaces defined in this specification use Web IDL. User agents must implement these interfaces as defined by the Web IDL specification.
embed
element):
The term plugin is used to mean any content handler, typically a third-party content handler, for Web content types that are not supported by the user agent natively, or for content types that do not expose a DOM, that supports rendering the content as part of the user agent’s interface.
One example of a plugin would be a PDF viewer that is instantiated in a browsing context when the user navigates to a PDF file. This would count as a plugin regardless of whether the party that implemented the PDF viewer component was the same as that which implemented the user agent itself. However, a PDF viewer application that launches separate from the user agent (as opposed to using the same interface) is not a plugin by this definition.
Note: This specification does not define a mechanism for interacting with plugins, as it is expected to be user-agent- and platform-specific. Some UAs might opt to support a plugin mechanism such as the Netscape Plugin API; others might use remote content converters or have built-in support for certain types.
Warning! Browsers should take extreme care when interacting with external content intended for plugins. When third-party software is run with the same privileges as the user agent itself, vulnerabilities in the third-party software become as dangerous as those in the user agent.
View “Section 2, The Document Object Model” in the 10 June 2008 version of the specification.
View “Section 2, The Document Object Model” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
Conformance criteria of HTML implementations are defined in the specification in terms of operations on the Document Object Model (DOM). This section of the specification defines the language represented in the DOM, and forms a basis for the other parts of the specification.
View “Section 2.1, Documents” in the 10 June 2008 version of the specification.
View “Section 2.1, Documents” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section defines the Document object. In this section, the following changes were made:
HTMLDocument interface:
charsetcharacterSetdefaultCharsetembedspluginsreadyStatescriptsqueryCommandEnabledqueryCommandIndetermqueryCommandStatequeryCommandSupportedqueryCommandValuehasFocus() method as a
method (previously, the interface definition had
incorrectly indicated that it was an
attribute).domain DOM attribute
(which is “used to enable pages on different hosts of
a domain to access each others’ DOMs”) was moved out
to form the basis for the algorithm in the “Relaxing
the same-origin restriction” in the “Origin” section.referrer DOM
attribute and other parts of the section was refined —
in particular, to reference
the concepts of the active document
and source browsing context —
and the following note was
added: Typically user agents are configured to not report referrers in the case where the referrer uses an encrypted protocol and the current page does not (e.g. when navigating from an https: page to an http: page).In the latter part of that same subsection, additional language was added that relates to:
charset, characterSet, and defaultCharset DOM
attributesreadystatechanged event, and the
readyState DOM attributeView “Section 2.2, Elements” in the 10 June 2008 version of the specification.
View “Section 2.2, Elements” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section defines the basic
DOM interface for all HTML elements, the
HTMLElement interface. In this section, the
following changes were made:
HTMLElement interface:
datasetisContentEditablestyleonstorageView “Section 2.3, Common DOM interfaces” in the 10 June 2008 version of the specification.
View “Section 2.3, Common DOM interfaces” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section defines DOM interfaces known as
collections, the
DOMTokenList and DOMStringMap
interfaces, and DOM feature strings for HTML. In this
section, the following changes were made:
HTMLCollection,
HTMLFormControlsCollection,
HTMLOptionsCollection, and
DOMTokenList interfaces were updated and
language that stated conformance criteria for
ECMAScript implementations was removed.add()
and
toggle() methods were slightly
refined.View “Section 2.4, DOM tree accessors” in the 10 June 2008 version of the specification.
View “Section 2.4, DOM tree accessors” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section defines the placement of the
html,
head,
title,
and
body elements in the DOM
tree, associated DOM attributes, and the
getElementsByName()
and
getElementsByClassName()
methods. In this section, the following changes were
made:
title.embeds,
plugins,
and
scripts DOM attributes
was added.View “Section 2.5, Dynamic markup insertion” in the 10 June 2008 version of the specification.
View “Section 2.5, Dynamic markup insertion” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section defines mechanisms that enable script authors to dynamically insert markup into a document. In the section, the following changes were made:
open()
method is called.If any of the elements in the serialisation are in the null namespace, the default namespace in scope for those elements must be explicitly declared as the empty string.
View “Section 2.6, APIs in HTML documents” in the 10 June 2008 version of the specification.
View “Section 2.6, APIs in HTML documents” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section provides details about case-insensitivity and case-changing behavior of data returned by certain DOM APIs. No changes have been made in this section.
View “Section 3, Semantics and structure of HTML elements” in the 10 June 2008 version of the specification.
View “Section 3, Semantics and structure of HTML elements” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section defines the meanings and content models for each element in the HTML language, and includes both “authoring conformance” or “document conformance” requirements (to enable authors to produce conformant HTML documents) with “implementation conformance” or “user-agent conformance” requirements (to enable implementors to produce conformant HTML user agents).
View “Section 3.2, Common microsyntaxes” in the 10 June 2008 version of the specification.
View “Section 3.2, Common microsyntaxes” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section describes the conformance criteria for instances of particular data types (such as dates or numbers) used in HTML content, as well as describing how to parse such instances. In this section, the following changes were made:
Sets of space-separated tokens sometimes have a defined set of allowed values. When a set of allowed values is defined, the tokens must all be from that list of allowed values; other values are non-conforming. If no such set of allowed values is provided, then all values are conforming.
View “Section 3.3, Documents and document fragments” in the 10 June 2008 version of the specification.
View “Section 3.3, Documents and document fragments” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section introduces the terms “semantics”, “structure”, “transparent”, and “paragraph” in the specific context of the HTML language, as well as defining a number of categories that HTML content can be grouped into. In this section, the following changes were made:
Authors must not use elements, attributes, and attribute values for purposes other than their appropriate intended semantic purpose., and a minor refinement was made to the accompanying example.
Authors must only put elements inside an element if that element allows them to be there according to its content model, and (in a later part of the same subsection), a general statement about authoring conformance was re-written to now read,
Authors must not use elements in the HTML namespace anywhere except where they are explicitly allowed, as defined for each element, or as explicitly required by other specifications.
elements in the HTML namespace may be orphan nodes (i.e. without a parent node), along with an example.
View “Section 3.4, Global attributes” in the 10 June 2008 version of the specification.
View “Section 3.4, Global attributes” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section defines attributes that may be specified on all HTML elements. In this section, the following changes were made:
style attribute
was added to the list of global attributes, and a
subsection defining it was added.onstorage attribute
was added to the list of global attributes.Also, an “Embedding custom non-visible data” subsection was added, with conformance criteria related to
custom data attributes (e.g. data-foldername or data-msgid) can be specified on any HTML element, to store custom data specific to the page.
data- attributes and
the associated dataset
DOM attribute.Also, two notes were added regarding the effects of the
In HTML documents, the html element, and any other elements in the HTML namespace whose parent element is not in the HTML namespace, may have anxmlnsattribute specified, if, and only if, it has the exact value “http://www.w3.org/1999/xhtml”. This does not apply to XML documents.
xmlns attribute in
content.
The xml:base attribute is defined in XML Base.
The xml:base attribute may be used on elements of XML documents. Authors must not use the xml:base attribute in HTML documents.
View “Section 3.5, Interaction” in the 10 June 2008 version of the specification.
View “Section 3.5, Interaction” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section defines conformance requirements related to interactive DOM behavior in user agents, including activation of elements, element focus, and scrolling elements into view. In this section, the following changes were made:
An element is focusable if the tabindex attribute’s definition above defines the element to be focusable and the element is being rendered.and, for the case where the
scrollIntoView()
method is called, to provide the following additional
requirement:
Visual user agents should further scroll horizontally as necessary to bring the element to the attention of the user.
hasFocus() method as a method
(previously, the interface definition had incorrectly
indicated that it was an attribute).View “Section 3.6, The root element” in the 10 June 2008 version of the specification.
View “Section 3.6, The root element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section defines the semantics and structure of
the html element. In this
section, the only substantive change made was that a
statement related to the xmlns attribute was moved
out to an earlier point in the document, to the “Global
attributes” section.
View “Section 3.7, Document metadata” in the 10 June 2008 version of the specification.
View “Section 3.7, Document metadata” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section defines the semantics and structure of
the head element and those of
its conformant descendant elements.
View “Section 3.7.3, The base element” in the 10 June 2008 version of the specification.
View “Section 3.7.3, The base element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, the phrase “valid browsing context
name” was emended to become valid browsing context
name or keyword
.
View “Section 3.7.4, The link element” in the 10 June 2008 version of the specification.
View “Section 3.7.4, The link element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, the following changes were made:
sizes
content attribute was added to the list of conformant
attributes for the element, and the
sizes
DOM attribute was added to the interface definition for
the HTMLLinkElement interface.sizes
content attribute and
sizes
DOM attribute were added.Hyperlinks created with the link element and its rel attribute apply to the whole page. This contrasts with the rel attribute of a and area elements, which indicates the type of a link whose context is given by the link’s location within the document.
HTTP semantics must be followed when fetching external resources. (For example, redirects must be followed and 404 responses must cause the external resource to not be applied.)
If no type metadata is specified, but the external resource link type has a default type defined, then the user agent must assume that the resource is of that type.
View “Section 3.7.5, The meta element” in the 10 June 2008 version of the specification.
View “Section 3.7.5, The meta element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, the following changes were made:
The
charset attribute
specifies the character encoding used by the document.
This is called a character encoding
declaration.
If the document contains a meta element with a charset attribute or a meta element in the Encoding declaration state, then the character encoding used must be an ASCII-compatible character encoding.
An ASCII-compatible character encoding is one that is a superset of US-ASCII (specifically, ANSI_X3.4-1968) for bytes in the range 0x09 - 0x0D, 0x20, 0x21, 0x22, 0x26, 0x27, 0x2C - 0x3F, 0x41 - 0x5A, and 0x61 - 0x7A.
dns was removed from the
list of pre-defined values for the
name
attribute.description
was added to the
list of pre-defined values for the
name
attribute, and defined as:
The value must be a free-form string that describes the page. The value must be appropriate for use in a directory of pages, e.g. in a search engine.
application-name
was added to the
list of pre-defined values for the
name
attribute, and defined as:
The value must be a short free-form string that giving the name of the Web application that the page represents. If the page is not a Web application, the application-name metadata name must not be used. User agents may use the application name in UI in preference to the page’s title, since the title might include status messages and the like relevant to the status of the page at a particular moment in time instead of just being the name of the application.
Content-Type keyword
and corresponding
Encoding declaration
state added to a table that lists conformant keyword
values for the
http-equiv
attribute and their corresponding states; also, a
definition for the
Encoding declaration
state was added, and refinements were made in the
“Specifying the document’s character encoding”
subsection.View “Section 3.7.6, The style element” in the 10 June 2008 version of the specification.
View “Section 3.7.6, The style element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, a refinement was made to the
definition of the
media
attribute.
View “Section 3.8, Sections” in the 10 June 2008 version of the specification.
View “Section 3.8, Sections” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section defines the semantics and structure of the elements used for dividing documents into sections.
View “Section 3.8.1, The body element” in the 10 June 2008 version of the specification.
View “Section 3.8.1, The body element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, an interface definition was added
for the DOM interface for the
body
element.
View “Section 3.8.5 [now 3.9.6], The blockquote element” in the 10 June 2008 version of the specification.
View “Section 3.8.5 [now 3.9.6], The blockquote element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
The section on the
blockquote
element was moved to become a subsection of the
“Grouping content” elements section.
View “Section 3.8.6 [now 3.8.5], The aside element” in the 10 June 2008 version of the specification.
View “Section 3.8.6 [now 3.8.5], The aside element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, two examples were added.
View “Section 3.8.8 [now 3.8.7], The header element” in the 10 June 2008 version of the specification.
View “Section 3.8.8 [now 3.8.7], The header element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, some wording refinements were made.
View “Section 3.8.10 [now 3.8.9], The address element” in the 10 June 2008 version of the specification.
View “Section 3.8.10 [now 3.8.9], The address element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, a statement was added that if an
address element applies
to the body element, then it instead applies to the
document as a whole
, and in several places, the
phrase “sectioning element” was changed to
sectioning content element
.
View “Section 3.8.11 [now 3.8.10], Headings and sections” in the 10 June 2008 version of the specification.
View “Section 3.8.11 [now 3.8.10], Headings and sections” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
Several parts of this section were extensively re-written. Among some of the specific changes:
View “Section 3.9, Grouping content” in the 10 June 2008 version of the specification.
View “Section 3.9, Grouping content” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section concerns elements that are used to group phrasing content into logical structures such as paragraphs and lists. The title of the section was changed from “Prose” to “Grouping content”.
View “Section 3.9.4 [was 3.10.1], The pre element” in the 10 June 2008 version of the specification.
View “Section 3.9.4 [was 3.10.1], The pre element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This subsection was created when the previous section
for the pre element was moved
down in the sectioning hierarchy to become a subsection
the “Grouping content” section. Also, the following note
was added:
In the HTML serialisation, a leading newline character immediately following the pre element start tag is stripped.
View “Section 3.9.6 [was 3.8.5], The blockquote element” in the 10 June 2008 version of the specification.
View “Section 3.9.6 [was 3.8.5], The blockquote element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This subsection was created when the previous section
for the blockquote element
was moved out of the “Sections” section and into the
“Grouping content” section. Also, some small
refinements were made to the wording of the section.
View “Section 3.9.7 [was 3.11.1], The ol element” in the 10 June 2008 version of the specification.
View “Section 3.9.7 [was 3.11.1], The ol element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, the following changes were made:
reversed
content attribute was added to the list of conformant
attributes for the element, and the
reversed
DOM attribute was added to the interface definition for
the HTMLOListElement interface.reversed
content attribute and
reversed
DOM attribute were added.The ol element represents a list of items, where the items have been intentionally ordered, such that changing the order would change the meaning of the document.
The reversed attribute is a boolean attribute. If present, it indicates that the list is a descending list (..., 3, 2, 1). If the attribute is omitted, the list is an ascending list (1, 2, 3, ...).
reversed
content attribute
and
reversed
DOM attribute were updated or added where needed
throughout the text.View “Section 3.9.8 [was 3.11.2], The ul element” in the 10 June 2008 version of the specification.
View “Section 3.9.8 [was 3.11.2], The ul element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, the definition of the meaning of
the ul element, which had read,
“The ul element represents an unordered list of items”
was changed to read, The ul element represents a
list of items, where the order of the items is not
important — that is, where changing the order would
not materially change the meaning of the
document
, and two examples were added.
View “Section 3.9.9 [was 3.11.3], The li element” in the 10 June 2008 version of the specification.
View “Section 3.9.9 [was 3.11.3], The li element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, two examples were added.
View “Section 3.9.10 [was 3.11.4], The dl element” in the 10 June 2008 version of the specification.
View “Section 3.9.10 [was 3.11.4], The dl element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, the following changes were made:
dl element was
slightly modified to remove the criterion that it
introduces an “unordered association list”, such
that the sentences now reads, The dl element introduces an association list consisting of zero or more name-value groups (a description list).
View “Section 3.9.11 [was 3.11.5], The dt element” in the 10 June 2008 version of the specification.
View “Section 3.9.11 [was 3.11.5], The dt element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, the following statement was added:
If the dt element is the child of a dialog element, and it further contains a time element, then that time element represents a timestamp for when the associated discourse (dd element) was said, and is not part of the name of the talker.
Also, two examples were added.
View “Section 3.10 [was 3.12], Text-level semantics” in the 10 June 2008 version of the specification.
View “Section 3.10 [was 3.12], Text-level semantics” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section concerns elements used to mark up content at the “text level” (as opposed to the “sectioning” or “grouping” levels). The title of the section was changed from “Phrase elements” to “Text-level semantics”.
View “Section 3.10.1, The a element” in the 10 June 2008 version of the specification.
View “Section 3.10.1, The a element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, the interface definition for the
HTMLAnchorElement interface was updated
for consistency with the Web IDL specification [WebIDL].
View “Section 3.10.2, The q element” in the 10 June 2008 version of the specification.
View “Section 3.10.2, The q element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, some wording changes were made, four examples were added, and the following statement was added:
Quotation punctuation (such as quotation marks), if any, must be placed inside the q element.
View “Section 3.10.3, The cite element” in the 10 June 2008 version of the specification.
View “Section 3.10.3, The cite element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, more examples were added, and the
text defining the meaning of the cite element, which had read
simply, “The cite element represents a citation: the
source, or reference, for a quote or statement made in
the document”, was expanded to read:
The cite element represents the title of a work (e.g. a book, a paper, an essay, a poem, a score, a song, a script, a film, a TV show, a game, a sculpture, a painting, a theatre production, a play, an opera, a musical, an exhibition, etc). This can be a work that is being quoted or referenced in detail (i.e. a citation), or it can just be a work that is mentioned in passing.
A person’s name is not the title of a work — even if people call that person a piece of work — and the element must therefore not be used to mark up people’s names. (In some cases, the b element might be appropriate for names; e.g. in a gossip article where the names of famous people are keywords rendered with a different style to draw attention to them. In other cases, if an element is really needed, the span element can be used.)
A ship is similarly not a work, and the element must not be used to mark up ship names (the i element can be used for that purpose).
View “Section 3.10.7, The mark element [was: the m element]” in the 10 June 2008 version of the specification.
View “Section 3.10.7, The mark element [was: the m element]” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
The m element was
renamed mark; in this
section, the set of examples was
significantly enlarged, and the text defining the
meaning of the element, which had read simply, “The m
element represents a run of text marked or
highlighted”, was expanded to read:
The mark element represents a run of text in one document marked or highlighted for reference purposes, due to its relevance in another context. When used in a quotation or other block of text referred to from the prose, it indicates a highlight that was not originally present but which has been added to bring the reader’s attention to a part of the text that might not have been considered important by the original author when the block was originally written, but which is now under previously unexpected scrutiny. When used in the main prose of a document, it indicates a part of the document that has been highlighted due to its likely relevance to the user’s current activity.
View “Section 3.10.8, The dfn element” in the 10 June 2008 version of the specification.
View “Section 3.10.8, The dfn element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
The text defining the
dfn
elements has changed significantly. The changes
include:
dfn element could be used to
enable automatic cross-references has been removed
completely, and replaced by a statement that An a element that links to a dfn element represents an instance of the term defined by the dfn element.
The paragraph, description list group, or section that is the nearest ancestor of the dfn element must also contain the definition(s) for the term given by the dfn element.
a element in
conjunction with the
dfn element (to make an
explicit cross-reference to a defining instance of a
particular term).View “Section 3.10.9, The abbr element” in the 10 June 2008 version of the specification.
View “Section 3.10.9, The abbr element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
Refinements and changes were made to the text in this section; the changes include:
abbr element was refined to
now read (changes highlighted): The abbr element represents an abbreviation or acronym, optionally with its expansion. The title attribute may be used to provide an expansion of the abbreviation. The attribute, if specified, mustonlycontain an expansion of the abbreviation, and nothing else.
If an abbreviation is pluralised, the expansion’s grammatical number (plural vs singular) must match the grammatical number of the contents of the element.
This paragraph marks up an abbreviation without giving an expansion, possibly as a hook to apply styles for abbreviations (e.g. smallcaps).
View “Section 3.10.11, The progress element” in the 10 June 2008 version of the specification.
View “Section 3.10.11, The progress element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, a conformance statement was
updated to read: If the progress bar is an
indeterminate progress bar, then the position DOM
attribute must return
. (The
statement had previously indicated that is should
return -11.) Also, the following note was
added:
The progress element is the wrong element to use
for something that is just a gauge, as opposed to
task progress. For instance, indicating disk space
usage using progress would be inappropriate.
Instead, the meter element is available for such use
cases.
View “Section 3.10.12, The meter element” in the 10 June 2008 version of the specification.
View “Section 3.10.12, The meter element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, the following changes were made:
HTMLMeterElement interface, the data
type for all attributes was changed from
long to float.The recommended way of giving the value is to include it as contents of the element, either as two numbers (the higher number represents the maximum, the other number the current value, and the minimum is assumed to be zero), or as a percentage or similar (using one of the characters such as “%”), or as a fraction.
meter was added; it states
that “their values must satisfy the following
inequalities”:
View “Section 3.10.13, The code element” in the 10 June 2008 version of the specification.
View “Section 3.10.13, The code element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, the following statement was removed completely: “the title attribute has special semantics on this element when used with the dfn element”, and another example was added.
View “Section 3.10.14, The var element” in the 10 June 2008 version of the specification.
View “Section 3.10.14, The var element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, the following statement was removed completely: “the title attribute has special semantics on this element when used with the dfn element”.
View “Section 3.10.15, The samp element” in the 10 June 2008 version of the specification.
View “Section 3.10.15, The samp element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, the following statement was removed completely: “the title attribute has special semantics on this element when used with the dfn element”.
View “Section 3.10.17, The sub and sup elements” in the 10 June 2008 version of the specification.
View “Section 3.10.17, The sub and sup elements” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, the following note was added:
Authors are encouraged to use MathML for marking up
mathematics, but authors may opt to use sub and sup
if detailed mathematical markup is not
desired.
View “Section 3.10.18, The span element” in the 10 June 2008 version of the specification.
View “Section 3.10.18, The span element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, the following statement was
removed completely: “the title
attribute has special semantics on this element when
used with the dfn element”; also removed was a
statement that the span
element can be useful “when used in conjunction with
the dfn element”.
View “Section 3.10.19, The i element” in the 10 June 2008 version of the specification.
View “Section 3.10.19, The i element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, the following changes were made:
Authors are encouraged to use the class attribute on the i element to identify why the element is being used, so that if the style of a particular use (e.g. dream sequences as opposed to taxonomic terms) is to be changed at a later date, the author doesn’t have to go through the entire document (or series of related documents) annotating each use.
View “Section 3.10.22 [new], The ruby element” in the 10 June 2008 version of the specification.
View “Section 3.10.22 [new], The ruby element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section is newly added. It concerns the
ruby
element, which allows more spans of content to be
marked up with ruby annotations (sometimes used, for
example, with East Asian characters to provide
“readings” or pronunciations for the characters).
View “Section 3.10.23 [new], The rt element” in the 10 June 2008 version of the specification.
View “Section 3.10.23 [new], The rt element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section is newly added. It concerns the
rt
element, which is used to mark up the “text
component” of a ruby annotation.
View “Section 3.10.24 [new], The rp element” in the 10 June 2008 version of the specification.
View “Section 3.10.24 [new], The rp element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section is newly added. It concerns the
rp
element, which can be used to provide parentheses
around a ruby “text component” of a ruby annotation,
to be shown by user agents that don’t support ruby
annotations.
View “Section 3.10.25 [new], Usage summary” in the 10 June 2008 version of the specification.
View “Section 3.10.25 [new], Usage summary” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section is newly added. It is a placeholder with an editorial note that reads, “We need to summarise the various elements, in particular to distinguish b/i/em/strong/var/q/mark/cite.”
View “Section 3.10.26 [new], Footnotes” in the 10 June 2008 version of the specification.
View “Section 3.10.26 [new], Footnotes” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section is newly added. The introduction to
the section states, ”HTML does not have a dedicated
mechanism for marking up footnotes. Here are the
recommended alternatives”, and the section includes
descriptions and examples of use of the
title attribute,
a element,
and the
aside element
in marking up footnote content.
View “Section 3.11 [was 3.13], Edits” in the 10 June 2008 version of the specification.
View “Section 3.11 [was 3.13], Edits” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section concerns the
ins
and
del
elements. In the introduction
to this section, a large note with examples was moved
out to form a separate subsection, “Edits and
paragraphs” (which notes and illustrates the
difficulties of attempting to mark up edits that cross
implied paragraphs). The text of the
sections on the
ins
and
del
themselves remains unchanged.
View “Section 3.11.4 [new], Edits and paragraphs” in the 10 June 2008 version of the specification.
View “Section 3.11.4 [new], Edits and paragraphs” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This subsection was created by moving a large note out of the introduction to its parent section, “Edits”. The content of this subsection provides information and examples illustrating the difficulties of attempting to mark up edits that cross implied paragraphs).
View “Section 3.11.5 [new], Edits and lists” in the 10 June 2008 version of the specification.
View “Section 3.11.5 [new], Edits and lists” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section, which is newly added, relates to use
of the
ins
and
del
elements with list items. The text provides both
examples and authoring-conformance requirements, and
begins with the following statement: The content
models of the ol and ul elements do not allow ins
and del elements as children. Lists always represent
all their items, including items that would
otherwise have been marked as deleted.
View “Section 3.12 [was 3.14], Embedded content” in the 10 June 2008 version of the specification.
View “Section 3.12 [was 3.14], Embedded content” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section concerns elements used to embed non-text content in HTML pages, primarily binary media content (such as video and audio content, static images, images that are dynamically created through scripting), but also content in other markup languages (SVG and MathML).
View “Section 3.12.1, The figure element” in the 10 June 2008 version of the specification.
View “Section 3.12.1, The figure element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, the following changes were made:
figure element belongs.legend element
optional as a child of figure (instead of being a
required child), and the first statement in the prose
description of the element was updated to read, “The
figure element represents some flow content, optionally with a caption, which can
be moved away from the main flow of the document
without affecting the document’s meaning.
The element can thus be used to annotate illustrations, diagrams, photos, code listings, etc, that are referred to from the main content of the document, but that could, without affecting the flow of the document, be moved away from that primary content, e.g. to the side of the page, to dedicated pages, or to an appendix.
View “Section 3.12.2, The img element” in the 10 June 2008 version of the specification.
View “Section 3.12.2, The img element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, the following changes were made:
In some cases, the image is a critical part of the content. This could be the case, for instance, on a page that is part of a photo gallery. The image is the whole point of the page containing it.
When it is possible for alternative text to be provided, for example if the image is part of a series of screenshots in a magazine review, or part of a comic strip, or is a photograph in a blog entry about that photograph, text that conveys can serve as a substitute for the image must be given as the contents of the alt attribute.
In a rare subset of these cases, there might be no alternative text available. This could be the case, for instance, on a photo upload site, if the site has received 8000 photos from a user without the user annotating any of them. In such cases, the alt attribute may be omitted, but the alt attribute should be included, with a useful value, if at all possible.
In any case, if an image is a key part of the content, the alt attribute must not be specified with an empty value.
alt text for the
“Screenshot of a KDE desktop” example was expanded.A photo on a photo-sharing site, if the site received the image with no metadata other than the caption.
the alt attribute is only allowed to be omitted when no alternative text is available and none can be made available, e.g. on automated image gallery sites.
Once the download has completed, if the image is a valid image, the user agent must fire a load event on the img element (this happens after complete starts returning true).
The value of complete can change while a script is execu