note 68072 added to faq.html

From: Date: Wed, 12 Jul 2006 10:19:12 +0000
Subject: note 68072 added to faq.html
Groups: php.notes 
Request: Send a blank email to php-notes+get-114711@lists.php.net to get a copy of this message
@Torsten{ In http://www.w3.org/TR/xhtml1/#C_8 it says: "Unfortunately, this constraint cannot be expressed in the XHTML 1.0 DTDs." } http://www.w3.org/TR/xhtml1/#C_8 also says: "When defining fragment identifiers to be backward-compatible, only strings matching the pattern [A-Za-z][A-Za-z0-9:_.-]* should be used." I'll come back to this. Since it's all about fragment identifiers, I can't see why using an array like arrayname[] would be used. I think arrayname[name] should be used this way the fragment identifiers stay unique. Since [ and ] are not allowed, why not use something what is allowed and use str_replace? example: :_. = [ & ._: = ] so: name="arrayname:_.name._:" OR name="arrayname:_.0._:" and offcourse also add the id attribute then for backward compatibility. ---- Server IP: 66.163.161.117 Probable Submitter: 145.116.4.2 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/faq.html.php Edit -- http://master.php.net/note/edit/68072 Del: integrated -- http://master.php.net/note/delete/68072/integrated Del: useless -- http://master.php.net/note/delete/68072/useless Del: bad code -- http://master.php.net/note/delete/68072/bad+code Del: spam -- http://master.php.net/note/delete/68072/spam Del: non-english -- http://master.php.net/note/delete/68072/non-english Del: in docs -- http://master.php.net/note/delete/68072/in+docs Del: other reasons-- http://master.php.net/note/delete/68072 Reject -- http://master.php.net/note/reject/68072 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#114711) next »