javascript - Is there a way to validate the HTML of a page after AJAX operations are performed on it? -


I am writing a web app that incorporates and modifies HTML elements via AJAX. It works very well, but I'm sure everything under the bonnet is fine. When I look at the source of the page in IE or Chrome, it shows me the original document markup, what has changed since my AJAX call.

I like to use the WC3 validator to check my markup because it sometimes reminds me I think I forgot to forget one tag and so on. After the basic source of service from the server, I have been changed through javascript.

Thank you.

Use the developer tool to explore DOM in Chrome: It will show you all the HTMLs added in JavaScript.

Now you can copy it and paste it into the desired validator.

Or instead of inserting code into JQuery instead of inserting it into the console, the browser will not be able to close the tag for you.

  console.log (myHTML)  

Comments