473,772 Members | 3,665 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Opera guesses encoding for "applicatio n/xml"

Hi!

Okay, so positions on "text/html" XHTML are totally contradicting. Anyway!
I hope there's more consensus about "applicatio n/xml" XHTML.

I've recently learned that Opera 9.0b2 does not only evaluate HTTP header,
BOM and XML declaration to determine the character encoding of an XHTML
document sent as "applicatio n/xml", but also the "meta" element. For
example, <http://schneegans.de/sv/test-cases/?case=meta-only-encoding> is
rendered as "Česká republika". In contrast, Firefox displays "?esk?
republika", and IE even aborts parsing.

If you agree with me and think that this behavior is wrong, you might
want to post a follow-up to <news:op******* ***********@new s.opera.com>.

--
All free men, wherever they may live, are citizens of Denmark. And
therefore, as a free man, I take pride in the words "Jeg er dansker!"
Jun 8 '06 #1
43 3173
Christoph Schneegans <Ch*******@Schn eegans.de> wrote:
Okay, so positions on "text/html" XHTML are totally contradicting. Anyway!
I've yet to see anyone successfully defend a single argument for sending
XHTML as text/html. The consensus is that Appendix C was a mistake.
I hope there's more consensus about "applicatio n/xml" XHTML.


XHTML should be served as application/xhtml+xml.

--
Spartanicus
Jun 9 '06 #2
On Fri, 09 Jun 2006 00:24:19 +0200, Christoph Schneegans
<Ch*******@Schn eegans.de> wrote:
I've recently learned that Opera 9.0b2 does not only evaluate HTTP
header,
BOM and XML declaration to determine the character encoding of an XHTML
document sent as "applicatio n/xml", but also the "meta" element. For
example, <http://schneegans.de/sv/test-cases/?case=meta-only-encoding> is
rendered as "Česká republika". In contrast, Firefox displays "?esk?
republika", and IE even aborts parsing.


When I go to that page, I see:

Encoding from server (used by Opera):
iso-8859-2 (iso-8859-2)

Doesn't really look like "meta only"...

--
Garmt de Vries
Jun 9 '06 #3
"Spartanicu s" wrote:
I've yet to see anyone successfully defend a single argument for
sending XHTML as text/html.
For XHTML? More powerful means for validation, simpler syntax. For
text/html? IE wouldn't support it otherwise.
The consensus is that Appendix C was a mistake.


Your consensus.
I hope there's more consensus about "applicatio n/xml" XHTML.


XHTML should be served as application/xhtml+xml.


That wouldn't change anything, and I guess you know that.

--
All free men, wherever they may live, are citizens of Denmark. And
therefore, as a free man, I take pride in the words "Jeg er dansker!"
Jun 9 '06 #4
Garmt de Vries wrote:
<http://schneegans.de/sv/test-cases/?case=meta-only-encoding>


When I go to that page, I see:

Encoding from server (used by Opera):
iso-8859-2 (iso-8859-2)

Doesn't really look like "meta only"...


<http://web-sniffer.net/?url=http://schneegans.de/sv/test-cases/%3Fcase=meta-only-encoding>

When still in doubt, use Telnet.

--
All free men, wherever they may live, are citizens of Denmark. And
therefore, as a free man, I take pride in the words "Jeg er dansker!"
Jun 9 '06 #5
Christoph Schneegans <Ch*******@Schn eegans.de> wrote:
I've yet to see anyone successfully defend a single argument for
sending XHTML as text/html.
For XHTML? More powerful means for validation,


Yawn, we've disproved that plenty of times
http://www.spartanicus.utvinternet.ie/no-xhtml.htm
simpler syntax.
Nonsense.
For text/html? IE wouldn't support it otherwise.


IE doesn't support XHTML period, falsely labeling it as text/html merely
prevents that from being demonstrated more clearly.
The consensus is that Appendix C was a mistake.


Your consensus.


The consensus amongst the members of this group. To date no-one has
managed to uphold an argument for serving XHTML as text/html, feel free
to confirm this via the archives.
http://groups.google.com/group/comp....ml+text%2Fhtml
I hope there's more consensus about "applicatio n/xml" XHTML.


XHTML should be served as application/xhtml+xml.


That wouldn't change anything, and I guess you know that.


You professed a hope for "consensus" about serving XHTML as
application/xml from. There is broad consensus, but it is to serve XHTML
as application/xhtml+xml as per w3c's recommendation:
http://www.w3.org/TR/xhtml-media-types/

Specifically:

3.3. 'application/xml'

