Results 1 to 5 of 5

Thread: w3c html validation result - what does this mean?

  1. #1

    Thread Starter
    Hyperactive Member billwagnon's Avatar
    Join Date
    Jul 1999
    Location
    St. Louis, Missouri, Mississippi Valley
    Posts
    290

    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

  2. #2

    Thread Starter
    Hyperactive Member billwagnon's Avatar
    Join Date
    Jul 1999
    Location
    St. Louis, Missouri, Mississippi Valley
    Posts
    290
    this passes validation - but the server can't process the code

    Code:
    value="<%=Request.Form("companyid")%>">
    change " to '

    Code:
    value="<%=Request.Form('companyid')%>">

  3. #3

    Thread Starter
    Hyperactive Member billwagnon's Avatar
    Join Date
    Jul 1999
    Location
    St. Louis, Missouri, Mississippi Valley
    Posts
    290
    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"...

  4. #4
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    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.

  5. #5

    Thread Starter
    Hyperactive Member billwagnon's Avatar
    Join Date
    Jul 1999
    Location
    St. Louis, Missouri, Mississippi Valley
    Posts
    290
    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
  •  



Click Here to Expand Forum to Full Width