Randy Webb wrote:
> Andrew Poulos said the following on 2/12/2007 10:29 PM:
>> I'm dynamically populating a TEXTAREA with some info that includes a
>> URL. Eg.
>>
>> frm.value = "This is the link to use <url: http://www.foo.com >";
>>
>> but this results in a page that doesn't validate.
>
> What does it complain about? The <url tag?
I get 3 specific errors:
- Warning: discarding unexpected </textarea>
- Warning: <url:> attribute "http://www.foo.com" lacks value
- Error: <url:> is not recognized!
>> I tried escaping the value but then I get entities displaying in the
>> TEXTAREA.
>> Is there a way to change the value without upsetting the page's
>> validation?
>
> Put the script in an external file, the validator will never see it.
It's not the script per se but the content of the TEXTAREA that is
causing the validator to barf.
Andrew Poulos