Opened 17 years ago

Closed 15 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 in reply to:  description Changed 17 years ago by Frederico Caldeira Knabben

Keywords: html validation removed
Summary: XHTML Transitional validMake it possible to use brackets in the instance name

Replying to storeman:

Secondly, the validator cries when a <div element is used inside a form, i used a <span instead, and now it thinks its ok.

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.

comment:2 Changed 16 years ago by Martin Kou

Type: BugNew Feature

comment:3 Changed 15 years ago by Artur Formella

Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy