www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
HTML and CSS
Properties
 role Property
role Attribute | role Property
New for Windows Internet Explorer 8
Note: This documentation is preliminary and is subject to change.

Sets or retrieves the role for this element.

Syntax

HTML<ELEMENT role = v... >
Scripting[ v = ] object.role [ = v ]

Possible Values

vString that specifies or receives the role.

The property is read/write. The property has no default value.

Remarks

In compliance with the Accessible Rich Internet Applications (ARIA) specification, Internet Explorer 8 will override implicit roles in favor of roles provided by a Web author.

Standards Information

This property is defined in ARIA World Wide Web link.

Applies To

A, ABBR, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, CUSTOM, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, hn, HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, nextID, NOBR, NOFRAMES, NOSCRIPT, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, style, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, WBR, XML, XMP
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
@role is defined in its own W3C specification, not ARIA      Mark Birbeck   |   Edit   |  
It's worth pointing out that @role was defined quite a long time ago, in its own specification, called XHTML Role Attribute Module [1]. It is this that provided the foundation for the ARIA work, which essentially defines a series of values for @role.

This may sound like nit-picking, but the whole premise of @role was to provide an extension-point for many different technologies, including those that we haven't yet thought of. ARIA is merely one such use of @role, and to co-opt it for this one scenario would weaken its usefulness.

[1] http://www.w3.org/TR/xhtml-role/
Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG