This week in HTML 5-Episode 1

Source: Internet
Author: User

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:

    1. A link containing nothing but an image
    2. A group of images that form a single larger image
    3. An image not intended for the user (such as a "Web bug" tracking image)
    4. 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: DefineWindow. 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 setOnclick =''On a document outside a window
  • Revision 1999: DefineJavascript:In window-less Environments
  • Revision 2001: Define 'ctionalality 'in terms ofDir =''Attribute for cases where'Direction'Property has no computed value
  • Re vision 2002: Define processing for the second argumentGetdataurl ()ForImage/JPEG
  • Revision 2004: specify how to handle transparent images inTodataurl ()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: RemoveAutosubmit =''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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.