Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
maximum character length of class and id names
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dylan Schiemann  
View profile  
 More options Nov 28 2000, 3:00 am
Newsgroups: comp.infosystems.www.authoring.stylesheets
From: Dylan Schiemann <dyl...@yahoo.com>
Date: 2000/11/28
Subject: maximum character length of class and id names
Hi all,

Is there a defined maximum character length for the names of classes and
ids?  If so, where is this defined in the spec.?  Thanks,

Dylan Schiemann


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jan Roland Eriksson  
View profile  
 More options Nov 28 2000, 10:53 pm
Newsgroups: comp.infosystems.www.authoring.stylesheets
From: Jan Roland Eriksson <r...@css.nu>
Date: Wed, 29 Nov 2000 04:04:08 +0100
Local: Tues, Nov 28 2000 10:04 pm
Subject: Re: maximum character length of class and id names
On Tue, 28 Nov 2000 17:12:41 -0800, in
comp.infosystems.www.authoring.stylesheets Dylan Schiemann

<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

  http://www.w3.org/TR/html4/sgml/sgmldecl.html

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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Etan Wexler  
View profile  
 More options Nov 29 2000, 12:55 am
Newsgroups: comp.infosystems.www.authoring.stylesheets
From: ewex...@hotmail.com (Etan Wexler)
Date: Wed, 29 Nov 2000 00:55:18 -0500
Local: Wed, Nov 29 2000 12:55 am
Subject: Re: maximum character length of class and id names
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.

--
Etan Wexler.  Batch released.  Batch in balance.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jan Roland Eriksson  
View profile  
 More options Nov 29 2000, 7:32 pm
Newsgroups: comp.infosystems.www.authoring.stylesheets
From: Jan Roland Eriksson <r...@css.nu>
Date: Thu, 30 Nov 2000 00:33:37 +0100
Local: Wed, Nov 29 2000 6:33 pm
Subject: Re: maximum character length of class and id names
On Wed, 29 Nov 2000 00:55:18 -0500, in
comp.infosystems.www.authoring.stylesheets ewex...@hotmail.com (Etan

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.

--
Jan Roland Eriksson <r...@css.nu> .. <URL:http://css.nu/>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dylan Schiemann  
View profile  
 More options Nov 30 2000, 3:00 am
Newsgroups: comp.infosystems.www.authoring.stylesheets
From: Dylan Schiemann <dyl...@yahoo.com>
Date: 2000/11/30
Subject: Re: maximum character length of class and id names

Jan Roland Eriksson wrote:
> >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 :)

Definitely not :)

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.

Thanks for the information.

-Dylan Schiemann


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google