InternetMediaType
interface[1] An object implementing the
InternetMediaType
interface
represents a specification of an Internet Media Type,
as defined in RFC 2046 [RFC 2046]. This interface
provides a protocol independent way to access
to a specification of media type; how it it represented
in the wire format, e.g. plain old MIME, MIME as extended
by RFC 2231, HTTP, and so on are not relevant
for the purpose of this interface.
[2] The imtText
attribute
is a textual representation of the Internet Media Type
represented by the object.
The type of this attribute is DOMString
.
This attribute is read-write.
In the JavaScript binding, the toString
method MUST return the same value as
the imtType
attribute.
[3] The topLevelType
attribute
is the top-level media type of the object.
The type of this attribute is DOMString
.