[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patches for xhtml code



Chris & crew,

Just a couple of _very_ small patches to start out, but they make the
difference between valid xhtml code and invalid code.  Impact should
be zero.

Plan to look closely at the menu.pl code in bin -- saying it's badly
formed is being kind.  Once that's fixed and working properly, I will
start the transition to CSS2 psuedo frames and
Content-type="application/xhtml+xml".

attachments:  bin/login.pl patch (bin-login1.patch); LedgerSMB/Form.pm
(Form.pm.patch)

David A. Bandel
--
Focus on the dream, not the competition.
           - Nemesis Air Racing Team motto
--- login.pl.old	2007-04-24 18:17:54.874901690 -0500
+++ login.pl	2007-04-24 19:05:06.995898191 -0500
@@ -138,11 +138,10 @@
 		<table class="login" border="3" cellpadding="20">
 			<tr>
 				<td class="login" align="center">
-					<a href="http://www.ledgersmb.org/"; target="_top"><img src="ledger-smb.png" width="200" heith="100" border="0" alt="LedgerSMB Logo" /></a>
+					<a href="http://www.ledgersmb.org/"; target="_top"><img src="ledger-smb.png" width="200" height="100" border="0" alt="LedgerSMB Logo" /></a>
 					<h1 class="login" align="center">|
       . $locale->text('Version')
       . qq| $form->{version}</h1>
-					<p>
 					<form method="post" action="login.pl" name="login">
 					<table width="100%">
 						<tr>
@@ -167,7 +166,6 @@
       . $locale->text('Login')
       . qq|</button>
 					</form>
-					</p>
 				</td>
 			</tr>
 		</table>
@@ -195,7 +193,7 @@
 	<table class="login" border="3" cellpadding="20">
 		<tr>
 			<td class="login" align="center">
-				<a href="http://www.ledgersmb.org/"; target="_top"><img src="ledger-smb.png" width="100" heith="100" border="0" alt="LedgerSMB Logo" /></a>
+				<a href="http://www.ledgersmb.org/"; target="_top"><img src="ledger-smb.png" width="100" height="100" border="0" alt="LedgerSMB Logo"></a>
 				<h1 class="login" align="center">|
       . $locale->text('Version')
       . qq| $form->{version}</h1>
--- Form.pm.old	2007-04-24 19:22:26.528864940 -0500
+++ Form.pm	2007-04-24 20:07:38.606359189 -0500
@@ -311,7 +311,7 @@
           ? "$self->{title} - $self->{titlebar}"
           : $self->{titlebar};
 
-        print qq|Content-Type: text/html\n\n
+        print qq|Content-Type: text/html\n
 <!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"; xml:lang="en" lang="en">