[WSG] XHTML strict maxlength

2006-08-10 Thread Paul Collins



Hi all, 

Just having some trouble with validating I keep 
getting the report this report about the maxlength property:

Error Line 69 column 100: there is no attribute "maxlength".
...id="good-turn-description" maxlength="50" title="Tell us about it"//textar.

And my line of code is:textarea name="test" cols="40" rows="5" id="description" 
maxlength="50" title="Tell us about it"//textarea
And my doctype is:!DOCTYPE html PUBLIC 
"-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
As far as I can see, maxlength is a valid XHTML 
strict attribute, can anyone tell me why this isn't validating?!
Cheers,Paul

**The discussion list for  http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help**


Re: [WSG] XHTML strict maxlength

2006-08-10 Thread Kay Smoljak

On 8/10/06, Paul Collins [EMAIL PROTECTED] wrote:

Just having some trouble with validating I keep getting the report this
report about the maxlength property:

Error Line 69 column 100: there is no attribute maxlength.
...id=good-turn-description maxlength=50 title=Tell us about
it//textar.


Textarea does not support maxlength in any version of HTML... it's
only valid (and only works) with input type=text.

HTH,
K.

--
Kay Smoljak
http://www.cleverstarfish.com/


**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



Re: [WSG] XHTML strict maxlength

2006-08-10 Thread Nils Kr. Falch

On 8/10/06, Paul Collins [EMAIL PROTECTED] wrote:

As far as I can see, maxlength is a valid XHTML strict attribute, can anyone
tell me why this isn't validating?!



If you read the dtd you'll see that maxlenght is a valid attribute for
input but not for textarea.


**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



Re: [WSG] XHTML strict maxlength

2006-08-10 Thread Nick Fitzsimons

Paul Collins wrote:
As far as I can see, maxlength is a valid XHTML strict attribute, can 
anyone tell me why this isn't validating?!


Cheers,
Paul


It's only valid on input elements:
http://www.w3.org/TR/2002/REC-xhtml1-20020801/dtds.html#dtdentry_xhtml1-strict.dtd_input

There is no equivalent for textarea:
http://www.w3.org/TR/2002/REC-xhtml1-20020801/dtds.html#dtdentry_xhtml1-strict.dtd_textarea

Cheers,

Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/




**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



Re: [WSG] XHTML strict maxlength

2006-08-10 Thread Pierre-Henri Lavigne
On Thursday 10 August 2006 13:50, Paul Collins wrote:
 Hi all,

 Just having some trouble with validating I keep getting the report this
 report about the maxlength property:

 Error Line 69 column 100: there is no attribute maxlength.
 ...id=good-turn-description maxlength=50 title=Tell us about
 it//textar.And my line of code is: textarea name=test cols=40
 rows=5 id=description maxlength=50 title=Tell us about
 it//textarea

 And my doctype is:
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;

 As far as I can see, maxlength is a valid XHTML strict attribute, can
 anyone tell me why this isn't validating?!

 Cheers,
 Paul


Maybe textarea maxlength=50/textarea instead of textarea 
maxlength=50 //textarea :)

Cheers

-- 
Pierre-Henri Lavigne
[EMAIL PROTECTED]
Tel: +33 (0)6.18.75.32.67


**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list  getting help
**



Re: [WSG] XHTML strict maxlength

2006-08-10 Thread Ben Wong

As far as I can see, maxlength is a valid XHTML strict attribute, can anyone
tell me why this isn't validating?!


Not for textarea. Only for input.


From the x-html strict dtd...


!ELEMENT textarea (#PCDATA) !-- multi-line text field --
!ATTLIST textarea
 %attrs;
 %focus;
 nameCDATA  #IMPLIED
 rows%Number;   #REQUIRED
 cols%Number;   #REQUIRED
 disabled(disabled) #IMPLIED
 readonly(readonly) #IMPLIED
 onselect%Script;   #IMPLIED
 onchange%Script;   #IMPLIED
 

--
Ben Wong
e: [EMAIL PROTECTED]
w: http://blog.onehero.net


**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



Re: [WSG] XHTML strict maxlength

2006-08-10 Thread Paul Collins



Well, you learn something new everyday! Thanks all 
for your help

  - Original Message - 
  From: 
  Ben Wong 
  To: wsg@webstandardsgroup.org 
  Sent: Thursday, August 10, 2006 1:08 
  PM
  Subject: Re: [WSG] XHTML strict 
  maxlength
   As far as I can see, maxlength is a valid XHTML strict 
  attribute, can anyone tell me why this isn't validating?!Not 
  for textarea. Only for input.From the x-html strict 
  dtd...!ELEMENT textarea (#PCDATA) 
  !-- multi-line text field --!ATTLIST textarea 
  %attrs; %focus; 
  name 
  CDATA #IMPLIED 
  rows 
  %Number; #REQUIRED 
  cols 
  %Number; #REQUIRED 
  disabled (disabled) 
  #IMPLIED readonly 
  (readonly) #IMPLIED 
  onselect %Script; 
  #IMPLIED onchange 
  %Script; #IMPLIED -- 
  Ben Wonge: [EMAIL PROTECTED]w: http://blog.onehero.net**The 
  discussion list for http://webstandardsgroup.org/See 
  http://webstandardsgroup.org/mail/guidelines.cfmfor 
  some hints on posting to the list  getting 
  help**

**The discussion list for  http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help**