Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: CSV or HTML? (now OT)

by tobyink (Canon)
on Jan 19, 2012 at 21:14 UTC ( [id://948847]=note: print w/replies, xml ) Need Help??


in reply to Re^3: CSV or HTML? (now OT)
in thread CSV or HTML?

...and the name of "a standards compliant browser" (to which to your refer) is?

For the purpose of my example, any version of Opera, Mozilla or Safari released in the last decade should do, as should IE9.

Sure there are plenty of holes in standards compliance in browsers, but this particular standard (parsing XHTML) is pretty reliably implemented.

Replies are listed 'Best First'.
Re^5: CSV or HTML? (now OT)
by ww (Archbishop) on Jan 20, 2012 at 01:22 UTC
    "Re^2: CSV or HTML?
    by tobyink on Jan 19, 2012...
    .... (Illustration & other narrative, omitted. ....
    The above, viewed in a standards compliant browser, in XHTML mode, will show a green paragraph. The CSS which sets it to red is commented out and ignored.

    and, in the parent of this node

    For the purpose of my example, any version of Opera, Mozilla or Safari released in the last decade should do, as should IE9.

    Did you intend to exclude FF from your list because it doesn't satisfy your standards for "standards compliant" or simply because three examples, with a fourth as an afterthought, seemed adequate to lead the reader to infer that you mean any widely distributed browser, Y2k or a bit more recent, will fill the bill?

    If so, then once again I seem to be missing something.

    Using your "Illustration" xhtml, verbatim, in a file called "xhtml_test.xhtml", serving it from Xitami on a win32 box, and browsing it in what FF 9.01 claims is "Standards Compliant Mode," I see the supposedly green para in red.

    Adding <meta http-equiv="Content-Type: application/xhtml+xml"> immediately after the dtd does NOT change the rendering.

    Want to take another shot at pointing me in the right direction?
        (I hope.)

      I included "Mozilla" in my list, and intended for that to cover Firefox and any other browser derived from the Mozilla codebase. Certainly any version of Firefox will do - even versions from back when it was called "Phoenix".

      Check your HTTP headers:

      perl -MLWP::UserAgent -e'print LWP::UserAgent->new->get("http://localh +ost/xhtml_test.xhtml")->headers->as_string'

      I'm guessing you'll see Content-Type: text/html. As I said, my example is XHTML, and assumes that the page is served with the correct XHTML media type Content-Type: application/xhtml+xml. Adding a <meta> tag to the document will not make any difference.

      http://buzzword.org.uk/2012/xhtml_test

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://948847]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-16 18:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found