On Tue, 26 Feb 2008 10:44:13 -0800, jody tate wrote:
> Does anyone have a preferred way to view and validate generated source code? 
> By 
> generated source I mean after Ajax, JavaScript, and so on have done their 
> magic. 
>
>
[...]
>
>
> Yet viewing generated source in Firebug, that same meta tag remains closed. 
> Firebug,
> however, doesn't have (or I haven't noticed?) a way to copy and paste source 
> code for
> direct input validation to the W3C validator. This, then, is the ultimate 
> goal: to get
> the generated source, copy it and paste it into a validator. I validated with 
> static
> mockups prior to de-building the XHTML and giving it over to JavaScript, but 
> I want to
> validate now to make sure I'm staying on track. 
>
>
> Have others run into this problem? 
>

Yes. I have come across it, although for me it is not a problem.

This behavior seems logical to me. After all, what displays is the
browser's interpretation of the document, which is likely HTML.
Unless you are doing something server-side, you are likely sending 
the documents to the browser with an HTML MIME type,
as opposed to XHTML, which requires special handling.

One suggestion I have to get Firefox to treat the page as XHTML
is to rename your document with dot-xhtml (".xhtml") extension instead
of the dot-htm or dot-html. This works from the hard drive, and quite
a few hosts are set up to send the correct MIME type as well.
Not all are though - you need to check with your host.

You may have problems viewing this in Internet Explorer, so don't
use it as a permanent web page - just use it for your purpose of
validating generated code.

I hope this suggestion helps.

[Aside] I help out at a computer lab where web design is taught.
One misconception I see over and over is that putting things like an
XHTML DOCYPE or declaring UTF-8 encoding in a META element somehow
alters the document itself. Saying it is so does not make it so,
despite what certain politicians would have us believe.

Cordially,
David
--



*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to