Ian Charnas <[EMAIL PROTECTED]> writes:
> Some discussion might be necessary on this. Basically in xhtml the
> "id" attribute is defined by the w3c as....
>
> 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 (".").
IIRC, for CSS they can't have colons, periods and underscores, but they
can have hyphens. And I say that because ...
> However, currently the "valid_id" regular expression on line 55 of
> core.py only accepts alphanumeric characters. Although periods and
> colons are not often used, I use the hyphen and underscore all the
> time. Allowing elements to have ids with underscores might confuse
> toscawidgets though, because it seems that's how toscawidgets keeps
> track of compound widgets. Not really sure what a solution would be,
> I imagine this must have come up before???
... I suggest that we accept the intersection of those two sets:
alphanumeric + hyphens only.
What about it? ;-) It is just one extra char.
--
Jorge Godoy <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---