A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.

To request an account, ask an autoconfirmed user on Chat (such as one of these permanent autoconfirmed members).

MicrosyntaxDescriptions: Difference between revisions

From WHATWG Wiki
Jump to navigation Jump to search
(Mention RFCs and W3C specs)
(Clean up headings)
Line 19: Line 19:
==DatetimeTz==
==DatetimeTz==
(WF2)
(WF2)
==float==
==Float==
...
...
==float.non-negative==
==FloatNonNegative==
...
...
==float.positive==
==FloatPositive==
...
...
==Id==
==Id==
Line 30: Line 30:
An integer consists of one of more characters in the range U+0030 DIGIT ZERO (<code>0</code>) to U+0039 DIGIT NINE (<code>9</code>), optionally prefixed with a U+002D HYPHEN-MINUS (<code>-</code>) character.
An integer consists of one of more characters in the range U+0030 DIGIT ZERO (<code>0</code>) to U+0039 DIGIT NINE (<code>9</code>), optionally prefixed with a U+002D HYPHEN-MINUS (<code>-</code>) character.


==integer.non-negative==
==IntegerNonNegative==
...
...
==integer.positive==
==IntegerPositive==
...
==Iri (absolute)==
...
==IriRef (relative)==
...
...
==Iri==
(absolute)
==IriRef==
(relative)
==Language==
==Language==
An [http://tools.ietf.org/html/rfc4646 RFC 4646] language tag consists of hyphen-separated ASCII-alphanumeric subtags. There is a primary tag identifying a natural language by its shortest ISO 639 language code (e.g. <code>en</code> for English) and zero or more additional subtags adding precision. The most common additional subtag type is a region subtag which most commonly is a two-letter ISO 3166 country code (e.g. <code>GB</code> for the United Kingdom). IANA maintains a [http://www.iana.org/assignments/language-subtag-registry registry of permissible subtags].
An [http://tools.ietf.org/html/rfc4646 RFC 4646] language tag consists of hyphen-separated ASCII-alphanumeric subtags. There is a primary tag identifying a natural language by its shortest ISO 639 language code (e.g. <code>en</code> for English) and zero or more additional subtags adding precision. The most common additional subtag type is a region subtag which most commonly is a two-letter ISO 3166 country code (e.g. <code>GB</code> for the United Kingdom). IANA maintains a [http://www.iana.org/assignments/language-subtag-registry registry of permissible subtags].
Line 49: Line 49:
==Pattern==
==Pattern==
(WF2)
(WF2)
==percent==
==Percent==
...
...
==Ratio==
==Ratio==

Revision as of 06:48, 21 November 2007

The purpose of this page is to enable collaborative creation of brief advisory text for each HTML5 microsyntax so that when an attribute value does not conform to a given microsyntax, a validator can display the advisory text about the syntax to guide the author to fix the value. Note that like the rest of this wiki, editing requires you to agree to release your contributions under the MIT license (see wiki footer). Please note that while copying text from the WHATWG version of HTML 5 is OK, copying text from RFCs or W3C specs is not OK.

Note that some formats pertain to Web Forms 2.0 (e.g. DatetimeLocal is datetime-local).

Please keep descriptions short: preferrably one paragraph in length.

Date

(WF2)

DateOrTime

(time element attribute version)

DateOrTimeContent

(time element text content version)

Datetime

(WF2)

DatetimeLocal

(WF2)

DatetimeTz

(WF2)

Float

...

FloatNonNegative

...

FloatPositive

...

Id

...

Integer

An integer consists of one of more characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9), optionally prefixed with a U+002D HYPHEN-MINUS (-) character.

IntegerNonNegative

...

IntegerPositive

...

Iri

(absolute)

IriRef

(relative)

Language

An RFC 4646 language tag consists of hyphen-separated ASCII-alphanumeric subtags. There is a primary tag identifying a natural language by its shortest ISO 639 language code (e.g. en for English) and zero or more additional subtags adding precision. The most common additional subtag type is a region subtag which most commonly is a two-letter ISO 3166 country code (e.g. GB for the United Kingdom). IANA maintains a registry of permissible subtags.

MediaQuery

...

MimeType

(RFC2616 version)

Month

(WF2)

Pattern

(WF2)

Percent

...

Ratio

(progress content)

Time

(WF2)

Week

(WF2)