Jump to content

[RESOLVED] Integration code not XHTML valid...


Recommended Posts

Hi, just noticed that the integration code supplied within the WHMCS admin area for the Login box is not valid code, and fails w3 validation

 

It lacks tag closing closing eg.....

 

<form method="post" action="http://www.xtrgameservers.com/services/dologin.php"> 
Email Address: <input type="text" name="username" size="50"><br>
Password: <input type="password" name="password" size="20"><br>
<input type="submit" value="Login"> 
</form>

 

Should be....

 

<form method="post" action="http://www.mydomain.com/services/dologin.php"> 
Email Address: <input type="text" name="username" size="50" /><br />
Password: <input type="password" name="password" size="20" /><br />
<input type="submit" value="Login" /> 
</form>

 

I know it is easy to fix, and not exactly a site killer, but thought it best to point it out.

 

:)

Link to comment
Share on other sites

It does indeed, for Xhtml 1.0 transitional, wouldn't have posted it otherwise :)

 

Obviously for xhtml, element tags need to be closed off, either by another closing tag, or within itself using a trailing slash at the end of the initial element tag box

Edited by ChrisGooding
Link to comment
Share on other sites

It does indeed, for Xhtml 1.0 transitional

 

For xhtml strict just wrap the inside on the form in a paragraph:

 

<form method="post" action="http://www.mydomain.com/services/dologin.php"> 
<p>Email Address: <input type="text" name="username" size="50" /><br />
Password: <input type="password" name="password" size="20" /><br />
<input type="submit" value="Login" /></p>
</form>

 

:lol:

Link to comment
Share on other sites

  • 1 year later...

err - wrapping the code supplied in a paragraph will not fix the code errors - i have also noticed the missing close tags on the Integration Code supplied *rolls eyes*

 

<form method="post" action="http://www.domain.co.nz/support/dologin.php">
<input type="hidden" name="token" value="63c654654654649e2558e519e5f79b59be" /> 
Email Address: <input type="text" name="username" size="50"><br>
Password: <input type="password" name="password" size="20"><br>
<input type="submit" value="Login"> 
</form>

 

is supplied - the last 3 <input> tags need a closing / - and so do the <br /> tags

 

same problem in the other integration forms supplied

 

for anyone else having validation problems the input tags should look like...

 

Password: <input type="password" name="password" size="20" /><br />

Link to comment
Share on other sites

  • 2 weeks later...

XHTML5 is my starting point on any project today. Provided you provide fallbacks for lesser browsers (IE and mobile browsers mostly) and don't go silly with the new tags, it's pretty much a no brainer. HTML5 provides a pretty nice pattern to follow instead of making up your own DIV id names. I realise that may not be the starting point for many though and I should clarify what I meant. What I was suggesting was a move _toward_ XHTML5 not to using it now as not everyone is perhaps willing to go that far and it has to be integrated with many different website designs.

 

My complaint is mostly that each release of WHMCS sees new templates with tags that have been deprecated for years if not a decade in both HTML and XHTML. v4.4.1 added more div align="right" crap. There's still <font> tags in there even. When you're integrating it into a modern site design, these old tags which fit in neither HTML4.01 or in XHTML 1.0 are a pain to have to fix each time.

 

Many are just pointless. eg. in viewinvoice.tpl there's <font class="unpaid">

 

A <span>is what should be used.

 

It'd save a lot of upgrading time if the templates got rid of these old tags and whoever is changing the templates gets their wrists slapped for adding markup that doesn't validate like align="right".

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated