AIMCC Technote 2

Supported HTML Elements


Q: How does AIMCC handle elements in text input to IAccIm?
A: Below are the tags and attributes that AIMCC supports. Unsupported tags and attributes are stripped during conversion to/from xhtml; this means that if AOL-RTF is input directly, no tags or attributes will be stripped.

MIME Type text/x-aolrtf text/html application/xhtml+xml
! Y Y Y
a href Y Y Y
b Y Y Y
body
    bgcolor Y Y Y
    link Y Y Y
    vlink Y Y Y
embed
    align Y Y Y
    allowscriptaccess Y Y Y
    bgcolor Y Y Y
    height Y Y Y
    loop Y Y Y
    menu Y Y Y
    name Y Y Y
    play Y Y Y
    quality Y Y Y
    salign Y Y Y
    scale Y Y Y
    src Y Y Y
    type Y Y Y
    width Y Y Y
    wmode Y Y Y
br Y Y Y
div Y Y Y
font
    absz Y Y Y
    back Y Y N
    color Y Y Y
    face Y Y Y
    family Y Y Y
    lang Y Y Y
    ptsize Y Y Y
    size Y Y Y
    sml Y Y N
    style N N Y
hr Y Y Y
html Y Y Y
i Y Y Y
img
    alt N N Y
    datasize Y Y Y
    height Y Y Y
    id Y Y N
    src Y Y Y
    width Y Y Y
object
    height Y Y Y
    id Y Y Y
    width Y Y Y
param
    id Y Y Y
    name Y Y Y
    param Y Y Y
    type Y Y Y
    value Y Y Y
p Y Y Y
s Y Y Y
sub Y Y Y
sup Y Y Y
tt Y Y Y
u Y Y Y


Q: What is AOL-RTF?
A: AOL-RTF is AOL's legacy rich text format. It has similarities to HTML. We don't recommend working with AOL-RTF text directly.

Notes
1. Text must be entitized.
2. Language attribute
    For the font lang attribute, AOL-RTF uses proprietary IDs. In xhtml, ISO codes are used.
3. <img> elements for embeds
    In xhtml, the <img> element (as used by AIMCC) is formatted:
        <img src="aoldim:/cookie/id" alt=name width=w height=h datasize=d/>
    In AOL-RTF, the <img> element is formatted like:
        <IMG SRC=name ID=i WIDTH=w HEIGHT=h DATASIZE=d>
    When creating <img> elements, IDs are numbers starting with one, unique per IAccIm.
    When creating <img> elements for xhtml, the cookie comes from AccImProp_Cookie.
4. Bart items
    In general, a bart item URL is formatted:
        <img src="aolbart:/typ/id/idHex"> ("id" is a literal)
    In xhtml, an emoticon bart item element is formatted:
        <img src="aolbart:/1024/id/idHex/emoticonHex" alt="emoticonText"/>
    In AOL-RTF, an emoticon bart item element is formatted:
        <FONT sml="bartId">emoticonText</FONT>
5. Background color
    In xhtml, background color is formatted:
        <font style="background-color:#RRGGBB">
    In AOL-RTF, background color is formatted:
        <font back="#RRGGBB">
6. <embed>, <object>, and <param> elements are intended for embedding video content in profiles and Direct IMs.


rev. 2007/07/25