I've described problem here: http://drupal.org/node/114249
OS: openSuse 10.2
Web Server: Apache 2.2.3
PHP: 5.2
Drupal path: /srv/www/htdocs/drupal5

Comments

moshe weitzman’s picture

Priority: Critical » Normal
valcker’s picture

Yes, there is such problem. Rather annoining bug, especially if you are porting modules from drupal 4.7 to 5.

BioALIEN’s picture

Version: 5.0 » 5.x-dev

Agreed, its annoying but I don't think it is a show stopper.

aleksey.tk’s picture

Of course it is not a show stopper, but it requires more work to do when porting modules to drupal 5, so i think it is must be resolved or it must be annotated in API or handbooks

chx’s picture

It's not critical but indeed somewhat annoying, why not try to debug this problem?

eaton’s picture

This is most likely an oversight -- in drupal core (and all contrib modules I've ever seen), the keys to form elements do not use spaces, but underscores. Why? They're later turned into CSS IDs and element IDs in HTML, where spaces are not allowed and actually mess things up.

It's more of an oversight that it worked in the first place, given the way formapi uses those keys...

valcker’s picture

Ok, if it is an oversight then it should be annotated in drupal forms API, because it is really unclear for some developers, why they can't use keys with spaces, especially if they knew that in drupal 4.7 all spaces in form element keys where replaced by underscores...

dpearcefl’s picture

Status: Active » Closed (won't fix)

Considering the age of this issue with no comments and that Drupal 5 is no longer supported, I'm closing this ticket.