Re: maximum length of html id name
- From: "Richard Cornford" <Richard@xxxxxxxxxxxxxxxxxxx>
- Date: 24 Aug 2006 07:53:04 -0700
Chris Morris wrote:
hug wrote::<snip>
... I am having difficulty finding the maximum allowable
length of the id string. ? tia.
http://www.w3.org/TR/html4/types.html says:
ID and NAME tokens must begin with a letter ([A-Za-z]) and may be^^^^^^^^^^
followed by any number of letters, digits ([0-9]), hyphens ("-"),
underscores ("_"), colons (":"), and periods (".").
No maximum length
From the SGML Declaration of HTML 4:-
| ATTSPLEN 65536 -- These are the largest values --
| LITLEN 65536 -- permitted in the declaration --
| NAMELEN 65536 -- Avoid fixed limits in actual --
| PILEN 65536 -- implementations of HTML UA's --
I believe that NAMELEN may be the significant setting (65,536
characters), though the note suggests that it should not actualy
reprresent a limit in practice.
Richard.
.
- Follow-Ups:
- Re: maximum length of html id name
- From: Chris Morris
- Re: maximum length of html id name
- References:
- maximum length of html id name
- From: hug
- Re: maximum length of html id name
- From: Chris Morris
- maximum length of html id name
- Prev by Date: Re: maximum length of html id name
- Next by Date: Re: maximum length of html id name
- Previous by thread: Re: maximum length of html id name
- Next by thread: Re: maximum length of html id name
- Index(es):
Relevant Pages
|