Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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

by ww (Archbishop)
on Jan 20, 2012 at 01:22 UTC ( #948866=note: print w/replies, xml ) Need Help??

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

"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.)

Replies are listed 'Best First'.
Re^6: CSV or HTML? (now OT)
by tobyink (Abbot) on Jan 20, 2012 at 08:52 UTC

    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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://948866]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2018-02-19 23:01 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (266 votes). Check out past polls.