Opened 18 years ago
Closed 16 years ago
#558 closed New Feature (invalid)
Make it possible to use brackets in the instance name
Reported by: | Martin | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
To pass the html validation tool on the w3.org site, I had to make some changes to the system.
At first, my forms are build into arrays, when passing a name to the FCKEdtor like autoform[rte], the validator causes trouble, a [ is not supported in the id tag.
I solved it by adding an extra attribute to the php4 and php5 files. The extra parameter is the id. The name is only used once, at the hidden field. Otherwise the id is alwasys used.
Secondly, the validator cries when a <div element is used inside a form, i used a <span instead, and now it thinks its ok.
Change History (3)
comment:1 Changed 18 years ago by
Keywords: | html validation removed |
---|---|
Summary: | XHTML Transitional valid → Make it possible to use brackets in the instance name |
comment:2 Changed 17 years ago by
Type: | Bug → New Feature |
---|
comment:3 Changed 16 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
W3C:
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 (".").
You can't use [] in ID or NAME.
Replying to storeman:
There are no issues on using <div> inside <form>. Actually, our demo validates with the W3C with no problems:
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.fckeditor.net%2Fdemo
For the rest, not using brackets in the editor instance name is a requirement, at least for now. So, I'm reclassifying this one a a feature request.