HTML is the core language of the World Wide Web. The W3C publishes HTML5,
which is the fifth major revision of HTML. The WHATWG publishes HTML, which
is a rough superset of HTML5. "HTML5 differences from HTML4" describes the
differences of these documents from HTML4, and calls out cases where HTML is
different from HTML5. This document may not provide accurate information as
the specifications are still actively in development. When in doubt, always
check the specifications themselves
In addition to all of the above, Microdata, the 2D context API for
Specific microdata vocabularies are gone altogether in the W3C draft of HTML5 and are not published as a separate draft. The WHATWG draft of HTML5 still includes them.
In addition, the following parts of HTML5 have been taken out and will likely be further developed at the IETF:
Courtesy:http://www.w3.org/TR/2012/WD-html5-diff-20120329/#changelog
- Support for mutation observers was added.
- The
TextTrackCuemembersalignment,linePosition,textPositionanddirectionwere renamed toalign,line,positionandvertical, respectively. - The
commandelement now has acommandattribute. - Drag and drop content is now suggested to be filtered by user agents to prevent XSS attacks.
- The
translateglobal attribute was added. - The
showModalDialog(),alert(),confirm()andprompt()methods are now allowed to do nothing duringpagehide,beforeunloadandunloadevents. - The
scriptelement now supportsbeforescriptexecuteandafterscriptexecuteevents. window.onerrornow supports a fourth argument for column position.- The
window.openerIDL attribute can now return null in some cases. - The
clearTimeout()andclearInterval()methods were made synonymous. - The CSS
@globalat-rule was introduced, for use together withstyleelements with thescopedattribute. - The
embedandobjectelements now have a legacy caller. - The handling of
window.onerror's return value was changed to match reality. - The
setTimeout()API is now allowed to be throttled in background tabs. - The
:validand:invalidpseudo-classes now apply toformelements. - The
toBlob()method oncanvasnow honors the origin-clean flag. - The
activeElementIDL attribute now points to the relevant browsing context container (e.g.iframe) when a child document has focus. - The
atob()method now ignores whitespace. - The
dropzoneattribute was changed to use "string:" and "file:" instead of "s:" and "f:". - The HTML parser was fixed to correctly handle a case involving foreign lands and foster parenting.
- The date-and-time microsyntaxes now allows a single space instead of a "T".
- Application cache no longer checks the MIME type of the cache manifest.
- The
cueAsSourceIDL attribute onTextTrackCuegot renamed totext. - The
window.onerrorAPI is now invoked with dummy arguments for cross-origin scripts. - The
textareaelement'svalueandtextLengthIDL attributes have their newlines normalized to LF. - The
qelement now has language-specific quotes rendered by default. - The
dataelement was introduced. - The
timeelement was redesigned to make it match how people wanted to use it. Itspubdateattribute was dropped. - The legacy caller on
formwas removed. - The
location.resolveURL()method was removed. - The
trackelement now sniffs instead of obeying the MIME type. - The
load()method on documents created bycreateDocument()is now defined on theXMLDocumentinterface. - Members of
HTMLDocumentmoved toDocumentandwindow.HTMLDocumentnow just returnswindow.Document. - The
MutableTextTrackandTextTrackinterfaces were merged andTextTrackCuewas made more mutable. - The
selectedOptionIDL attribute oninputwas dropped. - Attribute values in Selectors are now case sensitive for all attributes.
- The
readyStateIDL attribute moved fromTextTracktoHTMLTrackElement. - The
text/html-sandboxedMIME type was dropped. - Floating point numbers are now allowed to begin with a "
." character. - Navigating to an audio or video resource is now supported.
- Table cells now allow flow content but does not allow
header,footer, sectioning content or heading content descendants. - Adding a track to a media element now fires an
addtrackevent on the relevant track list objects. - Setting
currentTimeon media elements before the media has loaded now defers the seek instead of throwing. - Plugins are no longer disabled in sandboxed
iframes if they honor thesandboxattribute. - Some tweaks to history navigation and related events.
- Media elements and
MediaControllers now get paused when they end. - Events now support constructors and some
init*Event()methods were removed. - Media elements now fire a
suspendevent when the resource is loaded. - Form submission now normalizes newlines to CRLF.
- Some tweaks around bidi and the
brelement. - Large parts of the Editing section moved to HTML Editing APIs.
UndoManagerand related features moved to UndoManager and DOM Transaction.isProtocolHandlerRegistered(),isContentHandlerRegistered(),unregisterProtocolHandler()andunregisterContentHandler()were added.registerContentHandler()now has a blacklist of MIME types.registerProtocolHandler()now has a whitelist of protocols, but also supports any protocol that starts with "web+".- Fragment identifiers for
text/htmlresources now don't need to point to an element with a matching ID. audioelements are now allowed to have zerosourcechildren.- There are now some restrictions on the use of bidi formatting characters.
- The
maxlengthandsizeattributes are allowed (but give warnings in validators) oninputelements withtype=number. - The link relation "
shortcut icon" is now allowed. - Heading elements are now allowed to have the
headingandtabroles. - Things that use
EventTargetnow inherit from it instead of using "implements". - The
setInterval()API now clamps to 4ms instead of 10ms. - The
selectelement and itsoptionscollection now have a setter. rel=helpon links now show a help cursor by default.- Calls to
window.print()before the document is loaded defers the print until it is loaded. - Application cache gained an
abort()method. HTMLCollection,DOMTokenList,getElementsByClassName(),createHTMLDocument(), HTML-specific overrides to some DOM Core features (likecreateElement()), some definitions, theidIDL attribute and ID handling moved to DOM4.- Fragment identifiers can now survive redirects.
- The
pushState()andreplaceState()methods now change the history entry to GET. - The command API now has its properties prefixed so they are now
commandLabel,commandIcon,commandHidden,commandDisabledandcommandChecked. - The structured clone algorithm now supports sparse arrays.
window.postMessagenow supports transferring some objects instead of cloning them, and supports transferringArrayBuffer.- Application cache was made stricter in its MIME type checking.
- The
placeholderattribute is now allowed oninputelements withtype=number. MediaControllergained anonendedevent listener.- The HTML parser changed its handling of U+0000 characters in some places.
- The
objectelement gained a new attributetypemustmatch, to make it safer for authors to embed untrusted resources where they expect a certain content type. - The
formattribute was removed frommeterandprogress. - The HTML parser was made more forward compatible in its handling of
ruby. - Some MIME types (e.g.
text/plain) that are guaranteed to never be supported as scripting types forscriptwere specified, so authors can safely use them for custom data blocks. about:blankdocuments created fromwindow.open()now get aloadevent.window.statuswas specified to exist but do nothing.- Drag and drop
DataTransferItemswas renamed toDataTransferItemList. - Application cache now supports 'no-store' and HTTPS.
- The structured clone algorithm now supports getters.
- The
crossoriginattribute has been added toimg,videoandaudioto use CORS. - The
externalIDL attribute has been added onwindowand has the membersAddSearchProvider()andIsSearchProviderInstalled().
- The 2d context now supports ellipses with the
arc()andarcTo()methods and the newellipse()method. - The 2d context now supports
Pathobjects. SVG path data can be added to aPath. - The
http+aes:andhttps+aes:URL schemes were added to allow sensitive resources to be held on untrusted servers. - When the
itempropattribute is used on an element where microdata gets its value from an attribute (likehrefonaelements), that attribute is now required. PeerConnectionwas moved to WebRTC.- WebVTT was moved to its own specification.
- WebSockets no longer receive messages in the
CLOSINGstate. - The Atom conversion algorithm was dropped.
- The
itemtypeattribute now allows multiple types. CanvasPixelArraywas dropped in favor ofUint8ClampedArray.- The microdata to RDF conversion algorithm was dropped.
- The
linkelement is no longer allowed to have bothrelanditemprop. - WebSocket API disallows opening an insecure connection if the document uses a secure connection.
- The "storage mutex" is made optional.
- Web Storage no longer supports structured data.
- The
aelement got a newdownloadattribute. This attribute is not included in HTML5. - An experimental specification for the
window.find()method was added. - The 2d context
fillText()andstrokeText()methods now do not collapse whitespace. - Microdata now handles infinite loops.
- Web Worker
locationnow stringifies. - Script errors in a Web Worker can now be detected in a parent worker or the document with the
onerrorhandler. EventSourcenow supports CORS.EventSourcewas made stricter in its MIME type checking.- Web Workers gained the
atob()andbtoa()methods. - Web Workers gained the
ononlineandonofflineevent handlers. - WebSockets API has the
errorevent again. - WebSockets API now exposes the selected extensions.
- Various tweaks to the UDP
PeerConnectionAPI. - WebSocket close code and reason are now supported in the API.
- Binary data is now supported in WebSockets.
- Redirects in WebSockets are now blocked for security reasons.
6.2 Changes from 5 April 2011 to 25 May 2011
- Support for the
javascript:scheme inimg,object, CSS, etc, has been dropped. - The
toBlob()method has been added tocanvas. - The
drawFocusRing()method on thecanvas2d context has been split into two methods,drawSystemFocusRing()anddrawCustomFocusRing(). - The
valuesattribute onPropertyNodeListhas been replaced with agetValues()method. - The
selectevent has been specified. - The
selectDirectionIDL attribute has been added toinputandtextarea. - The
:enabledand:disabledpseudo-classes now matchfieldset, and the:indeterminatepseudo-class can now matchprogress. - The
getKind()method has been added toTrackList. - The
MediaControllerAPI and themediagroupattribute have been added to synchronize playback of media elements. - Some ARIA defaults have changed, and it is now invalid to specify ARIA attributes that match the defaults.
- The
getName()method onTrackListwas renamed togetLabel(). - The
borderattribute ontableis now conforming. - The
uelement is now conforming. - The
summaryattribute ontableis now non-conforming. - The
audioattribute onvideowas changed to a booleanmutedattribute. - The
Content-Languagemeta pragma is now non-conforming.
6.3 Changes from 13 January 2011 to 5 April 2011
- The
pushStateandreplaceStatefeatures have been changed based on implementation feedback in Firefox, andhistory.statehas been introduced. - The
tracksIDL attribute on media elements has been renamed totextTracks. - Event handler content attributes now support ECMAScript strict mode.
- The
forminputandformchangeevents, and thedispatchFormInput()anddispatchFormChange()methods have been dropped. - The
relkeywordsarchives,up,last,index,firstand related synonyms have been dropped. - Removing a media element from the DOM and inserting it again in the same script now doesn't pause the media element.
- The
videoelement's letterboxing rules are now specified in terms of CSS 'object-fit'. - Cross-origin fonts now don't leak information about the font when drawn
on a
canvas. - The character encoding declaration is now allowed to be within the first 1024 bytes instead of the first 512 bytes.
- The
onerrorevent handler onwindowis now invoked for compile-time script errors as well as runtime errors. - Script-inserted
scriptelements now haveasyncdefault totrue, which can be set tofalseto make the scripts execute in insertion order. - The
atob()andbtoa()methods have been specified. - The suggested file extension for application cache manifest files has been
changed from
.manifestto.appcache. - The
actionandformactionattributes are no longer allowed to have the empty string as value.
6.4 Changes from 19 October 2010 to 13 January 2011
- Drag and drop model was refined.
- A new global
dropzoneattribute was added. - A new
bdielement was added to aid with user-generated content that may have bidi implications. - The
dirattribute gained a new "auto" value. - A
dirnameattribute was added toinputelements. When specified the directionality as specified by the user will be submitted to the server as well. - A new
trackelement and associated TextTrack API were added for video text tracks. - The
typeattribute on theolelement is now allowed.
getSelection() API moved to a separate
DOM Range draft.
Similarly UndoManager has been removed from the W3C copy of
HTML5 for now as it is not ready yet.6.5 Changes from 24 June 2010 to 19 October 2010
- Numerous changes to the HTML parsing algorithm based on implementation feedback.
- The
hiddenattribute now works for table-related elements. - The
canvasgetContext()method is now defined to be able to handle multiple contexts better. - The media elements'
startTimeIDL attribute was renamed toinitialTimeandstartOffsetTimewas added. - The
prefetchlink relationship can now be used onaelements. - The
datetimeattribute ofinsanddelno longer requires a time to be specified. - Using PUT and DELETE as HTTP methods for the
formelement is no longer supported. - The
selement is no longer deprecated. - The
videoelement has a newaudioattribute.
6.6 Changes from 4 March 2010 to 24 June 2010
- The
pingattribute has been removed from the W3C version of HTML5. - The
titleelement is optional foriframesrcdocdocuments and other scenarios where a title is already available. As is the case with email. keywordsis now a standard metadata name for themetaelement.- The
allow-top-navigationvalue has been added for thesandboxattribute on theiframeelement. It allows the embedded content to navigate its parent when specified. - The
wbrelement has been added. - The
alternatekeyword for therelattribute of thelinkelement can now be used to point to feeds again, even if the feed is not an alternative for the document. - The HTML to Atom mapping has been removed from the W3C version of HTML5.
6.7 Changes from 25 August 2009 to 4 March 2010
- The
dialogelement has been removed. A section with advice on how to mark up conversations has effectively replaced it. document.headhas been introduced to provide convenient access to theheadelement from script.- The link type
feedhas been removed.alternatewith specific media types is to be used instead. createHTMLDocument()has been introduced as API to allow easy creation of HTML documents.- Both the
meterandprogresselements no longer have "magic" processing of their contents because it could not be made to work internationally. - The
meterandprogresselements, as well as theoutputelement, can now be labeled using thelabelelement. - A new media type,
text/html-sandboxed, was introduced to allow hosting of potentially hostile content without it causing harm. - A
srcdocattribute for theiframeelement was introduced to allow embedding of potentially hostile content inline. It is expected to be used together with thesandboxandseamlessattributes. - The
figureelement now uses a new elementfigcaptionrather thanlegendbecause people want to use HTML5 long before it reaches W3C Recommendation. - The
detailselement now uses a new elementsummaryfor exactly the same reason. - The
autobufferattribute on media elements was renamed topreload.
In addition to all of the above, Microdata, the 2D context API for
canvas, and Web Messaging (postMessage() API)
have been split into their own drafts at the W3C (the WHATWG still
publishes a version of HTML5 that includes them):Specific microdata vocabularies are gone altogether in the W3C draft of HTML5 and are not published as a separate draft. The WHATWG draft of HTML5 still includes them.
6.8 Changes from 23 April 2009 to 25 August 2009
- When the
timeelement is empty user agents have to render the time in a locale-specific manner. - The
loadevent is dispatched atWindow, but now hasDocumentas its target. pushState()now affects theReferer(sic) header.onundoandonredoare now onWindow.- Media elements now have a
startTimemember that indicates where the current resource starts. headerhas been renamed tohgroupand a newheaderelement has been introduced.createImageData()now also takesImageDataobjects.createPattern()can now take avideoelement as argument too.- The
footerelement is no longer allowed inheaderandheaderis not allowed inaddressorfooter. - A new control has been introduced:
<input type="tel"> - The Command API now works for all elements.
accesskeyis now properly defined.sectionandarticlenow take aciteattribute.- 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.
textLengthhas been added as member of thetextareaelement.- The
rpelement now takes phrasing content rather than a single character. location.reload()is now defined.- The
hashchangeevent now fires asynchronously. - Rules for compatibility with XPath 1.0 and XSLT 1.0 have been added.
- The
spellcheckIDL attribute now maps to aDOMString. hasFeature()support has been reduced to a minimum.- The
Audio()constructor sets theautobufferattribute. - The
tdelement is no longer allowed inthead. - The
inputelement andDataTransferobject now have afilesIDL attribute. - The
datagridandbbhave 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.
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.
6.9 Changes from 12 February 2009 to 23 April 2009
- A new global attribute called
spellcheckhas been added. - Defined that ECMAScript
thisin the global object returns aWindowProxyobject rather than theWindowobject. - The
valueIDL attribute forinputelements in the File Upload state is now defined. - Definition of
designModewas changed to be more in line with legacy implementations. - The
drawImage()method of the 2D drawing API can now take avideoelement as well. - The way media elements load resources has been changed.
document.domainis now IPv6-compatible.- The
videoelement gained anautobufferboolean attribute that serves as a hint. - You are now allowed to specify the
metaelement with acharsetattribute 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
bufferingRateandbufferingThrottledmembers of media elements have been removed. - The media element resource selection algorithm is now asynchronous.
- The
postMessage()API now takes an array ofMessagePortobjects rather than just one. - The second argument of the
add()method on theselectelement and theoptionsmember of theselectelement is now optional. - The
action,enctype,method,novalidate, andtargetattributes oninputandbuttonelements 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.cookieandlocalStorage) at the same time. TheNavigatorgained 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/htmlresources. - The
placeholderattribute has been added to thetextareaelement. - Added a
keygenelement for key pair generation. - The
datagridelement was revised to make the API more asynchronous and allow for unloaded parts of the grid.
- WebSocket API
- WebSocket protocol
- Server-Sent Events
- Web Storage (
localStorageandsessionStorage) - Web SQL Database
6.10 Changes from 10 June 2008 to 12 February 2009
- The
datamember ofImageDataobjects has been changed from an array to aCanvasPixelArrayobject. - Shadows are now required from implementations of the
canvaselement and its API. - Security model for
canvasis clarified. - Various changes to the processing model of
canvashave 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(). innerHTMLin XML was slightly changed to improve round-tripping.- The
toDataURL()method on thecanvaselement now supports setting a quality level when the media type argument isimage/jpeg. - The
posterattribute of thevideoelement now affects its intrinsic dimensions. - The behavior of the
typeattribute of thelinkelement has been clarified. - Sniffing is now allowed for
linkwhen 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
hrefattribute of thebaseelement 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
xmlnsattribute with the valuehttp://www.w3.org/1999/xhtmlis now allowed on all HTML elements. data-*attributes and custom attributes on theembedelement now have to match the XMLNameproduction and cannot contain a colon.- WebSocket API is introduced for bidirectional communication with a server.
- The default value of
volumeon media elements is now 1.0 rather than 0.5. event-sourcewas renamed toeventsourcebecause no other HTML element uses a hyphen.- A message channel API has been introduced augmenting
postMessage(). - A new element named
bbhas 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
parentattribute of theWindowobject is now defined. - The
embedelement is defined to do extension sniffing for compatibility 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
embedcan now be used without itssrcattribute. getElementsByClassName()is defined to be ASCII case-insensitive in quirks mode for consistency with CSS.- In HTML documents
localNameno longer returns the node name in uppercase. data-*attributes are defined to be always lowercase.- The
openerattribute of theWindowobject is not to be present when the page was opened from a link withtarget="_blank"andrel="noreferrer". - The
topattribute of theWindowobject is now defined. - The
aelement now allows nested flow content, but not nested interactive content. - It is now defined what the
headerelement means to document summaries and table of contents. - What it means to fetch a resource is now defined.
- Patterns are now required for the
canvaselement. - The
autosubmitattribute has been removed from themenuelement. - Support for
outerHTMLandinsertAdjacentHTML()has been added. xml:langis now allowed in HTML whenlangis also specified and they have the same value. In XMLlangis allowed ifxml:langis also specified and they have the same value.- The
frameElementattribute of theWindowobject 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
altattribute is omitted atitleattribute, an enclosingfigureelement with alegendelement descendant, or an enclosing section with an associated heading must be present. - The
irrelevantattribute has been renamed tohidden. - The
definitionURLattribute 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,ruleandnestelements). - The media elements now support just a single
loopattribute. - The
load()method on media elements has been redefined as asynchronous. It also tries out files in turn now rather than just looking at thetypeattribute of thesourceelement. - A new member called
canPlayType()has been added to the media elements. - The
totalBytesandbufferedBytesattributes have been removed from the media elements. - The
Locationobject gained aresolveURL()method. - The
qelement has changed again. Punctuation 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
unloadandbeforeunloadevents 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
headersattribute pointing to atdorthelement, but authors are required to only let them point tothelements. - Interested parties can now register new
http-equivvalues. - When the
metaelement has acharsetattribute it must occur within the first 512 bytes. - The
StorageEventobject now has astorageAreaattribute. - It is now defined how HTML is to be used within the SVG
foreignObjectelement. - The notification API has been dropped.
- How [[Get]] works for the
HTMLDocumentandWindowobjects is now defined. - The
Windowobject gained thelocationbar,menubar,personalbar,scrollbars,statusbarandtoolbarattributes giving information about the user interface. - The application cache section has been significantly revised and updated.
document.domainnow 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] [CSSUI]
- Support for XML submission has been removed.
- Support for form filling has been removed.
- Support for filling of the
selectanddatalistelements through thedataattribute 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
formattribute. - The
dispatchChangeInput()anddispatchFormChange()methods have been removed from theselect,input,textarea, andbuttonelements. - Repetition templates have been removed.
- The
inputmodeattribute has been removed. - The
inputelement in the File Upload state no longer supports theminandmaxattributes. - The
allowattribute oninputelements in the File Upload state is no longer authoritative. - The
patternandacceptattributes fortextareahave 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
inputelement in the Range state now defaults to the middle, rather than the minimum value. - The
sizeattribute on theinputelement is now conforming (rather than deprecated). objectelements now partake in form submission.- The
typeattribute of theinputelement gained the valuescolorandsearch. - The
inputelement gained amultipleattribute which allows for either multiple e-mails or multiple files to be uploaded depending on the value of thetypeattribute. - The
input,buttonandformelements now have anovalidateattribute to indicate that the form fields should not be required to have valid values upon submission. - When the
labelelement contains aninputit may still have aforattribute as long as it points to theinputelement it contains. - The
inputelement now has anindeterminateIDL attribute. - The
inputelement gained aplaceholderattribute.
6.11 Changes from 22 January 2008 to 10 June 2008
- Implementation and authoring details around the
pingattribute have changed. <meta http-equiv=content-type>is now a conforming way to set the character encoding.- API for the
canvaselement has been cleaned up. Text support has been added. globalStorageis now restricted to the same-origin policy and renamed tolocalStorage. Related event dispatching has been clarified.postMessage()API changed. Only the origin of the message is exposed, no longer the URL. It also requires a second argument that indicates the origin of the target document.- Drag and drop API has got clarification. The
dataTransferobject now has atypesattribute indicating the type of data being transferred. - The
melement is now calledmark. - Server-sent events has changed and gotten clarification. It uses a new format so that older implementations are not broken.
- The
figureelement no longer requires a caption. - The
olelement has a newreversedattribute. - Character encoding detection has changed in response to feedback.
- Various changes have been made to the HTML parser section in response to implementation feedback.
- Various changes to the editing section have been made, including
adding
queryCommandEnabled()and related methods. - The
headersattribute has been added fortdelements. - The
tableelement has a newcreateTBody()method. - MathML support has been added to the HTML parser section. (SVG support is still awaiting input from the SVG WG.)
- Author-defined attributes have been added. Authors can add
attributes to elements in the form of
data-nameand can access these through the DOM usingdataset[name]on the element in question. - The
qelement has changed to require punctuation inside rather than having the browser render it. - The
targetattribute can now have the value_blank. - The
showModalDialogAPI has been added. - The
document.domainAPI has been defined. - The
sourceelement now has a newpixelratioattribute useful for videos that have some kind encoding error. bufferedBytes,totalBytesandbufferingThrottledIDL attributes have been added to thevideoelement.- Media
beginevent has been renamed toloadstartfor consistency with the Progress Events specification. charsetattribute has been added toscript.- The
iframeelement has gained thesandboxandseamlessattributes which provide sandboxing functionality. - The
ruby,rtandrpelements have been added to support ruby annotation. - A
showNotification()method has been added to show notification messages to the user. - Support for
beforeprintandafterprintevents has been added.
Acknowledgments
The editors would like to thank Ben Millard, Bruce Lawson, Cameron McCormack, Charles McCathieNevile, Dan Connolly, David Håsäther, Dennis German, Frank Ellermann, Frank Palinkas, Futomi Hatano, Gordon P. Hemsley, Henri Sivonen, James Graham, Jens Meiert, Jeremy Keith, Jürgen Jeka, Krijn Hoetmer, Leif Halvard Silli, Maciej Stachowiak, Mallory van Achterberg, Marcos Caceres, Mark Pilgrim, Martijn Wargers, Martyn Haigh, Masataka Yakura, Michael Smith, Mike Taylor, Ms2ger, Olivier Gendrin, Øistein E. Andersen, Philip Jägenstedt, Philip Taylor, Randy Peterman, Toby Inkster, and Yngve Spjeld Landro for their contributions to this document as well as to all the people who have contributed to HTML over the years for improving the Web!Courtesy:http://www.w3.org/TR/2012/WD-html5-diff-20120329/#changelog