Web workers, and how to specify alternate text for images you know nothing about.
Welcome to a new semi-regular column, "this week in HTML 5, "where I'll try to summarize the major activity in the ongoing standards process in the whatwg and W3C HTML Working Group.
The biggest news is the birth of the Web workers draft Specification. quoting the spec, "This specification defines an API that allows web application authors to spawn background workers running scripts in parallel to their main page. this allows for thread-like operation with message-passing as the coordination mechanic. "This is the standardization of the API that Google gears pioneered last year. see also: initial workers thread, announcement of new spec, response to workers feedback.
Also notable this week: even more additions to the requirements for providing text to act as an alternative for images. 4 new cases were added:
- A link containing nothing but an image
- A group of images that form a single larger image
- An image not intended for the user (such as a "Web bug" tracking image)
- Text that has been rendered to a graphic for typographical Effect
Additionally, the spec now tries to define what authors shocould do if they know they have an image but don't know what it is. Quoting again from the spec:
If the SRC
attribute is set and the alt
attribute is set to a string whose first character is a U + 007b left curly bracket character ({) and whose last character is a U + 007d right curly bracket character (}), the image is a key part of the content, and there is no textual equivalent of the image available. the string consisting of all the characters between the first and the last character of the value of the alt
attribute gives the kind of image (e.g. photo, digoal, user-uploaded image ). if that value is the empty string (I. e. the attribute is just "{}
"), then even the kind of image being shown is not known.
- If the image is available, the element represents the image specified by the src attribute.
- If the image is not available or if the user agent is not configured to display the image, then the user agent shoshould display some sort of indicator that the image is not being rendered, and, if possible, provide to the user the information regarding the kind of image that is (as derived from the alt attribute ).
See also: Revision 1972, revision 1976, revision 1978, revision 1979, images and alternate text.
Other interesting changes this week:
-
- Revision 1951: Define
Window. Top
-
- Revision 1956: "user agents must not run executable code embedded in the image resource ."
-
- Revision 1958: more notes on what is a valid image (a surprisingly difficult question)
- Revision 1965: Allow
<A>
Elements to straddle paragraphs
-
- Revision 1998: Define what happens when you set
Onclick =''
On a document outside a window
-
- Revision 1999: Define
Javascript:
In window-less Environments
-
- Revision 2001: Define 'ctionalality 'in terms of
Dir =''
Attribute for cases where'Direction'
Property has no computed value
-
- Re vision 2002: Define processing for the second argument
Getdataurl ()
ForImage/JPEG
-
- Revision 2004: specify how to handle transparent images in
Todataurl ()
Method
-
- Revision 2008: Make patterns required in
<Canvas>
API
- Revision 2016: When
<SCRIPT type = ''>
Is given, it must match the type of the script, even if the script is Javascript
-
- Revision 2019: Remove
Autosubmit =''
From<Menu>
Element
Tune in next week for another exciting episode of "this week in HTML 5 ."
This entry was posted
On Wednesday, August 6th, 2008 at 17: 32and is filed under processing model, whatwg, Weekly Review.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.