<dyl...@yahoo.com> wrote: >Is there a defined maximum character length for the names of classes and >ids? If so, where is this defined in the spec.? Thanks,
From Goldfarb, page 330 [8-10]
"The normalized length of the attribute specification list is the sum of the normalized lengths of each attribute name and attribute value specified, which can not exceed the 'ATTSPLEN' quantity."
I.e. the total length of the list of attributes and values, as given for an element, can not exceed the value stated for 'ATTSPLEN' in an SGML declaration, after the attribute list has been normalized.
'ATTSPLEN' is set at 65536 in the SGML declaration for HTML4.01
You'd be surprised if you found available 'Netploder' software care about that though, but at least that is what the "spec" says :-)
-- Jan Roland Eriksson <jre...@newsguy.com> <http://member.newsguy.com/~jrexon/> Moronization: a form of acculturation where people are encouraged to anoint themselves with the supposed benefits of a technology, without understanding the engineering (or lack thereof.)
In article <c4r82tg4r3js4tvhnt327hkfglee61o...@4ax.com>, Jan Roland
Eriksson <r...@css.nu> wrote: > From Goldfarb, page 330 [8-10]
This means that the reference is to The SGML Handbook by Charles Goldfarb, the less geeky may care to know. This also means that the reader should brace for a wave of jargon.
> 'ATTSPLEN' is set at 65536 in the SGML declaration for HTML4.01
Yes, though HTML 4 recommends avoiding limits in implementations. CSS, I must note, has NO LENGTH LIMITS on class names or on IDs.
Wexler) wrote: >In article <c4r82tg4r3js4tvhnt327hkfglee61o...@4ax.com>, Jan Roland >Eriksson <r...@css.nu> wrote: >> From Goldfarb, page 330 [8-10] >This means that the reference is to The SGML Handbook by Charles Goldfarb, >the less geeky may care to know.
Sure, but I don't think that the OP was that much put off by a "correct" reference :)
>> 'ATTSPLEN' is set at 65536 in the SGML declaration for HTML4.01 >Yes, though HTML 4 recommends avoiding limits in implementations. CSS, I >must note, has NO LENGTH LIMITS on class names or on IDs.
I would assume that any mark-up|style-author that has the guts to produce an attlist of 65+k chars would be worth a Nobel price in some yet unknown category :)
Basically 'ATTSPLEN' and other similar entries in an SGML declaration is there to 'inform' a parser about possible requirements on buffer memory to allocate during processing.
But you are right of course, any properly designed "stack based machine" with Mega multiple MB's of RAM available will have no problems to parse anything. :)
That then becomes the final message to the OP, i.e. there are no real limits defined from a practical perspective.
> >> 'ATTSPLEN' is set at 65536 in the SGML declaration for HTML4.01
> >Yes, though HTML 4 recommends avoiding limits in implementations. CSS, I > >must note, has NO LENGTH LIMITS on class names or on IDs.
> I would assume that any mark-up|style-author that has the guts to > produce an attlist of 65+k chars would be worth a Nobel price in some > yet unknown category :)
> Basically 'ATTSPLEN' and other similar entries in an SGML declaration is > there to 'inform' a parser about possible requirements on buffer memory > to allocate during processing.
> But you are right of course, any properly designed "stack based machine" > with Mega multiple MB's of RAM available will have no problems to parse > anything. :)
> That then becomes the final message to the OP, i.e. there are no real > limits defined from a practical perspective.
65k should be enough... of course, no computer will ever need more than 640K of memory either, and the United States may someday support the need for a few dozen computers (abridged quotes from IBM). The inital question arose when I was thinking about the possibilities with using multiple class names in a single class declaration.