SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Angry Need Help Resolving Validation Error

    Why is there a "/_" before the maxlength attribute? That's probably what's tripping it up.

  2. #2
    SitePoint Member
    Join Date
    Jun 2009
    Location
    Richmond, VT
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry Need Help Resolving Validation Error

    I have many validation errors on our home page. Here is one example. The W3 XHTML validator says the following:

    Line 105, Column 19: NET-enabling start-tag not immediately followed by null end-tag

    <input /_maxlength="200" value="" size="20" type="text" name="query"

    This error may occur when there is a mistake in how a self-closing tag is closed, e.g '.../ >'. The proper syntax is '... />' (note the position of the space).


    The actual line 105 says:

    <input /_maxlength="200" value="" size="20" type="text" name="query" />

    The validation error is saying, I believe, that the closing tag is malformed however the actual is / > and I believe that is what the error message says it should be.

    What am I missing here?

  3. #3
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,014
    Mentioned
    187 Post(s)
    Tagged
    2 Thread(s)
    The validator sees the slash before the /_maxlength and thinks that's the closing slash. Hence the "real" one is "extra".


Tags for this Thread

Bookmarks

Posting Permissions

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