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
(Added code tagging to integers; minor copy editing) |
|||
Line 36: | Line 36: | ||
==integer== | ==integer== | ||
One or more digits (0 | One or more digits (<code>0</code>–<code>9</code>) without a period (<code>.</code>), optionally preceded by a hyphen (<code>-</code>). For example: <code>42</code> and <code>-273</code> are valid, but <code>+42</code> is not. | ||
==integer-non-negative== | ==integer-non-negative== | ||
One or more digits (0 | One or more digits (<code>0</code>–<code>9</code>) without a period (<code>.</code>). For example: <code>42</code> and <code>0</code> are valid, but <code>-273</code> is not. | ||
==integer-positive== | ==integer-positive== | ||
One or more digits (0 | One or more digits (<code>0</code>–<code>9</code>) one of which is non-zero without a period (<code>.</code>). For example: <code>42</code> is valid, but <code>00</code> is not. | ||
==iri== | ==iri== |
Revision as of 15:39, 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.
browsing-context
A browsing context name is any string that does not start with a U+005F LOW LINE character (_
), or, a string that case-insensitively matches one of: _self
, _parent
, or _top
.
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
...
hashed-id-ref
...
ID
An ID consists of at least one character but must not contain any whitespace.
integer
One or more digits (0
–9
) without a period (.
), optionally preceded by a hyphen (-
). For example: 42
and -273
are valid, but +42
is not.
integer-non-negative
One or more digits (0
–9
) without a period (.
). For example: 42
and 0
are valid, but -273
is not.
integer-positive
One or more digits (0
–9
) one of which is non-zero without a period (.
). For example: 42
is valid, but 00
is not.
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)
time
(WF2)
week
(WF2)