02-05-2005, 01:05 AM
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:
<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 :)
02-05-2005, 01:13 AM
Post a link to the site or the rest of the code please.
02-05-2005, 01:19 AM
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..........
02-05-2005, 01:35 AM
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,
02-05-2005, 01:43 AM
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" ?
02-05-2005, 01:49 AM
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 :D
02-05-2005, 02:25 AM
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 :D.
02-05-2005, 01:10 PM
Maybe I should hae consulted the official spec, instead of this :o http://webpageworkshop.co.uk/main/xhtml_reference