Changes
This section summarises substantial substantive changes between this specification and [HTML5].
Features added
-
The
picture
andsrcset
attributes allow responsive image selection. -
The
details
andsummary
elements enable authors to provide extended information that users can choose whether to read. -
The
menuitem
andtype="context"
attribute value enable authors to add functionality to the browser’s context menu. -
The
requestAnimationFrame
API allows for more efficient animation. -
enqueueJob
andnextJob
help explain Promise resolution in terms of microtasks. -
The
rev
attribute for links, primarily to support RDFa (previously defined in HTML 4). -
HTMLMediaElement
andsrcObject
objects. -
Enable cross-origin
track
andEventSource
and cross-origin content forImageBitmap
incanvas
. -
event-source-error
,event-track-error
andevent-track-load
events for media fetching. -
onrejectionhandled
andonunhandledrejection
and APIs for tracking promise rejection. -
HTMLTableCaptionElement
,HTMLTableSectionElement
,HTMLTableRowElement
, for HTML table elements. -
history.scrollRestoration
to control where a users' view is directed when navigating through their history. -
IDL
[SameObject]
, for some objects that return collections. -
Add "noopener" to
rel
andwindow
to allow for browsing contexts to be separated. -
nonce
attribute onscript
andstyle
to support the use of Content Security Policy.
Features removed
-
appCache
. -
Media Controllers.
-
The
command
API. -
The
usemap
attribute onobject
. -
The
accessKeyLabel
IDL attribute. -
The
form
attribute is no longer valid forlabel
. -
The
multiple
attribute oninput type="range"
. -
hreflang
andtype
attributes onarea
. -
The use of nested
section
elements each with anh1
to create an outline. -
Special handling of
isindex
in form submission. -
navigator.yieldForStorageUpdates()
and the Storage mutex. -
Disallow
tfoot
beforetbody
. -
[Exposed=Window]
for HTMLHyperLinkElementUtils,[Exposed=Window, Worker]
for DOMStringMap and IDLDate
.
Changes to existing features
-
The
accesskey
takes a single character as a value (as in HTML 4). -
header
andfooter
elements can be nested, if each level is within a sectioning element. -
option
elements can be empty. -
The
mousewheel
event is calledwheel
. -
The
value
attribute ofinput type="submit"
is translatable. -
A
figcaption
can appear anywhere within afigure
. -
Having
title
, or writing email to a friend does not make animg
missingalt
conformant. -
The content of
time
is phrasing content, or text. -
Blank
alt
onarea
elements with duplicatehref
attributes is no longer conformant. -
When navigating internally, the next search for a link etc starts from where the navigation moved to.
-
img
and related elements supportwidth="0"
. -
.tFoot
and.createTFoot()
always insert at the end of a table -
fieldset
andnamedItem
makeHTMLCollection
s notHTMLFormControlsCollection
s andHTMLOptionsCollection
s. -
frameElement
can returnnull
. -
For images which don’t resolve
currentSrc
is the URL given to the resolver, not necessarily the absolute URL. -
script
IDL attributes reflect. -
meta refresh
allows;
orurl=
to be optional. -
navigator.javaEnabled()
is a method. -
fileCallback
is calledblobcallback
. -
The
toBlob()
callback is non-nullable. -
origin
onHTMLHyperlinkElementUtils
andLocation
is readonly. -
The first
title
child of an SVG is its title, not the last. -
window.open()
can returnnull