Visit Mozilla.org

The adr microformat

From MDC

This article covers features introduced in Firefox 3

The adr microformat represents an address, either for a physical location or a mailing address.

Contents

[edit] Properties

Property Description
type The type of address. This can be any one or more of the following values:
work
A work address.
home
A home address.
pref
A preferred address; use this to indicate that a specific address is the preferred address for the person or company it's associated with.
postal
A mailing address.
dom
A domestic address.
intl
An international address.
parcel
An address for shipping packages and parcels.
post-office-box The post office box number, if there is one.
street-address The street address. This may be an array, one for each line of the street address.
extended-address The extended address.
locality The locality for the address.
region The region for the address.
postal-code The postal or ZIP code for the address.
country-name The name of the country in which the address is located.

[edit] Methods

There is one method you can call on the adr microformat.

[edit] toString()

Returns the address as a string.

addressString = adr.toString();
[edit] Parameters

None.

[edit] Return value

The address as a single string.

[edit] See also