Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by ww (Bishop)
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.)


Comment on Re^5: CSV or HTML? (now OT)
Download Code
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.

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2014-09-23 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (217 votes), past polls