The 'application/xml' media type [RFC3023] is a generic media type for
XML documents, and the definition of 'application/xml' does not preclude
serving XHTML documents as that media type. Any XHTML Family document
MAY be served as 'application/xml'.

However, authors should be aware that such a document may not always be
processed as XHTML (e.g. hyperlinks may not be recognized), depending on
user agents. Generic XML processors might recognize it as just an XML
document which includes elements and attributes from the XHTML namespace
(and others), and may not have a priori knowledge what to do with such a
document beyond they can do for generic XML documents.
http://www.w3.org/TR/xhtml-media-typ...pplication-xml

--
Spartanicus
Jun 9 '06 #6
On Fri, 9 Jun 2006, Spartanicus wrote:
IE doesn't support XHTML period, falsely labeling it as text/html merely
prevents that from being demonstrated more clearly.


What means "support" or "doesn't support"?
http://www.unics.uni-hannover.de/nht...otation.x.html
http://www.unics.uni-hannover.de/nht...notation.xhtml

are identical resources - only the URL is different. Yet IE 6
behaves differently because one of the URLs ends in ".html".
*.x.html is displayed, *.xhtml is offered for download.
Silly IE!

Jun 9 '06 #7
Andreas Prilop <nh******@rrz n-user.uni-hannover.de> wrote:
IE doesn't support XHTML period, falsely labeling it as text/html merely
prevents that from being demonstrated more clearly.


What means "support" or "doesn't support"?


Parse it as XHTML, not HTML.

--
Spartanicus
Jun 9 '06 #8
"Spartanicu s" wrote:
For XHTML? More powerful means for validation,
Yawn, we've disproved that plenty of times
http://www.spartanicus.utvinternet.ie/no-xhtml.htm


You surely intended to point to
<http://www.spartanicus .utvinternet.ie/custom_dtd.htm> . I'd like to know
how you want to spot improper or error-prone markup such as

<p title=""style=" "></p>

<!------><hr><!------>

<span lang="klingon"> ...</span>

with this custom DTD.
simpler syntax.


Nonsense.


Yeah,

<p ltr<span></span</p>

is obviously simpler syntax than

<p dir="ltr"><span ></span></p>

because it's shorter.
IE doesn't support XHTML period,
It doesn't support HTML either, see e.g.
<http://schneegans.de/web/xhtml/shorttag/>. Now I want you to present an
XHTML 1.0 document that conforms to Appendix C and is not supported by IE.
You professed a hope for "consensus" about serving XHTML as
application/xml from. There is broad consensus, but it is to serve
XHTML as application/xhtml+xml as per w3c's recommendation:
Just show me an user agent that supports "applicatio n/xhtml+xml" but does
not support "applicatio n/xml".
http://www.w3.org/TR/xhtml-media-types/


Did you really overlook
<http://www.w3.org/TR/xhtml-media-types/#text-html>?

--
All free men, wherever they may live, are citizens of Denmark. And
therefore, as a free man, I take pride in the words "Jeg er dansker!"
Jun 9 '06 #9
Christoph Schneegans <Ch*******@Schn eegans.de> wrote:
For XHTML? More powerful means for validation,
Yawn, we've disproved that plenty of times
http://www.spartanicus.utvinternet.ie/no-xhtml.htm


You surely intended to point to
<http://www.spartanicus .utvinternet.ie/custom_dtd.htm> .


A misconception like "XHTML is stricter" is common. If you are not
specific and only say "More powerful means for validation", then all I
can do is point to the main page that includes a refute of this most
common misconception.
I'd like to know
how you want to spot improper or error-prone markup such as

<p title=""style=" "></p>

<!------><hr><!------>

<span lang="klingon"> ...</span>

with this custom DTD.
All additional XHTML constraints can be emulated for HTML validation.
The resource you quoted makes no claim that it emulates all these
additional constraints, it merely demonstrates how it can be done using
a common subset.

Not all DTD validator checkable constraints are governed by the DTD.
This is noted on the quoted resource, and it links to an explanation of
how to change non DTD constraints, again using a common example.

That said, the practical value of being able to machine check even for
all additional constraints that are part of XHTML 1.x (some of which are
only part of XHTML 1.1 such as your "<span lang="klingon"> ...</span>"
example) is nil as long as the result is parsed by HTML clients.
Ultimately this invalidates all potential arguments in favour of XHTML.
simpler syntax.


Nonsense.


Yeah,


Again, if you want to make a point you need to be specific. Loose
unqualified remarks such as "simpler syntax" don't allow for a proper
response.
<p ltr<span></span</p>

