Re: maximum length of html id name




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.

.



Relevant Pages

  • Split String by number of characters
    ... I want to split a big string by nymber of characters. ... TIA, ...
    (microsoft.public.dotnet.general)
  • Re: Count characters within a cell to the left of "/"
    ... northern/coast What formula will tell me how many characters are to ... TIA of any reply, ... FIND is used to find the position of a string within another string. ... a string you can calculate the number of characters to the right. ...
    (microsoft.public.excel.newusers)
  • Instr from right
    ... I use the instr function frequently to find particular characters ... within a string and manipulate them eg all characters to the left of a ... TIA ...
    (comp.databases.ms-access)
  • Re: How to convert Infix notation to postfix notation
    ... If this is for an error message, why isn't it using stderr for its output? ... array of 15 characters, and you call this function with the limit 15 on ... Making sure that the only string I allocate and append to, ... because mulFactor in all versions must needs incorporate the functions ...
    (comp.lang.c)
  • Re: Prothon should not borrow Python strings!
    ... """It does not make sense to have a string without knowing what encoding ... same cul de sac as Python. ... Prothon_String_As_ASCII // raises error if there are high characters ... Python's split between byte strings and Unicode strings is ...
    (comp.lang.python)