Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    Regular Coder Graft-Creative's Avatar
    Join Date
    Aug 2004
    Location
    Web Designer - North East Lancashire U.K.
    Posts
    842
    Thanks
    0
    Thanked 0 Times in 0 Posts

    'wrap' in < textarea > not valid xhtml1.0 Strict?

    Ok, maybe I'm missing something here, it's a while since I did any forms - and the first time I ever did one that I wanted to be valid.

    This is what I have:
    Code:
    <textarea name="other_comments" id="question" rows="10" cols="30" wrap="virtual"></textarea>
    Now the wrap works just fine in Opera7.5 & IE6, however, FF just inputs one long line of text with the resultant horizontal scrollbar, plus the validator says 'wrap' is no part of the spec (xhtml1.0 strict)?
    I've checked up on some tutorials, and they all seem to say wrap can be used with this doctype?

    I'm a bit lost to be honest.....prob something stupid, but I'm lost

    Any ideas?

    Gary

  • #2
    Regular Coder
    Join Date
    Sep 2004
    Location
    USA
    Posts
    314
    Thanks
    7
    Thanked 0 Times in 0 Posts
    Post a link to the site or the rest of the code please.

  • #3
    Regular Coder Graft-Creative's Avatar
    Join Date
    Aug 2004
    Location
    Web Designer - North East Lancashire U.K.
    Posts
    842
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://multiplechemicalsensitivity.org/contact.html

    I know - probably not the best for you've ever seen, but I just want to get it to validate before I start looking into usability issues etc.

    And yes, the css is all embedded, for now..........

    Thanks,

    Gary

  • #4
    Regular Coder
    Join Date
    Sep 2004
    Location
    USA
    Posts
    314
    Thanks
    7
    Thanked 0 Times in 0 Posts
    It works fine, I think the problem is that if you type one long word (which is how you may have been testing if it was wraping) it will make a scroll bar. Try typing out a question like you normally would, not one long word, and it seems to work.


    Hope this helps,

    Ribo

  • #5
    Regular Coder Graft-Creative's Avatar
    Join Date
    Aug 2004
    Location
    Web Designer - North East Lancashire U.K.
    Posts
    842
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks - so it does, I was just hitting the one key and letting it run, just to test it.

    Still the w3c validator says: there is no attribute "wrap" ?





    Gary

  • #6
    Regular Coder
    Join Date
    Sep 2004
    Location
    USA
    Posts
    314
    Thanks
    7
    Thanked 0 Times in 0 Posts
    Hm, sorry but I can't really give an answer why it doesn't validate, I googled and it looks like its just not allowed. The funny thing is if you just take it out all together is still works and validates

  • #7
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    I just did a little research... it seems back in the day default textarea behavior was not to wrap text, so Netscape (3 I think) added "wrap" in their vocabulary. IE picked up support later, but later browsers' default behavior changed, so the w3c never added "wrap" to the list of valid attributes. All they have to say about it is, "The ROWS and COLS attributes determine the visible dimension of the field in characters. The field is rendered in a fixed-width font. Browsers are recommended to allow text to grow beyond these limits by scrolling as needed."

    So know we know .

  • #8
    Regular Coder Graft-Creative's Avatar
    Join Date
    Aug 2004
    Location
    Web Designer - North East Lancashire U.K.
    Posts
    842
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks folks,

    Maybe I should hae consulted the official spec, instead of this http://webpageworkshop.co.uk/main/xhtml_reference

    Gary
    Last edited by Graft-Creative; 02-05-2005 at 01:13 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •