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:
charset
characterSet
defaultCharset
embeds
plugins
readyState
scripts
queryCommandEnabled
queryCommandIndeterm
queryCommandState
queryCommandSupported
queryCommandValue
hasFocus()
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:
dataset
isContentEditable
style
onstorage
View “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 anxmlns
attribute 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 -1
1
.) 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 executing.
A single image can have different appropriate alternative text depending on the context.
In each of the following cases, the same image is used, yet the alt text is different each time.
View “Section 3.12.3, The iframe element” in the 10 June 2008 version of the specification.
View “Section 3.12.3, The iframe element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
Very substantial changes were made in this section to introduce the following:
iframe
name,
a valid browsing
context name associated with the iframe.iframe
sandbox,
which enables a set of extra restrictions on any content hosted by the iframe.
iframe
seamless
flag, which indicates that the iframe element’s browsing context is to be rendered in a manner that makes it appear to be part of the containing document (seamlessly included in the parent document).
A number of specific changes were made to introduce the above — among them, the following:
name
,
sandbox
,
seamless
,
width
,
and
height
content attributes were added to the list of conformant
attributes for the element, and the
name
,
sandbox
,
seamless
,
width
,
and
height
DOM attributes were added to the interface definition
for the HTMLIFrameElement
interface.name
,
sandbox
,
seamless
,
width
,
and
height
content attributes and
name
,
sandbox
,
seamless
,
width
,
and
height
DOM attribute were added.name
,
sandbox
,
and
seamless
attributes was added.View “Section 3.12.4, The embed element” in the 10 June 2008 version of the specification.
View “Section 3.12.4, The embed 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:
View “Section 3.12.5, The object element” in the 10 June 2008 version of the specification.
View “Section 3.12.5, The object 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:
name
content attribute was added to the list of conformant
attributes for the element, and the
name
DOM attribute was added to the interface definition
for the HTMLObjectElement
interface.name
content attribute and
name
DOM attribute were added.
Whenever the name attribute is set, if the object element has a nested browsing context, its name must be changed to the new value. If the attribute is removed, if the object element has a browsing context, the browsing context name must be set to the empty string.
classid
attribute and
acting on its value, and changes to the requirements
for the case where the data
attribute is
present.
The object element can, in certain cases as described above, instantiate third-party handlers. This specification does not define a mechanism for interacting with third-party handlers, as it is expected to be user-agent-specific. Some UAs might opt to support a plugin mechanism such as the Netscape Plugin API; others may use remote content convertors or have built-in support for certain types.
View “Section 3.12.6, The param element” in the 10 June 2008 version of the specification.
View “Section 3.12.6, The param element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, an instance of the term “handlers” was replaced by the term plugins.
View “Section 3.12.7, The video element” in the 10 June 2008 version of the specification.
View “Section 3.12.7, The video 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:
video
element is paused.adjusted aspect ratio, and a statement was added to say,
The adjusted aspect ratio of a video is the ratio of its adjusted width to its intrinsic height. The adjusted width of a video is its intrinsic width multiplied by its pixel ratio.
View “Section 3.12.9, The source element” in the 10 June 2008 version of the specification.
View “Section 3.12.9, The source 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:
pixelratio
content attribute was added to the list of conformant
attributes for the element, and the
pixelratio
DOM attribute was added to the interface definition for
the HTMLSourceElement
interface.pixelratio
content attribute and
pixelratio
DOM attribute were added, including the following
statement:
The pixelratio attribute allows the author to specify the pixel ratio of anamorphic media resources that do not self-describe their pixel ratio. The attribute value, if specified, must be a valid floating point number giving the ratio of the correct rendered width of each pixel to the actual width of each pixel in the image (i.e., the multiple by which the video’s intrinsic width is to be multiplied to obtain the rendered width that gives the correct aspect ratio). The default value, if the attribute is omitted or cannot be parsed, is 1.0.
View “Section 3.12.10, Media elements” in the 10 June 2008 version of the specification.
View “Section 3.12.10, Media 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 changes were made:
bufferingThrottled
,
bufferedBytes
,
and
totalBytes
attributes were added to the interface definition
for the HTMLMediaElement
interface.bufferingThrottled
,
bufferedBytes
,
and
totalBytes
DOM attributes were added.pixelratio
attribute.load()
method on a media
element is invoked, a step that had read, “The user
agent must then set the begun flag to true and fire
a progress event called begin at the media element”
was revised to read (change highlighted), The user agent must then set the begun flag to true and fire a progress event called loadstart at the media element.
waiting
event at a media element was
revised to incorporate the case of the seeking
algorithm being invokedplay()
method was
revised.VoidCallback
interface
was removed.ByteRanges
interface and related conformance requirements.begin
was re-named to loadstart
, and entries in the
table were added for the
seeking
and
seeked
events.View “Section 3.12.11, The canvas element” in the 10 June 2008 version of the specification.
View “Section 3.12.11, The canvas 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:
Arguments other than the contextId must be ignored, and must not cause the user agent to raise an exception (as would normally occur if a method was called with the wrong number of arguments).
If the canvas has no pixels (i.e. either its horizontal dimension or its vertical dimension is zero) then the method must return the string “data:,”. (This is the shortest data: URI; it represents the empty string in a text/plain resource.)
toDataURL()
method with
image types other than PNG was emended to read
(added text highlighted):
When trying to use types other than image/png, authors can check if the image was really returned in the requested format by checking to see if the returned string starts with one the exact strings “data:image/png,” or “data:image/png;”. If it does, the image is PNG, and thus the requested type was not supported. (The one exception to this is if the canvas has either no height or no width, in which case the result might simply be “data:,”.)
toDataURL()
and
getImageData()
methods
was moved to become part of a newly added “Security
with canvas elements” subsection.View “Section 3.12.11.1, The 2D context” in the 10 June 2008 version of the specification.
View “Section 3.12.11.1, The 2D context” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section provides an extensive
immediate-mode graphics API for use
with the canvas
element. In this section, the following changes were
made:
CanvasRenderingContext2D
interface,
the following DOM attributes were added:
font
textAlign
textBaseline
fillText
strokeText
measureText
createImageData
TextMetrics
interface was added.
Information leakage can occur if scripts from one origin are exposed to images from another origin (one that isn’t the same).
It then lists a specific set actions, each of which must cause the origin-clean flag to be set to
To mitigate this, canvas elements are defined to have a flag indicating whether they are origin-clean. All canvas elements must start with their origin-clean set to true.
false
. In addition, it
includes the following statements:
Whenever the toDataURL() method of a canvas element whose origin-clean flag is set to false is called, the method must immediately raise a security exception.
Whenever the getImageData() method of the 2D context of a canvas element whose origin-clean flag is set to false is called, the method must immediately raise a security exception.
View “Section 3.12.12, The map element” in the 10 June 2008 version of the specification.
View “Section 3.12.12, The map 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:
name
attribute, which “gives the map a name so that it can
be referenced”.name
DOM attribute was added to the interface definition
for the
HTMLMapElement
interface.View “Section 3.12.13, The area element” in the 10 June 2008 version of the specification.
View “Section 3.12.13, The area 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: “The DOM attribute shape must reflect the shape content attribute, limited to only known values.”
View “Section 3.12.14, Image maps” in the 10 June 2008 version of the specification.
View “Section 3.12.14, Image maps” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, some instances of the phrase “hashed ID reference” were changed to “hash-name reference”.
View “Section 3.12.15 [new], MathML” in the 10 June 2008 version of the specification.
View “Section 3.12.15 [new], MathML” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This short section is newly added. It reads in whole:
The math element from the MathML namespace falls into the embedded content category for the purposes of the content models in this specification.
User agents must handle text other than inter-element whitespace found in MathML elements whose content models do not allow raw text by pretending for the purposes of MathML content models, layout, and rendering that that text is actually wrapped in an mtext element in the MathML namespace. (Such text is not, however, conforming.)
User agents must act as if any MathML element whose contents does not match the element’s content model was replaced, for the purposes of MathML layout and rendering, by an merror element in the MathML namespace containing some appropiate error message.
To enable authors to use MathML tools that only accept MathML in its XML form, interactive HTML user agents are encouraged to provide a way to export any MathML fragment as a namespace-well-formed XML fragment.
View “Section 3.12.16 [new], SVG” in the 10 June 2008 version of the specification.
View “Section 3.12.16 [new], SVG” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This short section is newly added. It reads in whole:
The svg element from the SVG namespace falls into the embedded content category for the purposes of the content models in this specification.
To enable authors to use SVG tools that only accept SVG in its XML form, interactive HTML user agents are encouraged to provide a way to export any SVG fragment as a namespace-well-formed XML fragment.
View “Section 3.13 [was 3.15], Tabular data” in the 10 June 2008 version of the specification.
View “Section 3.13 [was 3.15], Tabular data” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section concerns the
table
element and its descendant-element hierarchy.
View “Section 3.13.2, The table element” in the 10 June 2008 version of the specification.
View “Section 3.13.2, The table 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:
createTBody()
method was added to the interface definition for the
HTMLTableElement
interface.table
element must have “Zero or more tbody elements, or
One or more tr elements”, the following note was
added: (Only expressible in the XML
serialization.)caption
DOM attribute was emended to read (added text
highlighted),
The caption DOM attribute must return, on getting, the first caption element child of the table element, if any, or null otherwise.
tHead
DOM attribute was emended to read (added text
highlighted),
The tHead DOM attribute must return, on getting, the first thead element child of the table element, if any, or null otherwise.
tFoot
DOM attribute was emended to read (added text
highlighted),
The tFoot DOM attribute must return, on getting, the first tfoot element child of the table element, if any, or null otherwise.
The createTBody() method must create a new tbody element, insert it immediately after the last tbody element in the table element, if any, or at the end of the table element if the table element has no tbody element children, and then must return the new tbody element.
deleteRow()
method is called was revised.View “Section 3.13.4, The colgroup element” in the 10 June 2008 version of the specification.
View “Section 3.13.4, The colgroup 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:
span
attribute on the
colgroup
element
was removed completely: “Its default
value, which must be used if parsing the attribute as
a non-negative integer returns either an error or
zero, is 1.”span
DOM attribute was revised to now read, The
span DOM attribute must reflect the content
attribute of the same name. The value must be
limited to only positive non-zero
numbers. (it had previously stated, “on
setting, if the new value is 0, then an
INDEX_SIZE_ERR exception must be raised”.View “Section 3.13.5, The col element” in the 10 June 2008 version of the specification.
View “Section 3.13.5, The col 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:
span
attribute on the
col
element
was removed completely: “Its default
value, which must be used if parsing the attribute as
a non-negative integer returns either an error or
zero, is 1.”span
DOM attribute was revised to now read, The
span DOM attribute must reflect the content
attribute of the same name. The value must be
limited to only positive non-zero
numbers. (it had previously stated, “on
setting, if the new value is 0, then an
INDEX_SIZE_ERR exception must be raised”.View “Section 3.13.6, The tbody element” in the 10 June 2008 version of the specification.
View “Section 3.13.6, The tbody 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:
Zero or more tr elements. (It had previously required “One or more tr elements”.)
View “Section 3.13.7, The thead element” in the 10 June 2008 version of the specification.
View “Section 3.13.7, The thead 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:
Zero or more tr elements. (It had previously required “One or more tr elements”.)
View “Section 3.13.8, The tfoot element” in the 10 June 2008 version of the specification.
View “Section 3.13.8, The tfoot 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:
Zero or more tr elements. (It had previously required “One or more tr elements”.)
View “Section 3.13.9, The tr element” in the 10 June 2008 version of the specification.
View “Section 3.13.9, The tr 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:
Zero or more td or th elements(It had previously required “One or more tr elements”.)
rowIndex
DOM attribute,
for the case where no table exists that meets
particular criteria, the text was changed to state
that the attribute must return -1
. (It
had stated that it must return 0.)sectionRowIndex
DOM attribute,
for the case where no parent element exists that meets
particular criteria, the text was changed to state
that the attribute must return -1
. (It
had stated that it must return 0.)View “Section 3.13.10, The td element” in the 10 June 2008 version of the specification.
View “Section 3.13.10, The td 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:
td
element belongs was changed from “None” to
sectioning root.HTMLTableDataCellElement
.headers
content attribute was added to the list of conformant
attributes for the element, and the
headers
DOM attribute was added to the interface definition for
the HTMLTableDataCellElement
interface.colSpan
and
rowSpan
DOM attributes were removed from
the interface definition for the
HTMLTableDataCellElement
interface.colSpan
and
rowSpan
DOM attributes
and to add references to the
headers
DOM attribute.View “Section 3.13.11, The th element” in the 10 June 2008 version of the specification.
View “Section 3.13.11, The th 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:
colspan
and
rowSpan
content attributes.View “Section 3.13.12 [new], Attributes common to td and th elements” in the 10 June 2008 version of the specification.
View “Section 3.13.12 [new], Attributes common to td and th elements” 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 provides
HTMLTableCellElement
interface; the
conformance requirements for the
td
and
th
elements
now state that they implement interfaces that inherit
from that interfacecolspan
and
rowSpan
content attributes.colSpan
,
rowSpan
,
and
cellIndex
DOM attributes.View “Section 3.13.13, Processing model” in the 10 June 2008 version of the specification.
View “Section 3.13.13, Processing model” 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:
tfoot
and caption
elements, as well as a
number of other changes, including a reformulation and
refinement of a part of the previous text to form an
algorithm for growing downward-growing
cells.View “Section 3.14 [was 3.16], Forms” in the 10 June 2008 version of the specification.
View “Section 3.14 [was 3.16], Forms” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section is currently a placeholder without any content except the following editorial notes.
This section will contain definitions of the form element and so forth.
This section will be a rewrite of the HTML4 Forms and Web Forms 2.0 specifications, with hopefully no normative changes.
If a form is in a browsing context whose sandboxed forms browsing context flag is set, it must not be submitted.
View “Section 3.15 [was 3.17], Scripting” in the 10 June 2008 version of the specification.
View “Section 3.15 [was 3.17], Scripting” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
An introduction was added for this section. The full text of that introduction reads:
Scripts allow authors to add interactivity to their documents.
Authors are encouraged to use declarative alternatives to scripting where possible, as declarative mechanisms are often more maintainable, and many users disable scripting.
For example, instead of using script to show or hide a section to show more details, the details element could be used.
Authors are also encouraged to make their applications degrade gracefully in the absence of scripting support.
For example, if an author provides a link in a table header to dynamically resort the table, the link could also be made to function without scripts by requesting the sorted table from the server.
View “Section 3.15.1, The script element” in the 10 June 2008 version of the specification.
View “Section 3.15.1, The script element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, a number of significant changes were made made:
charset
content attribute was added to the list of conformant
attributes for the element, and the
charset
DOM attribute was added to the interface definition for
the HTMLScriptElement
interface.charset
content attribute and
charset
DOM attribute were added.script
element
and the algorithm for running scripts in script
blocks within documents were revised
extensively.View “Section 3.15.2, The noscript element” in the 10 June 2008 version of the specification.
View “Section 3.15.2, The noscript 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 noscript element is only effective in the HTML serialization, it has no effect in the XML serialization.
The noscript element interacts poorly with the designMode feature. Authors are encouraged to not use noscript elements on pages that will have designMode enabled.
View “Section 3.15.3, The event-source element” in the 10 June 2008 version of the specification.
View “Section 3.15.3, The event-source 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 regarding the
src
attribute was
changed to now read (changed text highlighted), The
src attribute, if specified, must give a URI (or IRI)
pointing to a resource that uses the
text/event-stream
format.
(The highlighted part had previously read,
“application/x-dom-event-stream”.
View “Section 3.16 [was 3.18], Interactive elements” in the 10 June 2008 version of the specification.
View “Section 3.16 [was 3.18], Interactive elements” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section concerns the details
, datagrid
, command
, menu
elements.
View “Section 3.16.2, The datagrid element” in the 10 June 2008 version of the specification.
View “Section 3.16.2, The datagrid element” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
datagrid
is a new element and feature introduced in HTML 5. It
is an interactive representation of a tree, a list, or
a set of tabular data. Support for the datagrid
feature has not yet
been implemented in any user agents.
In this section, the following changes were made:
datagrid
element belongs.Flow content, but where the first element child node, if any, is not a table, select, or datalist element
DataGridDataProvider
interface was
updated for consistency with the Web IDL
specification [WebIDL].setCellCheckedState()
method
was revised to read (change highlighted), “The state
should be represented by the number 1 if the new
state is checked, 0 if the new state is unchecked,
and −1 if the new state is
indeterminate.”DataGridSelection
interface was
updated for consistency with the Web IDL
specification [WebIDL].View “Section 3.16.5, Commands” in the 10 June 2008 version of the specification.
View “Section 3.16.5, Commands” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section concerns the command
abstraction behind menu items, buttons, and links. In
this section, the interface definition for the
Command
interface was updated for
consistency with the Web IDL specification [WebIDL].
View “Section 3.17 [was 3.19], Data Templates” in the 10 June 2008 version of the specification.
View “Section 3.17 [was 3.19], Data Templates” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section concerns the
datatemplate
,
rule
,
and
nest
elements. No substantive changes were added to this
section, and support for the
datatemplate
elements and its associated elements remains
unimplemented in any user agents.
View “Section 3.18 [was 3.20], Miscellaneous elements” in the 10 June 2008 version of the specification.
View “Section 3.18 [was 3.20], Miscellaneous elements” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section concerns the
legend
,
and
div
elements. No substantive changes were made in this
section (other than global changes that were made to
other parts of the specification as well; for example,
the replacement of the term “prose content” with the
term flow content).
View “Section 4, Web browsers” in the 10 June 2008 version of the specification.
View “Section 4, Web browsers” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section, which applies most directly to Web browsers, defines features affecting environments that deal with multiple pages, links between pages, and running scripts.
View “Section 4.1, Browsing context” in the 10 June 2008 version of the specification.
View “Section 4.1, Browsing context” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section defines a browsing context as “a collection of one or more Document objects, and one or more views, as well as particular browsing contexts, including the active document“. In this section, the following changes were made:
When a browsing context is first created, it must be created with a single Document in its session history, whose address is about:blank, which is marked as being an HTML document, and whose character encoding is UTF-8.
about:blank
Document
object
is set.
The transitive closure of parent browsing contexts for a nested browsing context gives the list of ancestor browsing contexts.
A nested browsing context can have a seamless browsing context flag set, if it is embedded through an iframe element with a seamless attribute.
User agent implementors are encouraged to provide a way for users to configure the user agent to always reuse the current browsing context.
View “Section 4.2, The default view” in the 10 June 2008 version of the specification.
View “Section 4.2, The default view” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section defines the interface for the
Window
object. In this section, the
following changes were made:
localStorage
attribute (which was previously named globalStorage
and to add
the showModalDialog
and
XXX4
methods and onstorage
attribute.
(Note that the “XXX4
“
name is simply a placeholder; it is not intended that
the method will be implemented with that literal name.)XXX4
and frames
attribute were
added to the list of exceptions.valid browsing context name or keyword, and conformance requirements related to using the script execution context were added.
View “Section 4.3 [was 4.3.2], Origin” in the 10 June 2008 version of the specification.
View “Section 4.3 [was 4.3.2], Origin” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section, which had been a subsection
of the “Scripting” section, was moved up a level in the
section hierarchy to instead become a sibling to section
to the “Scripting” section. This section defines the
origin and effective script
origin of a resource (a URI, a script, or a
Document
object or image). In this section,
the following changes were made:
domain
attribute on
Document
objects.View “Section 4.3 [now 4.4], Scripting” in the 10 June 2008 version of the specification.
View “Section 4.3 [now 4.4], Scripting” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section provides conformance criteria related to mechanisms that can cause author-provided executable code to run in the context of a document scripting, as well as defining the states scripting is enabled and scripting is disabled.
A node is said to be with script if it is not without script), along with the following editorial note:
If you can find a better pair of terms than “with script” and “without script” let me know. The only things I can find that are less confusing are also way, way longer.
The rules for handling script execution in a script execution context include making the script not execute (and just return void) in certain cases, e.g. in a sandbox or when the user has disabled scripting altogether.
onstorage
event to the list of
event handler attributes that must be supported by all
HTML elements and on Window
objects. Also,
a statement related to the script execution
context was added, and, in the
same subsection, a clarifying statement that The listener argument is emphatically not the event handler attribute itself.Also, for consistency with the Web IDL specification [WebIDL], some statements that provided conformance criteria for ECMAScript DOM bindings were removed.
View “Section 4.4 [now 4.5], User prompts” in the 10 June 2008 version of the specification.
View “Section 4.4 [now 4.5], User prompts” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section provides conformance criteria related to dialogs presented to users. In this section, the following changes were made:
showModalDialog()
method is
invoked.short, transient messages that bring the user’s attention to new information, or remind the user of scheduled events, and defines a new
showNotification()
method.print()
method is invoked, including steps related to the
beforeprint
and
afterprint
eventsView “Section 4.5 [now 4.6], Browser state” in the 10 June 2008 version of the specification.
View “Section 4.5 [now 4.6], Browser state” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section defines how Web sites can
register themselves as potential protocol and content
handlers; for example, how a Web-based mail application
can register itself as a potential handler for the
mailto:
protocol.
No changes at all were made to this section since the FPWD.
View “Section 4.6 [now 4.7], Offline Web applications” in the 10 June 2008 version of the specification.
View “Section 4.6 [now 4.7], Offline Web applications” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section defines a mechanism by which Web applications can maintain an application cache, with an accompanying manifest, that allows some limited use of the application even when the user is offline.
A variety of refinements have been made to this section since the FPWD.
View “Section 4.7 [now 4.8], Session history and navigation” in the 10 June 2008 version of the specification.
View “Section 4.7 [now 4.8], Session history and navigation” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section defines the session
history for a browsing context and its
associated History
interface. In this
section, the following changes were made:
Location
interface, and a
statement related to the script execution
context was added.View “Section 4.9 [new], Browsing the Web” in the 10 June 2008 version of the specification.
View “Section 4.9 [new], Browsing the Web” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section was formed by moving the contents of the existing “Navigating across documents” section down one level in the section hierarchy and adding to it a subsection on “History traversal”, which was moved here from the “Session history and navigation” section.
A number of changes were made to the content that was moved to form this section — among them, the addition of statements related to the source browsing context and some criteria related to the “opportunistic caching namespace” and “opportunistically cached entries”, to setting of document character encoding, and to the sandboxed plugins browsing context flag.
View “Section 4.9 [now 4.10], Determining the type of a new resource in a browsing context” in the 10 June 2008 version of the specification.
View “Section 4.9 [now 4.10], Determining the type of a new resource in a browsing context” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section provides conformance criteria related to content-type sniffing. In this section, the following changes were made:
image/vnd.microsoft.icon
type was added in two
tables that list byte sequences used in the
type-sniffing algorithm.The above algorithm is a willful violation of the HTTP specification.
View “Section 4.11 [new], Structured client-side storage” in the 10 June 2008 version of the specification.
View “Section 4.11 [new], Structured client-side storage” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section was formed by combining the existing “Client-side session and persistent storage of name/value pairs” and “Client-side database storage” sections with common sections related to disk space, security, and privacy. A number of changes were made in these content that is now in this section — among those changes are the following:
globalStorage
DOM
attribute was renamed to localStorage
.StorageEvent
interface, with
initStorageEvent()
and initStorageEventNS()
methods.Each site has its own separate storage area.
Implementation feedback is requested on what to do with arguments that are of types that are not supported by the underlying SQL backend. For example, SQLite doesn’t support booleans, so what should the UA do if passed a boolean? The Gears team suggests failing, not silently converting types.
SQLResultSetRowList
interface was updated
for consistency with the Web IDL specification [WebIDL].View “Section 4.12, Links” in the 10 June 2008 version of the specification.
View “Section 4.12, Links” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section provides conformance criteria related to handling of hyperlinks. This section remains largely unchanged, though some significant changes were made to — among those, the following:
valid browsing context name or keyword.
a
or area
element that has a
ping
attribute); a
statement was added that All relevant cookie and HTTP authentication headers must be included in the request. Which other headers are required depends on the URIs involved, and criteria was added for conditions under which
Ping-From
,
Ping-To
, and Referer
HTTP
headers must be included.sizes
attribute (for
specifying sizes for icon link types) and its
conformant valuestype
attribute was
added to the set of attributes that user agents must
use when to select the most appropriate icon when
multiple icons are available.
If the user agent tries to use an icon but that icon is determined, upon closer examination, to in fact be inappropriate (e.g. because it uses an unsupported format), then the user agent must try the next-most-appropriate icon as determined by the attributes.
If there are multiple equally appropriate icons, user agents must use the last one declared in tree order.
sizes
attribute, the following statement was added:
If the attribute is not specified, then the user agent must assume that the given icon is appropriate, but less appropriate than an icon of a known and appropriate size.
The nofollow keyword indicates that the link is not endorsed by the original author or publisher of the page, or that the link to the referenced document was included primarily because of a commercial relationship between people affiliated with the two pages.
There is no default type for resources given by the “prefetch” keyword.
The default type for resources given by the stylesheet keyword is text/css, and a description was added of quirks-mode behavior with respect to this link type.
Only one link is created for the set of one or more “up” keywords and, if present, the “index” keyword.
View “Section 4.13, Interfaces for URI manipulation” in the 10 June 2008 version of the specification.
View “Section 4.13, Interfaces for URI manipulation” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section specifies a set of attributes for any
interface that has a “complement of URI decomposition
attributes”. In this section, a statement was added to
specify conformant behavior when replacing a component
in a URI, and a change was made to the parsing rules for
the port
attribute.
View “Section 5, Editing” in the 10 June 2008 version of the specification.
View “Section 5, Editing” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section describes various features that allow authors to enable users to interactively edit documents and parts of documents.
View “Section 5.2, The contenteditable attribute” in the 10 June 2008 version of the specification.
View “Section 5.2, The contenteditable attribute” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section defines handling of HTML
elements that have the contenteditable
attribute.
In this section, the following changes were made:
isContentEditable
DOM
attribute.
In response to a request from a user to mark text up in italics, user agents should use thei
element to represent the semantic. Theem
element should be used only if the user agent is sure that the user means to indicate stress emphasis.
In response to a request from a user to mark text up in bold, user agents should use theb
element to represent the semantic. Thestrong
element should be used only if the user agent is sure that the user means to indicate importance.
designMode
DOM attribute
on the Document
object is set.View “Section 5.3, Drag and drop” in the 10 June 2008 version of the specification.
View “Section 5.3, Drag and drop” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section defines an event-based drag-and-drop
mechanism. The bulk of this section remains unchanged
from the FPWD, with the exception of a handful of
statements that were refined or removed from the
section, and the single significant addition to the
section being the addition of a types
DOM attribute to the
DataTransfer
interface, and a description of its
handling.
View “Section 5.4, Undo history” in the 10 June 2008 version of the specification.
View “Section 5.4, Undo history” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section defines how to associate an undo
transaction history with each
HTMLDocument
object, and an
UndoManager
interface for
manipulating that undo transaction history. The bulk of
this section remains unchanged from the FPWD, and the
mechanism is specifies remains unimplemented in any user
agents. The only changes to this section were, for
consistency with the Web IDL specification [WebIDL], the removal
of a sentence stating conformance requirements for the
associated ECMAScript DOM binding for the
UndoManager
interface, and a change to the
interface definition for the UndoManager
interface.
View “Section 5.5 [now 5.6], Command APIs” in the 10 June 2008 version of the specification.
View “Section 5.5 [now 5.6], Command APIs” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section defines an execCommand
method on the
HTMLDocument
interface, mainly to allow
scripts to editor UI that allows users to perform
actions on the current selection or at the current caret
position. In this section, the following changes were
made:
queryCommandEnabled
queryCommandIndeterm
queryCommandState
queryCommandSupported
queryCommandValue
View “Section 5.6 [now 5.5], The text selection APIs” in the 10 June 2008 version of the specification.
View “Section 5.6 [now 5.5], The text selection APIs” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section defines a selection
that exists for each instance of a browsing context, and
a Selection
interface with a getSelection()
method for
retrieving the selection. In this section, the following
changes were made:
Selection
interface was updated for
consistency with the Web IDL specification [WebIDL].toString()
method in this
section were changed to refer instead to
stringification.
may selectively ignore attempts to use the API to adjust the selection made after the user has modified the selectionand
may also allow the user to create selections that are not exposed to the API.
View “Section 6, Communication” in the 10 June 2008 version of the specification.
View “Section 6, Communication” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
Applications written in HTML often require mechanisms to communicate with remote servers, as well mechanisms for applications from different domains running on the same client to communicate with each other (so-called “cross-document messaging”). This section defines APIs for enabling those classes of communication; specifically, APIs for cross-document messaging, for server-sent DOM events, and for network connections — as well as providing the interface definitions for messages sent in cross-document messaging and server-sent DOM events.
View “Section 6.1, Event definitions” in the 10 June 2008 version of the specification.
View “Section 6.1, Event definitions” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section defines the MessageEvent
interface. In this section, the following changes were
made:
domain
attribute was renamed origin
(and its definition
was refined), the uri
attribute was removed,
and the lastEventId
attribute was added.View “Section 6.2, Server-sent DOM events” in the 10 June 2008 version of the specification.
View “Section 6.2, Server-sent DOM events” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section describes a mechanism for allowing servers to dispatch DOM events into documents that expect it. In this section, the specification for the server-sent events format was rewritten; among the specific changes made were the addition of language related to reconnection time and the last event ID string, and extensive changes to the “Interpreting an event stream” subsection.
View “Section 6.3, Network connections” in the 10 June 2008 version of the specification.
View “Section 6.3, Network connections” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section defines a Connection
interface to enable Web applications to communicate with
each other in local area networks, and to maintain
bidirectional communications with their originating
server. In this section, the only substantive changes
made were the addition of the readyState
attribute to the
Connection
interface, and corrections in
the “TCP connections” subsection to replace some
instances of “domain” with “host”. No other significant
changes were made (and the interface remains
unimplemented in any user agents).
View “Section 6.4, Cross-document messaging” in the 10 June 2008 version of the specification.
View “Section 6.4, Cross-document messaging” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section introduces a messaging system, using the
postMessage()
method, that
allows documents to communicate with each other
regardless of their source domain, in a way designed to
not enable cross-site scripting attacks. In this
section, the following changes were made:
postMessage()
method
was changed from being synchronous to being
asynchronous.postMessage()
method.postMessage()
method was
expanded and made into a numbered set of steps.View “Section 7, Repetition templates” in the 10 June 2008 version of the specification.
View “Section 7, Repetition templates” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section was an empty placeholder in the FPWD, and not additions were made to it, so it remains so. Its intended purpose is to define a mechanism to support repeating sections in forms.
View “Section 8, The HTML syntax” in the 10 June 2008 version of the specification.
View “Section 8, The HTML syntax” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section describes syntax rules for the
text/html
serialization of the HTML language,
as well as rules for parsing and serializing it.
View “Section 8.1, Writing HTML documents” in the 10 June 2008 version of the specification.
View “Section 8.1, Writing HTML documents” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section provides basic syntax conformance requirements that apply to documents, authoring tools, and markup generators. In this section, the following changes were made:
The U+0000 NULL character must not appear anywhere in a document.
html
,
head
, and
body
elements and handling of newlines inserted after the
DOCTYPE
was refined.Elements from the MathML namespacewas added, and other parts of the section were updated to add language related to foreign elements.
A p element must not contain blockquote, dl, menu, ol, pre, table, or ul elements, even though these elements are technically allowed inside p elements according to the content models described in this specification. (In fact, if one of those elements is put inside a p element in the markup, it will instead imply a p element end tag before it.)
Named character references, and other instances of the term “character entity references” were changed to “character references”.
must not start with a single U+003E GREATER-THAN SIGN (‘>‘) character, nor start with a U+002D HYPHEN-MINUS (-) character followed by a U+003E GREATER-THAN SIGN (‘>‘) character
View “Section 8.2, Parsing HTML documents” in the 10 June 2008 version of the specification.
View “Section 8.2, Parsing HTML documents” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section defines parsing rules used by
user agents, data mining tools, and conformance
checkers in parsing text/html
content. In
this section, the following changes were made:
This specification does not make any attempt to support UTF-32 in its algorithms; support and use of UTF-32 can thus lead to unexpected behavior in implementations of this specification.
If the new encoding is a UTF-16 encoding, change it to UTF-8.
While the invocation of this algorithm is not a parse error, it is still indicative of non-conforming content.
The requirement to treat certain encodings as other encodings according to the table above is a willful violation of the W3C Character Model specification.
innerHTML
used with
td
and
th
.The scripting flag is set to “enabled” if the Document with which the parser is associated was with script when the parser was created, and “disabled” otherwise.
After attribute value (quoted) state, a
Self-closing start tag state, and a
CDATA block state. Also, statements that had referred to setting the public identifier and system identifier to “the empty string” were emended to read refer to setting them to
the empty string (not missing); statements that referred to the state in which the public identifier or system identifier was “not set” were revised to instead refer to those as being the case were a public identifier or system identifier was “missing”, and the following statement was added:
A system identifier whose value is the empty string is not considered missing for the purposes of the conditions above.
//EN
were revised to drop the
//EN
, and the accompanying text was
changed to say that instead of the public
identifier being “set to” a particular doctype
string that it instead “starts with” that
particular doctype string.ruby
,
rp
,
and
rt
elements
were added.noframes
element
as a child of the
head
element, and to cause a
textarea
element
within a
select
element to imply an end tag for the
select
element.command
,
event-source
,
article
,
aside
,
datagrid
,
dialog
,
footer
,
header
,
nav
,
section
,
param
,
source
,
An end tag whose tag name is “sarcasm”
Take a deep breath, then act as described in the “any other end tag” entry below.
if the scripting flag is enabled.
View “Section 8.3, Namespaces” in the 10 June 2008 version of the specification.
View “Section 8.3, Namespaces” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, namespace URIs were added for the following: MathML, SVG, XLink, XML, XMLNS.
View “Section 8.4, Serializing HTML fragments” in the 10 June 2008 version of the specification.
View “Section 8.4, Serializing HTML fragments” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, some language refinements were made, and ProcessingInstruction handling was added to the HTML fragment serialization algorithm.
View “Section 8.5, Parsing HTML fragments” in the 10 June 2008 version of the specification.
View “Section 8.5, Parsing HTML fragments” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
In this section, some minor refinements were made, and a requirement about switching the HTML parser‘s tree construction stage was removed from one of the parsing steps.
View “Section 8.6, Entities [now "Named character references"]” in the 10 June 2008 version of the specification.
View “Section 8.6, Entities [now "Named character references"]” 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 entire “WYSIWYG editors” section was removed from the specification. It had provided information that attempted to “allow a way for WYSIWYG editors, which aren’t going to use semantic markup, to still write conforming documents, while not letting it be ok for hand-coding authors to not use semantic markup”.
View “Section 10 [now section 9], Rendering and user-agent behavior” in the 10 June 2008 version of the specification.
View “Section 10 [now section 9], Rendering and user-agent behavior” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This section is intended to provide descriptions of expected user-agent rendering behavior as well as other user-agent behavior, but remains mostly just a placeholder at this point, with the plan being to complete the section later. In this section, the following changes were made:
applet
element and obsolete parts
of DOM interface for the body
element.View “Section 11 [now section 10], Things that you can't do with this specification…” in the 10 June 2008 version of the specification.
View “Section 11 [now section 10], Things that you can't do with this specification…” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
This mostly non-normative section describes certain features that the specification, by design, does not address — because “a client-side markup language is not the right level for them, or because the features exist in other languages that can be integrated into” HTML. In this section, the following changes were made:
WindowTimers
and
TimeoutHandler
interfaces were updated, and
a paragraph was removed that stated conformance
requirements for the handleEvent()
method in the
TimeoutHandler
interface of the ECMAScript
DOM binding.View “Acknowledgements” in the 10 June 2008 version of the specification.
View “Acknowledgements” in a diff-marked version of the specification, showing changes made between 22 January 2008 and 10 June 2008.
The following names were added to the list of names in the Acknowledgements:
Adam Barth, Addison Phillips, Adele Peterson, Alastair Campbell, Anders Carlsson, Anthony Ricaud, Arphen Lin, Ashley Sheridan, Aurelien Levy, Ben Millard, Brian Smith, Bruce Miller, Cameron McCormack, Daniel Glazman, Danny Sullivan, Dave Camp, David Bloom, David Carlisle, Dean Edridge, Debi Orton, Evan Prodromou, Geoffrey Garen, Henry Mason, Hugh Winkler, Jacques Distler, James Justin Harrell, Jason White, Jens Fendler, Jjgod Jiang, Johan Herland, Jim Jewett, Jim Meehan, Joe Clark, Julian Reschke, Laura L. Carlson, Laura Wisewell, Lee Kowalkowski, Leif Halvard Silli, Magnus Kristiansen, Masataka Yakura, Michael Carter, Michael(tm) Smith, Neil Soiffer, Olaf Hoffmann, Oliver Hunt, Peter Karlsson, Philip TAYLOR, Ralf Stoltze, Raphael Champeimont, Rene Saarsoo, Richard Ishida, Steve Faulkner, Sunava Dutta, Terrence Wood, Tim Johansson, Wayne Pollock, Yi-An Huang