The items within the form need to be contained in any block element to be validate as Strict. However, why is form helper inserting a SECOND fieldset and input (both are hidden):
<fieldset style="display:none;"><input type="hidden" name="_method" value="POST" /></fieldset> On Apr 12, 10:41 pm, "dzojntywole!" <[EMAIL PROTECTED]> wrote: > Ok guys... i got answer from jonathansnook on #cakephp, > > that extrafieldsetis needed only for strict doc type... > > for transitional it is ok to remove it( cake/libs/views/helpers/form.php ( > line 212 on my rev 6637 to remove justfieldsetor.. line > 187 to remove all thathiddenthing.. > > i checked w3 validation and its fine, your base code looks much > prettier than.. so if you are not going to use strict.. go for it. > > Bart > > On Apr 8, 10:43 am, "dzojntywole!" <[EMAIL PROTECTED]> wrote: > > > Hi again, I just read your post, I removed manually thatfieldset > > thing( I removed whole but what I dislike there was > > that inline css.. by the rule I keep my css and javascript in external > > files) > > > I created simpleform(below) and I checked in w3validator.. I got > > "This Page Is Valid XHTML 1.0 Transitional!" that makes me happy > > enough to keep it like that.. could you give me a source of "it's > > invalid to have any input elements within aformelement that aren't > > also enclosed by a block-level element "? > > > btw.. I agree that this inline css makes life much easier in > > development stage: scaffolding etc.. but for final product in my > > opinion view(html) is as much important as its server side.. so adding > > option informhelpercreate() to remove extra markup would be a good > > idea. > > > Bart > > > ........ > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > <html xmlns="http://www.w3.org/1999/xhtml"> > > <head> > > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> > > <title>Untitled Document</title> > > </head> > > > <body> > > <div class="login"> > > <h2>Login</h2> > > > <formid="UserLoginForm" method="post" action="/otherwise/6609/ > > users/login"><input type="hidden" name="_method" value="POST" /> > > <div class="input"><input name="data[User][username]" type="text" > > maxlength="20" value="" id="UserUsername" /></div> > > <div class="input"><input type="password" name="data[User] > > [password]" value="" id="UserPassword" /></div> > > <div class="submit"><input type="submit" value="Login" /></div> > > </form> > > > </div> > > </body> > > </html> > > ...... > > > On Apr 8, 1:58 am, Stephen Orr <[EMAIL PROTECTED]> wrote: > > > > The CSS is there because of a ticket I posted - in XHTML it's invalid > > > to have any input elements within aformelement that aren't also > > > enclosed by a block-level element (so, afieldset, a paragraph, a > > > div). The inline CSS is purely there to allow you to have valid XHTML > > > and not break your layout with an additionalfieldsetinto the > > > bargain. > > > > Steve > > > > On Apr 7, 9:30 am, "dr. Hannibal Lecter" <[EMAIL PROTECTED]> wrote: > > > > > Why is it bothering you? You can't see it, the user can't see > > > > it..which means - by all means - that it isn't really there ;-) > > > > > On Apr 5, 10:10 am, "dzojntywole!" <[EMAIL PROTECTED]> wrote: > > > > > > Hi everybody, > > > > > I am trying to useformhelperto create aformin my view: > > > > > <?php echo $form->create() ?> > > > > > > the result is: > > > > > <formid="UserAddForm" method="post" action="/otherwise/6609/users/ > > > > > add"><fieldsetstyle="display:none;"><input type="hidden" > > > > > name="_method" value="POST" /></fieldset> > > > > > > is there a way to remove that inline style other than editinghelper > > > > > files? i do not want to reinvent the wheel if the option like that > > > > > already exist... > > > > > > i tried to google it, asked on #cakephp looked on manual.. api.. still > > > > > confused > > > > > > hope to get hint, thanks > > > > > > B.W --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