is obviously simpler syntax than

<p dir="ltr"><span ></span></p>

because it's shorter.
You've lost me, are you suggesting that "<p ltr<span></span</p>" is
proper syntax and/or valid under XHTML?
IE doesn't support XHTML period,


It doesn't support HTML either, see e.g.
<http://schneegans.de/web/xhtml/shorttag/>.


Other flaws do not form an argument for a claim that IE supports XHTML.
Now I want you to present an
XHTML 1.0 document that conforms to Appendix C and is not supported by IE.
You professed a hope for "consensus" about serving XHTML as
application/xml from. There is broad consensus, but it is to serve
XHTML as application/xhtml+xml as per w3c's recommendation:


Just show me an user agent that supports "applicatio n/xhtml+xml" but does
not support "applicatio n/xml".


You are avoiding the point made that contrary to your claim that the
media type used made no difference, that a document served as
application/xml may not be recognized as XHTML.
http://www.w3.org/TR/xhtml-media-types/


Did you really overlook
<http://www.w3.org/TR/xhtml-media-types/#text-html>?


The consensus I referred to pertained to this group, it has rejected
serving XHTML as text/html in favour of the view that if XHTML is to be
used at all then it should be served as application/xhtml+xml

--
Spartanicus
Jun 9 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
8608
by: Tjerk Wolterink | last post by:
Hello, I've xml code that looks like this: <?xml version="1.0" encoding="ISO-8859-1"?> <xc:xcontent xmlns:xc="http://www.wolterinkwebdesign.com/xml/xcontent" xmlns="http://www.w3.org/1999/xhtml">
2
1949
by: Ferd Biffle | last post by:
Hello! I have an Excel XML feed from an Enterprise PDM system that is basically a flat text file with XML tags: <?xml version="1.0" encoding="UTF-8"?> <Import> <Row> <ID>1</ID> <Level>0</Level>
1
1172
by: ouioui2000 | last post by:
Hi, I try to generate xml flow with javascript in a new windows. Here is my javascritp code : <code> fenetrePopUp = window.open('','_blank','width=500,height=300,scrollbars=yes,status=yes,resizable=yes'); fenetrePopUp.document.open("application/xml+xsl"); fenetrePopUp.document.write(myCodeXML); </code>
3
11815
by: Gustavo L. Fabro | last post by:
Greetings! I'm testing VS 2005 Beta 2, and I've compiled a program that runs just fine on my computer (where VS is installed). I've tried to run this same program on another computer (after having installed MS .NET Framework 2.0 Beta 2 on it, from http://www.microsoft.com/downloads/details.aspx?FamilyId=7ABD8C8F-287E-4C7E-9A4A-A4ECFF40FC8E&displaylang=en), but got the following message:
4
1662
by: Keith Chadwick | last post by:
I am having some trouble referencing an Application("myVar") variable from within a module.vb file on my ASP.NET site. According to the documentation I should be able to reference System.Web.HttpApplication but it does not seem to like that one bit. I also have a MSXML2.DOMDocument30 defined as a public object within the vb module which is loaded during the application start up with a bunch of XML. What is weird is that the data contained...
2
1617
by: Joel Vazquez | last post by:
Visual Basic.NET Application RunTime Crashes and Stalls Im a newbie if you could say in .NET ive been working with it the past 3 months and have done lots of things with it, without any prior knowledge. I have a few question regarding the stability of my application. I have a synchronization application that connects to a service and send the results to SQL Server 2000. I got all my code in just one form.
9
5113
by: MrSpock | last post by:
1. Create a new Windows Application project. 2. Open the project properties and check "Make single instance application". 3. Build. 4. Go to the release folder and run the application. 5. Try to open a second instance of the application. This will cause an unhandled exception and the "Send Error Report" box shows up. Does this happen to anyone else, or is it just me? Debug info: "Unhandled exception at 0x00e149fd in...
0
1908
by: Phil | last post by:
I am writing an application (using Visual Studio 2003) that consumes a third party Web Service, but I receive the following error : Client found response content type of 'application/xml; charset=utf-8', but expected 'text/xml'. I can see the XML Document and it is properly structured. Is there any way to overide this and get .NET to process the response XML regardless of the Content Type Setting in the HTTP Response ?
1
1265
by: wingsganesh | last post by:
Hi guys, I know how load XMl file in Windows application.But comparing windows application , device application have some special feature. When i use the same code in device application i have bug called"Web Exception" Any body can help My code is:
0
9620
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10261
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10104
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9912
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8934
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6715
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.