diff --git a/sections/semantics-embedded-content.include b/sections/semantics-embedded-content.include index eae1e22ec1..2c7b543e3c 100644 --- a/sections/semantics-embedded-content.include +++ b/sections/semantics-embedded-content.include @@ -200,7 +200,7 @@
The <{picture}> element is somewhat different
@@ -813,12 +813,11 @@
has the same width descriptor value as another
image candidate string's width descriptor value for the same element.
- There must not be an image candidate string for an element that
- has the same pixel density descriptor value as another
- image candidate string's pixel density descriptor value for the same element.
- For the purpose of this requirement,
- an image candidate string with no descriptors is equivalent to
- an image candidate string with a 1x
descriptor.
+ There must not be an image candidate string for an element that has the same
+ pixel density descriptor value as another image candidate string's
+ pixel density descriptor value for the same element.
+ For the purpose of this requirement, an image candidate string with no descriptors
+ is equivalent to an image candidate string with a 1x
descriptor.
If a <{source}> element has a sizes
attribute present
or an <{img}> element has a sizes
attribute present,
@@ -904,9 +903,9 @@
available.
This, unfortunately, can be used to perform a rudimentary port scan of the - user's local network (especially in conjunction with scripting, though scripting isn't actually - necessary to carry out such an attack). User agents may implement cross-origin access control policies that are stricter than those - described above to mitigate this attack, but unfortunately such policies are typically not - compatible with existing Web content.
++ This, unfortunately, can be used to perform a rudimentary port scan of the user's local + network (especially in conjunction with scripting, though scripting isn't actually + necessary to carry out such an attack). User agents may implement cross-origin access + control policies that are stricter than those described above to mitigate this attack, but + unfortunately such policies are typically not compatible with existing Web content. +
- If the resource is CORS-same-origin, each task - that is queued by the networking task source - while the image is being fetched, if image request is the current - request, must fire a progress event namedprogress
at the <{img}> element.
+ If the resource is CORS-same-origin, each task that is queued by the
+ networking task source while the image is being fetched, if image request
+ is the current request, must fire a progress event named progress
+ at the <{img}> element.
@@ -1861,11 +1862,10 @@
Otherwise, let density be the result.
- If density is zero, - the intrinsic dimensions will be infinite. - User agents are expected to have limits in how big images can be rendered, - which is allowed by the hardware limitations clause. -
+ If density is zero, the intrinsic dimensions will be infinite. + User agents are expected to have limits in how big images can be rendered, + which is allowed by the hardware limitations clause. + @@ -2013,10 +2013,9 @@ and a unit ofx
.
- If the source size is zero, - the density would be infinity, - which results in the intrinsic dimensions being zero by zero. -
+ If the source size is zero, the density would be infinity, + which results in the intrinsic dimensions being zero by zero. + @@ -2035,11 +2034,11 @@ which image to use, in case the environment changes again in the meantime.)- User agents are encouraged to run this algorithm in particular when the user changes the viewport's size - (e.g., by resizing the window or changing the page zoom), - and when an <{img}> element is inserted into a document, - so that the density-corrected intrinsic width and height match the new viewport, - and so that the correct image is chosen when art direction is involved. + User agents are encouraged to run this algorithm in particular when the user changes the + viewport's size (e.g., by resizing the window or changing the page zoom), + and when an <{img}> element is inserted into a document, + so that the density-corrected intrinsic width and height match the new viewport, + and so that the correct image is chosen when art direction is involved.
- The usemap
and
- ismap
attributes
- can result in confusing behavior when used together with
- <{source}> elements with the
- media
attribute specified
- in a <{picture}> element.
+ The usemap
and ismap
attributes can result in confusing behavior
+ when used together with <{source}> elements with the media
attribute specified
+ in a <{picture}> element.
alt
, src
, srcset
and sizes
IDL attributes must reflect the
respective content attributes of the same name.
@@ -2922,7 +2917,7 @@
<p>A poem by Alfred Lord Tennyson</p>
</header>
- <img src="shalott.jpeg" alt="Painting - a young woman with long hair, sitting in a wooden boat. Full description below." longdesc="#des">
+ <img src="shalott.jpg" alt="Painting - a young woman with long hair, sitting in a wooden boat. Full description below." longdesc="#des">
<p><a href="#des">Description of the painting</a>.</p>
<!-- Full Recitation of Alfred, Lord Tennyson's Poem. -->
@@ -2942,6 +2937,7 @@
+
figure
is an <{img}> element and a figcaption
element, and the <{figcaption}> element must include (caption) content.
+
Such cases are to be kept to an absolute
minimum. If there is even the slightest possibility of the author
@@ -4124,10 +4121,10 @@
are to be allowed to use the PaymentRequest
interface
to make payment requests.
- The allowusermedia
attribute
- is a boolean attribute. When specified, it indicates that {{Document}} objects
- in the <{iframe}> element's browsing context are to be allowed to
- use {{Element/getUserMedia()}} (if it's not blocked for other reasons, e.g. there
+ The allowusermedia
attribute
+ is a boolean attribute. When specified, it indicates that {{Document}} objects
+ in the <{iframe}> element's browsing context are to be allowed to
+ use {{Element/getUserMedia()}} (if it's not blocked for other reasons, e.g. there
is another ancestor <{iframe}> without this attribute set).
To determine whether a {{Document}} object document is
@@ -4441,13 +4438,13 @@ attribute's value is a type that a plugin supports, then the value of the
- This allows servers to return data for plugins even with error responses (e.g., - HTTP 500 Internal Server Error codes can still contain plugin data). -
+ This allows servers to return data for plugins even with error responses (e.g., + HTTP 500 Internal Server Error codes can still contain plugin data). + Fetching the resource must delay the load event of the element's node document. @@ -4864,16 +4861,16 @@ attribute's value is a type that a plugin supports, then the value of theapplication/octet-stream
", then set binary to true.
+ If the type specified in the resource's Content-Type metadata is
+ "application/octet-stream
", then set binary to true.
image/
" that is
+ attribute's value is a type that starts with "image/
" that is
not also an XML MIME type, then let the resource type be the
type specified in that type
attribute.
@@ -4908,8 +4905,7 @@ attribute's value is a type that a plugin supports, then the value of the
- application/octet-stream
, then let resource type be
- tentative type and jump to the step below labeled
- handler.
+ tentative type and jump to the step below labeled handler.
For example, a plugin might say that it can handle resources with path components that end with the four character string
".swf
".
image/
"image/
"about:blank
, the
element's nested browsing context must then be navigated to that resource, with
@@ -5265,7 +5261,7 @@ attribute's value is a type that a plugin supports, then the value of the
teapot with a shiny metallic finish on which the
surroundings are reflected, with a faint shadow caused by
the lighting.">
- To see the teapot actually rendered by O3D on your computer, please download and install the +
To see the teapot actually rendered by O3D on your computer, please download and install the O3D plugin.
@@ -6192,9 +6188,10 @@ zero or more <{track}> elements, then when it is used to label a potential media resource.
- Only the MIME type "application/octet-stream
" with no
- parameters is special-cased here; if any parameter appears with it, it will be treated just like
- any other MIME type. This is a deviation from the rule that unknown MIME type parameters should be ignored.
+ Only the MIME type "application/octet-stream
" with no parameters is
+ special-cased here; if any parameter appears with it, it will be treated just like any other
+ MIME type. This is a deviation from the rule that unknown MIME type parameters
+ should be ignored.
duration
attribute to the value positive Infinity.
- The user agent will queue a task
- to fire a simple event named durationchange
at the element at this point.
-
durationchange
at the element at this point.
+
videoWidth
and videoHeight
attributes, and queue a task
- to fire a simple event named resize
at
- the media element.
+ For <{video}> elements, set the videoWidth
and videoHeight
+ attributes, and queue a task to fire a simple event named
+ resize
at the media element.
- Further resize
events will be fired
- if the dimensions subsequently change.
-
resize
events will be fired if the dimensions subsequently change.
+
readyState
attribute to HAVE_METADATA
.
- A loadedmetadata
DOM event
- will be fired as part of setting the readyState
attribute to a new value.
-
loadedmetadata
DOM event will be fired as part of setting the
+ readyState
attribute to a new value.
+
@@ -7059,12 +7055,15 @@ zero or more <{track}> elements, then
For example, with media formats that support the media fragment syntax - the fragment, can be used to indicate a start position. [[!MEDIA-FRAGS]]
+ media resource indicate a particular start time, then set the + initial playback position to that time and, if jumped is still + false, seek to that time and let jumped be true. + ++ For example, with media formats that support the media fragment syntax + the fragment, can be used to indicate a start position. + [[!MEDIA-FRAGS]] +
remote
attribute
+ The remote
attribute
MUST return the RemotePlayback object associated with the media element.
The disableRemotePlayback
attribute is a boolean
attribute. When present, the user agent MUST NOT play the media element remotely or present any UI to do so.
- When the <{media/disableRemotePlayback}> attribute is added to the attribute is added to the media element, the user agent MUST run the steps to disable remote playback.
A corresponding
- disableRemotePlayback
IDL attribute which reflects the
- value of each element’s <{media/disableRemotePlayback}> content
- attribute is added to the {{HTMLMediaElement}} interface. The
+ disableRemotePlayback IDL attribute which reflects the
+ value of each element’s <{media/disableRemotePlayback}> content
+ attribute is added to the {{HTMLMediaElement}} interface. The
{{HTMLMediaElement/disableRemotePlayback}} IDL attribute MUST reflect the content attribute of the same name.
cuechange
event to update the current annotations. (In
- particular, using the timeupdate
event would be less
- appropriate as it would require doing work even when the cues haven't changed, and, more
- importantly, would introduce a higher latency between when the metadata cues become active and
- when the display is updated, since timeupdate
events
- are rate-limited.)
+ When using cues in this manner, authors are encouraged to use the cuechange
event
+ to update the current annotations. (In particular, using the timeupdate
event
+ would be less appropriate as it would require doing work even when the cues haven't changed,
+ and, more importantly, would introduce a higher latency between when the metadata cues become
+ active and when the display is updated, since timeupdate
events are rate-limited.)
- Because a <{map}> element (and its <{area}> elements) can be - associated with multiple <{img}> and <{object}> elements, it is possible for an - <{area}> element to correspond to multiple focusable areas - of the document. + Because a <{map}> element (and its <{area}> elements) can be associated with multiple + <{img}> and <{object}> elements, it is possible for an <{area}> element to correspond to + multiple focusable areas of the document.
Image maps are live; if the DOM is mutated, then the user agent must act as if it @@ -12179,12 +12176,12 @@ red:89 Author requirements: Thewidth
and
- height
attributes
- on <{img}>, <{iframe}>, <{embed}>, <{object}>, <{video}>, and, when their type
attribute
- is in the <{input/Image|Image Button}> state, <{input}> elements may be
- specified to give the dimensions of the visual content of the element (the width and height
- respectively, relative to the nominal direction of the output medium), in CSS pixels. The
- attributes, if specified, must have values that are valid non-negative integers.
+ height
+ attributes on <{img}>, <{iframe}>, <{embed}>, <{object}>, <{video}>, and, when their
+ type
attribute is in the <{input/Image|Image Button}> state, <{input}> elements
+ may be specified to give the dimensions of the visual content of the element (the width and
+ height respectively, relative to the nominal direction of the output medium), in CSS pixels.
+ The attributes, if specified, must have values that are valid non-negative integers.
The specified dimensions given may differ from the dimensions specified in the resource itself,
since the resource may have a resolution that differs from the CSS pixel resolution. (On screens,
@@ -12207,8 +12204,9 @@ red:89
The target ratio is the ratio of the intrinsic width to the
- intrinsic height in the resource. The specified width and specified
- height are the values of the width
and height
attributes respectively.
+ intrinsic height in the resource. The specified width and
+ specified height are the values of the width
and height
+ attributes respectively.
The two attributes must be omitted if the resource in question does not have both an
intrinsic width and an intrinsic height.
@@ -12216,7 +12214,9 @@ red:89
If the two attributes are both zero, it indicates that the element is not intended for the user
(e.g., it might be a part of a service to count page views).
- The dimension attributes are not intended to be used to stretch the image.
++ The dimension attributes are not intended to be used to stretch the image. +
User agent requirements: User agents are expected to use these attributes as hints for the rendering. @@ -12229,13 +12229,14 @@ red:89
For <{iframe}>, <{embed}>, and <{object}> the IDL
- attributes are DOMString
; for <{video}> the IDL attributes are unsigned long
.
+ attributes are DOMString
; for <{video}> the IDL attributes are
+ unsigned long
.
The corresponding IDL attributes for <{img}> and - <{input}> elements are defined in those respective elements' - sections, as they are slightly more specific to those elements' other behaviors. + <{input}> elements are defined in those respective elements' + sections, as they are slightly more specific to those elements' other behaviors.