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 IRC (such as one of these permanent autoconfirmed members).

Difference between revisions of "MicrosyntaxDescriptions"

From WHATWG Wiki
Jump to: navigation, search
(ID: added initial definition)
(added "space")
Line 54: Line 54:
 
==ratio==
 
==ratio==
 
(progress content)
 
(progress content)
 +
==space==
 
==time==
 
==time==
 
(WF2)
 
(WF2)
 
==week==
 
==week==
 
(WF2)
 
(WF2)

Revision as of 11:43, 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. datetime-local).

Please keep descriptions short: one paragraph in length.

date

(WF2)

date-or-time

(time element attribute version)

date-or-time-content

(time element text content version)

datetime

(WF2)

datetime-local

(WF2)

datetime-tz

(WF2)

float

...

float-non-negative

...

float-positive

...

ID

An ID consists of at least one character but must not contain any space characters.

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.

integer-non-negative

...

integer-positive

...

iri

(absolute)

iri-ref

(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.

media-query

...

mime-type

(RFC2616 version)

month

(WF2)

pattern

(WF2)

percent

...

ratio

(progress content)

space

time

(WF2)

week

(WF2)