SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist
    Join Date
    Aug 2005
    Posts
    574
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Validating forms

    Here's something I feel I should know the answer to but don't. When you validate a URI, does it also check any javascript forms that are triggered from that page? I'm thinking not, because the forms don't appear in a view source (except as CDATA) and there's nothing different in the URI. But if it doesn't, how do you validate these types of javascript forms? Is Firebug's Validate Local HTML the best way or is there something more definitive?

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,343
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    The html validator is only concerned with the source code of the page. If you are injecting html into the page with javascript then the validator will know nothing about it. The html validator is not concerned with javascript.

    If you have the web developer extension in Firefox you can view "generated" source and paste that into the validator to check the code is valid.

  3. #3
    SitePoint Evangelist
    Join Date
    Aug 2005
    Posts
    574
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, Paul.


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
  •