|
-
May 2nd, 2002, 02:19 PM
#1
Thread Starter
Hyperactive Member
w3c html validation result - what does this mean?
... name="companyid" value="<%=Request.Form("companyid")%>">
^
Error: an attribute value literal can occur in an attribute specification list only after a vi delimiter
I'm trying to make my pages compliant with the check at w3.org
http://validator.w3.org/check
but I don't know what this error means
-
May 2nd, 2002, 02:38 PM
#2
Thread Starter
Hyperactive Member
this passes validation - but the server can't process the code
Code:
value="<%=Request.Form("companyid")%>">
change " to '
Code:
value="<%=Request.Form('companyid')%>">
-
May 2nd, 2002, 02:54 PM
#3
Thread Starter
Hyperactive Member
Here's my latest error...
if you have an idea, don't hold back!
*
Code:
... "companyid" name="companyid" value=?"<%=Request.Form("compan ...
^
Error: an attribute value must be quoted if it contains any character other than letters (A-Za-z), digits, hyphens, and periods; use quotes if in doubt
The little carat thingy points to the middle of "Request"...
-
May 2nd, 2002, 03:50 PM
#4
Frenzied Member
Don't test your ASP, test the resulting HTML. That will keep the validator from confusing the two.
Code:
value="<%=Request.Form("companyid")%>">
This is perfectly legal, you don't need to change the outer quote characters. The only time this will present a problem is if the value stored in Request.Form("companyid") contains quote characters.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
May 2nd, 2002, 03:52 PM
#5
Thread Starter
Hyperactive Member
that's cool - I'll try it out. thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|