Chrome/Chromium view source does not show entire source

ShareShare on FacebookTweet about this on TwitterPin on PinterestShare on Google+Share on Reddit

Using Chrome, I was working on a script that was generating an almost-xml (WXR export) document and outputting it to the web browser. From there, I was copying and pasting the results of the View page source command into a text document and attempting to validate the document to import into WordPress. After banging my head against the table many times due to trying to tweak various fields in the document, I realized that “View page source” in Chrome does not display the entire page source. At a minimum (haven’t done much other testing), it leaves off the information at the top of the document. I would love to know the reasoning behind this.



Moral of the story: Don’t use view source in Chrome as a reliable means of viewing the source.

This entry was posted in technology and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *