在
5.2. Changes from 23 April 2009 to 25 August 2009
- When the
time
element is empty user agents have to render the time in a locale-specific manner. - The
load
event is dispatched atWindow
, but now hasDocument
as its target. pushState()
now affects theReferer
(sic) header.onundo
andonredo
are now onWindow
.- Media elements now have a
startTime
member that indicates where the current resource starts. header
has been renamed tohgroup
and a newheader
element has been introduced.createImageData()
now also takesImageData
objects.createPattern()
can now take avideo
element as argument too.- The
footer
element is no longer allowed inheader
andheader
is not allowed inaddress
orfooter
. - A new control has been introduced:
<input type="tel">
- The Command API now works for all elements.
accesskey
is now properly defined.section
andarticle
now take acite
attribute.- A new feature called Microdata has been introduced which allows people to embed custom data structures in their HTML documents.
- Using the Microdata model three predefined vocabularies have also been included: vCard, vEvent, and a model for licensing.
- Drag and drop has been updated to work with the Microdata model.
- The last of the parsing quirks has been defined.
textLength
has been added as member of thetextarea
element.- The
rp
element now takes phrasing content rather than a single character. location.reload()
is now defined.- The
hashchange
event now fires asynchronously. - Rules for compatibility with XPath 1.0 and XSLT 1.0 have been added.
- The
spellcheck
IDL attribute now maps to aDOMString
. hasFeature()
support has been reduced to a minimum.- The
Audio()
constructor sets theautobuffer
attribute. - The
td
element is no longer allowed inthead
. - The
input
element andDataTransfer
object now have afiles
IDL attribute. - The
datagrid
andbb
have been removed due to their design not being agreed upon. - The cue range API has been removed from the media elements.
- Support for WAI-ARIA has been integrated.
On top of this list quite a few minor clarifications, typos, issues specific to implementors, and other small problems have been resolved.
In addition, the following parts of HTML5 have been taken out and will likely be further developed at the IETF:
- Definition of URLs.
- Definition of Content-Type sniffing.
5.3. Changes from 12 February 2009 to 23 April 2009
- A new global attribute called
spellcheck
has been added. - Defined that ECMAScript
this
in the global object returns aWindowProxy
object rather than theWindow
object. - The
value
IDL attribute forinput
elements in the File Upload state is now defined. - Definition of
designMode
was changed to be more in line with legacy implementations. - The
drawImage()
method of the 2D drawing API can now take avideo
element as well. - The way media elements load resources has been changed.
document.domain
is now IPv6-compatible.- The
video
element gained anautobuffer
boolean attribute that serves as a hint. - You are now allowed to specify the
meta
element with acharset
attribute in XML documents if the value of that attribute matches the encoding of the document. (Note that it does not specify the value, it is just a talisman.) - The
bufferingRate
andbufferingThrottled
members of media elements have been removed. - The media element resource selection algorithm is now asynchronous.
- The
postMessage()
API now takes an array ofMessagePort
objects rather than just one. - The second argument of the
add()
method on theselect
element and theoptions
member of theselect
element is now optional. - The
action
,enctype
,method
,novalidate
, andtarget
attributes oninput
andbutton
elements have been renamed toformaction
,formenctype
,formmethod
,formnovalidate
, andformtarget
. - A "storage mutex" concept has been added to deal with separate pages trying to change a storage object (
document.cookie
andlocalStorage
) at the same time. TheNavigator
gained agetStorageUpdates()
method to allow it to be explicitly released. - A syntax for SVG similar to MathML is now defined so that SVG can be included in
text/html
resources. - The
placeholder
attribute has been added to thetextarea
element. - Added a
keygen
element for key pair generation. - The
datagrid
element was revised to make the API more asynchronous and allow for unloaded parts of the grid.
In addition, several parts of HTML5 have been taken out and will be further developed by the Web Applications Working Group as standalone specifications:
- WebSocket API
- WebSocket protocol
- Server-Sent Events
- Web Storage (
localStorage
andsessionStorage
) - Web SQL Database
5.4. Changes from 10 June 2008 to 12 February 2009
- The
data
member ofImageData
objects has been changed from an array to aCanvasPixelArray
object. - Shadows are now required from implementations of the
canvas
element and its API. - Security model for
canvas
is clarified. - Various changes to the processing model of
canvas
have been made in response to implementation and author feedback. E.g. clarifying what happens when NaN and Infinity are passed and fixing the definitions ofarc()
andarcTo()
. innerHTML
in XML was slightly changed to improve round-tripping.- The
toDataURL()
method on thecanvas
element now supports setting a quality level when the media type argument isimage/jpeg
. - The
poster
attribute of thevideo
element now affects its intrinsic dimensions. - The behavior of the
type
attribute of thelink
element has been clarified. - Sniffing is now allowed for
link
when the expected type is an image. - A section on URLs is introduced dealing with how URL values are to be interpreted and what exactly authors are required to do. Every feature of the specification that uses URLs has been reworded to take the new URL section into account.
- It is now explicit that the
href
attribute of thebase
element does not depend onxml:base
. - It is now defined what the behavior should be when the base URL changes.
- URL decomposition IDL attributes are now more aligned with Internet Explorer.
- The
xmlns
attribute with the valuehttp://www.w3.org/1999/xhtml
is now allowed on all HTML elements. data-*
attributes and custom attributes on theembed
element now have to match the XMLName
production and cannot contain a colon.- WebSocket API is introduced for bidirectional communication with a server.
- The default value of
volume
on media elements is now 1.0 rather than 0.5. event-source
was renamed toeventsource
because no other HTML element uses a hyphen.- A message channel API has been introduced augmenting
postMessage()
. - A new element named
bb
has been added. It represents a user agent command that the user can invoke. - The
addCueRange()
method on media elements has been modified to take an identifier which is exposed in the callbacks. - It is now defined how to mutate a DOM into an infoset.
- The
parent
attribute of theWindow
object is now defined. - The
embed
element is defined to do extension sniffing for compatibilty with servers that deliver Flash astext/plain
. (This is marked as an issue in the specification to figure out if there is a better way to make this work.) - The
embed
can now be used without itssrc
attribute. getElementsByClassName()
is defined to be ASCII case-insensitive in quirks mode for consistency with CSS.- In HTML documents
localName
no longer returns the node name in uppercase. data-*
attributes are defined to be always lowercase.- The
opener
attribute of theWindow
object is not to be present when the page was opened from a link withtarget="_blank"
andrel="noreferrer"
. - The
top
attribute of theWindow
object is now defined. - The
a
element now allows nested flow content, but not nested interactive content. - It is now defined what the
header
element means to document summaries and table of contents. - What it means to fetch a resource is now defined.
- Patterns are now required for the
canvas
element. - The
autosubmit
attribute has been removed from themenu
element. - Support for
outerHTML
andinsertAdjacentHTML()
has been added. xml:lang
is now allowed in HTML whenlang
is also specified and they have the same value. In XMLlang
is allowed ifxml:lang
is also specified and they have the same value.- The
frameElement
attribute of theWindow
object is now defined. - An event loop and task queue is now defined detailing script execution and events. All features have been updated to be defined in terms of this mechanism.
- If the
alt
attribute is omitted atitle
attribute, an enclosingfigure
element with alegend
element descendant, or an enclosing section with an associated heading must be present. - The
irrelevant
attribute has been renamed tohidden
. - The
definitionURL
attribute of MathML is now properly supported. Previously it would have ended up being all lowercase during parsing. - User agents must treat US-ASCII as Windows-1252 for compatibility reasons.
- An alternative syntax for the DOCTYPE is allowed for compatibility with some XML tools.
- Data templates have been removed (consisted of the
datatemplate
,rule
andnest
elements). - The media elements now support just a single
loop
attribute. - The
load()
method on media elements has been redefined as asynchronous. It also tries out files in turn now rather than just looking at thetype
attribute of thesource
element. - A new member called
canPlayType()
has been added to the media elements. - The
totalBytes
andbufferedBytes
attributes have been removed from the media elements. - The
Location
object gained aresolveURL()
method. - The
q
element has changed again. Punctation is to be provided by the user agent again. - Various changes were made to the HTML parser algorithm to be more in line with the behavior Web sites require.
- The
unload
andbeforeunload
events are now defined. - The IDL blocks in the specification have been revamped to be in line with the upcoming Web IDL specification.
- Table headers can now have headers. User agents are required to support a
headers
attribute pointing to atd
orth
element, but authors are required to only let them point toth
elements. - Interested parties can now register new
http-equiv
values. - When the
meta
element has acharset
attribute it must occur within the first 512 bytes. - The
StorageEvent
object now has astorageArea
attribute. - It is now defined how HTML is to be used within the SVG
foreignObject
element. - The notification API has been dropped.
- How [[Get]] works for the
HTMLDocument
andWindow
objects is now defined. - The
Window
object gained thelocationbar
,menubar
,personalbar
,scrollbars
,statusbar
andtoolbar
attributes giving information about the user interface. - The application cache section has been significantly revised and updated.
document.domain
now relies on the Public Suffix List. [PSL ]- A non-normative rendering section has been added that describes user agent rendering rules for both obsolete and conforming elements.
- A normative section has been added that defines when certain selectors as defined in the Selectors and the CSS3 Basic User Interface Module match HTML elements. [SELECTORS ] [CSS-UI ]
Web Forms 2.0, previously a standalone specification, has been fully integrated into HTML5 since last publication. The following changes were made to the forms chapter:
- Support for XML submission has been removed.
- Support for form filling has been removed.
- Support for filling of the
select
anddatalist
elements through thedata
attribute has been removed. - Support for associating a field with multiple forms has been removed. A field can still be associated with a form it is not nested in through the
form
attribute. - The
dispatchChangeInput()
anddispatchFormChange()
methods have been removed from theselect
,input
,textarea
, andbutton
elements. - Repetition templates have been removed.
- The
inputmode
attribute has been removed. - The
input
element in the File Upload state no longer supports themin
andmax
attributes. - The
allow
attribute oninput
elements in the File Upload state is no longer authoritative. - The
pattern
andaccept
attributes fortextarea
have been removed. - RFC 3106 is no longer explicitly supported.
- The
submit()
method now just submits, it no longer ensures the form controls are valid. - The
input
element in the Range state now defaults to the middle, rather than the minimum value. - The
size
attribute on theinput
element is now conforming (rather than deprecated). object
elements now partake in form submission.- The
type
attribute of theinput
element gained the valuescolor
andsearch
. - The
input
element gained amultiple
attribute which allows for either multiple e-mails or multiple files to be uploaded depending on the value of thetype
attribute. - The
input
,button
andform
elements now have anovalidate
attribute to indicate that the form fields sh