Creating XHTML in an iframe

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mcginkel

    Creating XHTML in an iframe

    I am trying to find a way to load XHTML content in an Iframe.

    I use to do this in html by using the following code :

    var iframeObject = document.create Element("iframe ");
    MyDiv.appendChi ld(iframeObject );
    var data =
    "<html><head><t itle>testing</title></head><body>data </body></html>"
    iframeObject.co ntentDocument.o pen();
    iframeObject.co ntentDocument.w riteln(data);
    iframeObject.co ntentDocument.c lose();

    This works fine. I can create my content dynamicly and synchroniously.
    No problem.

    No I try to switch to XHTML, but have trouble getting th eiframe to
    understand that it gets XHTML data. It simply assumes that the data is
    "text/html".
    I tried to add the contentType with the .open() arguments:

    var iframeObject = document.create Element("iframe ");
    MyDiv.appendChi ld(iframeObject );
    var data = "<!DOCTYPE html PUBLIC \"-//W3C//DTD ..etc..
    transitional.dt d\">"
    + "<html xmlns=\"http://www.w3.org/1999/xhtml\" > etc etc </html>";
    iframeObject.co ntentDocument.o pen("applicatio n/xhtml+xml", true);
    iframeObject.co ntentDocument.w riteln(data);
    iframeObject.co ntentDocument.c lose();

    The code runs but the content is not seen as xhtml, so I can't mix html
    and xml. Someone gave me the hint to use the following:

    iframeObject.sr c="data:applica tion/xhtml+xml,"+dat a;

    This works, the data gets loaded and is actually seen as xhtml, but..
    the loading happens async in stead of sync.

    Is there anyone who can help me with :
    - does document.open(" application/xhtml+xml", true) work at all?
    should it work ?
    - are there other ways to wait for an async loading in scripting ?

    Kees

  • Martin Honnen

    #2
    Re: Creating XHTML in an iframe



    Mcginkel wrote:

    [color=blue]
    > Is there anyone who can help me with :
    > - does document.open(" application/xhtml+xml", true) work at all?
    > should it work ?[/color]

    If you really have used script and application/xhtml+xml before then you
    probably know that current browsers (at least Mozilla and Opera) do not
    support document.write for that content type. And I don't think there is
    any intention to support it.
    So the problem is not simply the document.open call but the
    document.write calls that would follow.
    [color=blue]
    > - are there other ways to wait for an async loading in scripting ?[/color]

    Mozilla allows an onload handler on an iframe element so you could try alike

    var div = document.create Element('div');
    var iframe = document.create Element('iframe ');
    div.appendChild (iframe);
    document.body.a ppendChild(div) ;
    iframe.onload = function (evt) {
    alert(evt.type + '; target: ' + evt.target + '; currentTarget: ' +
    evt.currentTarg et);
    if (evt && evt.currentTarg et && evt.currentTarg et.contentDocum ent) {
    var element = evt.currentTarg et.contentDocum ent.documentEle ment;
    alert('nodeName : ' + element.nodeNam e + '; namespaceURI: ' +
    element.namespa ceURI);
    }
    };
    iframe.src = 'data:applicati on/xhtml+xml,' + [
    '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">' ,
    '<head>',
    '<script type="text/javascript">',
    'window.onload = function (evt) { alert(\'documen t: \' + document +
    \'; contentType: \' + document.conten tType); };',
    '<\/script>',
    '</head>',
    '<body>',
    '<h1>test</h1>',
    '</body>',
    '</html>'
    ].join('');

    Mozilla (tested with 1.7) shows the contentType as application/xhtml+xml
    for the document in the iframe and nodeName/namspaceURI are also as they
    should be in an XHTML document (lower case nodeName, namespace
    http://www.w3.org/1999/xhtml).

    Note that for that data: URL the iframe src is set to I have just
    followed your example but I would need to check the data URL
    specification and check whether the string needs to be URL encoded
    before using that stuff in the praxis.

    --

    Martin Honnen

    Comment

    • Mcginkel

      #3
      Re: Creating XHTML in an iframe

      >If you really have used script and application/xhtml+xml before then you[color=blue]
      >probably know that current browsers (at least Mozilla and Opera) do not
      >support document.write for that content type. And I don't think there is
      >any intention to support it.
      >So the problem is not simply the document.open call but the
      >document.wri te calls that would follow.[/color]

      I know that you cannot use write() while parsing an xhtml document. I
      just assume I can write a new document once into another window or
      frame. so not modifying the original doc. Is that outside the scope of
      the spec ?

      Thanks for the example, but it is still an async notification when the
      frame is ready loading. In my code I load a library with functions, I
      will use the functions directly after the call document.close( ) or
      ..src="data:... ....". I am stuck with some old code that works fine in
      IE and HTML. Now I try to move to XHTML and supporting other browsers.
      I hoped to find a way without rewriting the code too much.

      As you have worked with XHTML. Is it worth migrating to ? The main
      reason to change is the option to mix html with xml (simular to
      dataislands in IE) and svg. The opinions on XHTML are quite diverse,
      depending on who you speak. Is it solid enough to build appliactions in
      a browser ?

      Kees

      Comment

      • Martin Kurz

        #4
        Re: Creating XHTML in an iframe

        Mcginkel schrieb:[color=blue][color=green]
        >>If you really have used script and application/xhtml+xml before then you
        >>probably know that current browsers (at least Mozilla and Opera) do not
        >>support document.write for that content type. And I don't think there is
        >>any intention to support it.
        >>So the problem is not simply the document.open call but the
        >>document.writ e calls that would follow.[/color]
        >
        >
        > I know that you cannot use write() while parsing an xhtml document. I
        > just assume I can write a new document once into another window or
        > frame. so not modifying the original doc. Is that outside the scope of
        > the spec ?
        >
        > Thanks for the example, but it is still an async notification when the
        > frame is ready loading. In my code I load a library with functions, I
        > will use the functions directly after the call document.close( ) or
        > ..src="data:... ....". I am stuck with some old code that works fine in
        > IE and HTML. Now I try to move to XHTML and supporting other browsers.
        > I hoped to find a way without rewriting the code too much.
        >
        > As you have worked with XHTML. Is it worth migrating to ? The main
        > reason to change is the option to mix html with xml (simular to
        > dataislands in IE) and svg. The opinions on XHTML are quite diverse,
        > depending on who you speak. Is it solid enough to build appliactions in
        > a browser ?
        >
        > Kees[/color]

        Can't answer your questions but one thing to remember on using iframes in XHTML:
        There is no iframe anymore in XHTML, so you shouldn't switch to XHTML when you
        want to use iframes.

        Comment

        • Martin Honnen

          #5
          Re: Creating XHTML in an iframe



          Martin Kurz wrote:

          [color=blue]
          > Can't answer your questions but one thing to remember on using iframes in XHTML:
          > There is no iframe anymore in XHTML, so you shouldn't switch to XHTML when you
          > want to use iframes.[/color]

          That is nonsense, XHTML 1.0 is simply a reformulation of HTML 4 so it
          has all the elements like <iframe>, <frameset>, <frame> and the target
          attribute if you use the proper XHTML 1.0 DTD:
          <http://www.w3.org/TR/xhtml1>

          --

          Martin Honnen

          Comment

          • Martin Honnen

            #6
            Re: Creating XHTML in an iframe



            Mcginkel wrote:
            [color=blue]
            > I know that you cannot use write() while parsing an xhtml document. I
            > just assume I can write a new document once into another window or
            > frame. so not modifying the original doc. Is that outside the scope of
            > the spec ?[/color]

            It is hard to find anything definitive in the spec, if we look at the
            W3C DOM Level 2 HTML module then it defines a method document.write for
            both HTML 4 and XHTML 1.0 documents as the introduction in
            <http://www.w3.org/TR/DOM-Level-2-HTML/> says:
            "This specification defines the Document Object Model Level 2 HTML, a
            platform- and language-neutral interface that allows programs and
            scripts to dynamically access and update the content and structure of
            [HTML 4.01] and [XHTML 1.0] documents."
            and as the specification of document.write in
            <http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-75233634> does to
            list any exceptions that for XHTML 1.0 the method is not supposed to be
            supported.
            The specification of the open method here
            <http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-72161170> does not
            list any parameters and only speaks of strings of unparsed HTML.
            So in terms of the W3C DOM the open method has no parameter to set a
            MIME type.

            [color=blue]
            > As you have worked with XHTML. Is it worth migrating to ? The main
            > reason to change is the option to mix html with xml (simular to
            > dataislands in IE) and svg. The opinions on XHTML are quite diverse,
            > depending on who you speak. Is it solid enough to build appliactions in
            > a browser ?[/color]

            My work with XHTML has been mostly experimental to explore the
            differences between scripting HTML and XHTML and XML documents. My
            conclusion so far is that it is not worth to bother with pure XHTML 1.0
            as a replacement for HTML 4.01 as there are no advantages in terms of
            HTML (XHTML 1.0 is a reformulation of HTML 4.01 and thus has the same
            elements and attributes) and as writing XHTML 1.0 so that it is
            backwards compatible with HTML is a hassle. With at least one major
            browser (that is IE/Win) having no support for XHTML being served as
            application/xhtml+xml if you want to use XHTML 1.0 you are however
            forced to write in so it is backwards compatible to HTML and can be
            served as text/html.
            There are some people by now who use the HTTP accept header the user
            agent sends to send XHTML 1.0 as text/html then to IE but as
            application/xhtml+xml to browsers like Mozilla or Opera.
            Scripting then even becomes more difficult as you have to write your
            scripts so that they work in both environments.

            And there are documented disadvantages, for instance the Mozilla web
            devloper FAQ
            <http://www.mozilla.org/docs/web-developer/faq.html#xhtmld iff> clearly
            explains "The document is not loaded and rendered incrementally. That
            is, the document is displayed only after the entire document has been
            received and parsed."

            So on the web in general I see no reason why you should use XHTML 1.0
            instead of HTML 4.01.
            If you were authoring for an intranet where you know all users using the
            latest version of a browser supporting XHTML as application/xhtml+xml
            you could of course decide differently, you do not have the hassle of
            needing to write markup that both HTML/SGML and XHTML/XML parsers
            understand and the hassle of writing scripts working in both environments.


            Things are different when it comes to real advantages XHTML and XML has
            to offer, you have named the integration of XHTML with other XML
            applications like SVG or like MathML. There it certainly makes sense to
            use XML but of course it is hardly possible to write applications for
            the web in general that case, these are (at least currently) niche
            applications requiring a particular user agent. Mozilla (since 1.0 I
            think) can do XHTML 1.0 with MathML, Opera (since 8.0) can do XHTML 1.0
            with SVG Tiny I think where script in the SVG is not supported, where no
            SVG DOM is exposed, and where Core DOM manipulation of the SVG elements
            at run time are not working reliably. The upcoming Firefox 1.5 will
            allow mixed XHTML, MathML, SVG with scripting of SVG and some SVG DOM
            exposed but obviously then writing for instance a mixed XHTML and SVG
            document that works the same in Firefox 1.5 and Opera 8 needs a
            developer carefully using features implemented by both browsers.


            If you think XHTML helps to have then XML data islands in the HTML
            document then I still think using HTML 4 and text/html for your HTML
            document with script and then using your script and XMLHttpRequest to
            load/parse the XML data gives you a broader browser support and easier,
            more consistent scripting.


            --

            Martin Honnen
            http://JavaScript.FAQT s.com/

            Comment

            • Martin Kurz

              #7
              Re: Creating XHTML in an iframe

              Martin Honnen schrieb:[color=blue]
              >
              >
              > Martin Kurz wrote:
              >
              >[color=green]
              >> Can't answer your questions but one thing to remember on using iframes
              >> in XHTML:
              >> There is no iframe anymore in XHTML, so you shouldn't switch to XHTML
              >> when you
              >> want to use iframes.[/color]
              >
              >
              > That is nonsense, XHTML 1.0 is simply a reformulation of HTML 4 so it
              > has all the elements like <iframe>, <frameset>, <frame> and the target
              > attribute if you use the proper XHTML 1.0 DTD:
              > <http://www.w3.org/TR/xhtml1>[/color]

              So it would be nice to point me to the iframe in the strcit-dtd:

              There's no Element iframe.

              Comment

              • cwdjrxyz@yahoo.com

                #8
                Re: Creating XHTML in an iframe


                Martin Honnen wrote:[color=blue]
                > Mcginkel wrote:
                >[color=green]
                > > I know that you cannot use write() while parsing an xhtml document. I
                > > just assume I can write a new document once into another window or
                > > frame. so not modifying the original doc. Is that outside the scope of
                > > the spec ?[/color]
                >
                > It is hard to find anything definitive in the spec, if we look at the
                > W3C DOM Level 2 HTML module then it defines a method document.write for
                > both HTML 4 and XHTML 1.0 documents as the introduction in
                > <http://www.w3.org/TR/DOM-Level-2-HTML/> says:
                > "This specification defines the Document Object Model Level 2 HTML, a
                > platform- and language-neutral interface that allows programs and
                > scripts to dynamically access and update the content and structure of
                > [HTML 4.01] and [XHTML 1.0] documents."
                > and as the specification of document.write in
                > <http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-75233634> does to
                > list any exceptions that for XHTML 1.0 the method is not supposed to be
                > supported.
                > The specification of the open method here
                > <http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-72161170> does not
                > list any parameters and only speaks of strings of unparsed HTML.
                > So in terms of the W3C DOM the open method has no parameter to set a
                > MIME type.
                >
                >[color=green]
                > > As you have worked with XHTML. Is it worth migrating to ? The main
                > > reason to change is the option to mix html with xml (simular to
                > > dataislands in IE) and svg. The opinions on XHTML are quite diverse,
                > > depending on who you speak. Is it solid enough to build appliactions in
                > > a browser ?[/color]
                >
                > My work with XHTML has been mostly experimental to explore the
                > differences between scripting HTML and XHTML and XML documents. My
                > conclusion so far is that it is not worth to bother with pure XHTML 1.0
                > as a replacement for HTML 4.01 as there are no advantages in terms of
                > HTML (XHTML 1.0 is a reformulation of HTML 4.01 and thus has the same
                > elements and attributes) and as writing XHTML 1.0 so that it is
                > backwards compatible with HTML is a hassle. With at least one major
                > browser (that is IE/Win) having no support for XHTML being served as
                > application/xhtml+xml if you want to use XHTML 1.0 you are however
                > forced to write in so it is backwards compatible to HTML and can be
                > served as text/html.
                > There are some people by now who use the HTTP accept header the user
                > agent sends to send XHTML 1.0 as text/html then to IE but as
                > application/xhtml+xml to browsers like Mozilla or Opera.
                > Scripting then even becomes more difficult as you have to write your
                > scripts so that they work in both environments.
                >
                > And there are documented disadvantages, for instance the Mozilla web
                > devloper FAQ
                > <http://www.mozilla.org/docs/web-developer/faq.html#xhtmld iff> clearly
                > explains "The document is not loaded and rendered incrementally. That
                > is, the document is displayed only after the entire document has been
                > received and parsed."
                >
                > So on the web in general I see no reason why you should use XHTML 1.0
                > instead of HTML 4.01.
                > If you were authoring for an intranet where you know all users using the
                > latest version of a browser supporting XHTML as application/xhtml+xml
                > you could of course decide differently, you do not have the hassle of
                > needing to write markup that both HTML/SGML and XHTML/XML parsers
                > understand and the hassle of writing scripts working in both environments.
                >
                >
                > Things are different when it comes to real advantages XHTML and XML has
                > to offer, you have named the integration of XHTML with other XML
                > applications like SVG or like MathML. There it certainly makes sense to
                > use XML but of course it is hardly possible to write applications for
                > the web in general that case, these are (at least currently) niche
                > applications requiring a particular user agent. Mozilla (since 1.0 I
                > think) can do XHTML 1.0 with MathML, Opera (since 8.0) can do XHTML 1.0
                > with SVG Tiny I think where script in the SVG is not supported, where no
                > SVG DOM is exposed, and where Core DOM manipulation of the SVG elements
                > at run time are not working reliably. The upcoming Firefox 1.5 will
                > allow mixed XHTML, MathML, SVG with scripting of SVG and some SVG DOM
                > exposed but obviously then writing for instance a mixed XHTML and SVG
                > document that works the same in Firefox 1.5 and Opera 8 needs a
                > developer carefully using features implemented by both browsers.
                >
                >
                > If you think XHTML helps to have then XML data islands in the HTML
                > document then I still think using HTML 4 and text/html for your HTML
                > document with script and then using your script and XMLHttpRequest to
                > load/parse the XML data gives you a broader browser support and easier,
                > more consistent scripting.
                >
                >
                > --
                >
                > Martin Honnen
                > http://JavaScript.FAQT s.com/[/color]

                It seems xhtml 1.0, of which there are transitional, strict, and frame
                set species, has been the focus of this discussion. Xhtml 1.1 has been
                out quite a while now and an even newer version, which will require new
                browsers, is in the works. I only code in xhtml 1.1 now and see
                absolutely no advantage of using a 1.0 species at this late date. Of
                course what html-xhtml version you wish to use is a matter of personal
                taste - even html 3.2 still works on most browsers.

                It has been claimed that xhtml 1.1 can not be served as html. However,
                in many cases this is not true, although there is likely no advantage
                in doing so rather than using html 4.01 strict. The W3C just says xhtml
                1.1 should not be served as html. However, they say that xhtml must not
                be served as html. It is likely that the next version of xhtml will
                specify that it must not be served as html. I suspect that the W3C did
                not use "must not" for xhtml 1.1 because of IE6 and relatives that can
                not accept the mime type application/xhtml-xml.

                I am serving true application/xhtml+xml in some of my more recent
                pages. A simple php include at the very top of the php page detects if
                the browser will accept application/xhtml+xml. If so, everything needed
                for xhtml 1.1 above the head tag is automatically included in the page.
                If the mentioned mime type support is not detected, then code above the
                page for html 4.01 strict is written. The php include also uses a
                simple regular expression to convert <br /> and such to <br> if an html
                page must be used.

                When you use xhtml 1.1 served as application/xhtml+xml, browsers that
                can handle it become very strict and parse your code as xml. If there
                is the least little error, the page does not display and you get a xml
                parse error message instead. In general document.write just gives a
                blank page or an error message. The xml parser can see right through
                script, comment tags, etc. The main xml no-no is anything that is not
                closed. The problem with document.write is there is no telling what
                this might contain, including unclosed tags and symbols with special
                xml meaning. Thus document.write can not be allowed. In some cases you
                can build up what you need from the DOM to replace document.write.
                However the easy way is to use server side script. For example, I had
                one old page where document.write was at the bottom of a nest of 3 if
                loops and was executed about 2500 times. It was easy to convert this
                portion of the script to a server side php script. Thus the browser is
                sent all of the code generated by the document.write php replacement,
                and the xml parser has no problem checking all of this code for
                unclosed tags, etc. You can also use server side Perl or several other
                languages if any of them strike your fancy more than php.

                I likely will soon be posting some examples of rather complicated pages
                served in both xhtml 1.1 and html 4.01 strict as needed by the viewing
                browser. These pages include some server side php script. This will
                hopefully make what I discussed above more clear.

                Comment

                • Martin Honnen

                  #9
                  Re: Creating XHTML in an iframe



                  Martin Kurz wrote:
                  [color=blue]
                  > Martin Honnen schrieb:
                  >[color=green]
                  >>
                  >>Martin Kurz wrote:
                  >>[color=darkred]
                  >>>There is no iframe anymore in XHTML, so you shouldn't switch to XHTML
                  >>>when you
                  >>>want to use iframes.[/color]
                  >>
                  >>
                  >>That is nonsense, XHTML 1.0 is simply a reformulation of HTML 4 so it
                  >>has all the elements like <iframe>, <frameset>, <frame> and the target
                  >>attribute if you use the proper XHTML 1.0 DTD:
                  >> <http://www.w3.org/TR/xhtml1>[/color]
                  >
                  >
                  > So it would be nice to point me to the iframe in the strcit-dtd:
                  > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
                  > There's no Element iframe.[/color]

                  There is also no iframe element in HTML 4.01 strict so your claim "There
                  is no iframe anymore in XHTML" is nonsense, if you want to write valid
                  HTML 4.01 with an iframe then you need to use the transitional HTML 4.01
                  DTD and if you want to write valid XHTML 1.0 with an iframe then you
                  need to use the transitional XHTML 1.0 DTD.
                  There is no change regarding iframes from HTML 4.01 to XHTML 1.0.

                  --

                  Martin Honnen

                  Comment

                  • cwdjrxyz@yahoo.com

                    #10
                    Re: Creating XHTML in an iframe


                    cwdjrxyz@yahoo. com wrote:[color=blue]
                    > It has been claimed that xhtml 1.1 can not be served as html. However,
                    > in many cases this is not true, although there is likely no advantage
                    > in doing so rather than using html 4.01 strict. The W3C just says xhtml
                    > 1.1 should not be served as html. However, they say that xhtml must not
                    > be served as html. It is likely that the next version of xhtml will
                    > specify that it must not be served as html. I suspect that the W3C did
                    > not use "must not" for xhtml 1.1 because of IE6 and relatives that can
                    > not accept the mime type application/xhtml-xml.[/color]

                    I reversed two words in a sentence. The statement: " However, they say
                    that xhtml must not be served as html." should read: " However, they
                    say that html must not be served as xhtml."

                    Comment

                    • Richard Cornford

                      #11
                      Re: Creating XHTML in an iframe

                      Martin Kurz wrote:[color=blue]
                      > Martin Honnen schrieb:[color=green]
                      >> Martin Kurz wrote:[/color][/color]
                      <snip>[color=blue][color=green][color=darkred]
                      >>> There is no iframe anymore in XHTML, so you shouldn't
                      >>> switch to XHTML when you want to use iframes.[/color]
                      >>
                      >> That is nonsense, XHTML 1.0 is simply a reformulation of
                      >> HTML 4 so it has all the elements like <iframe>, <frameset>,
                      >> <frame> and the target attribute if you use the proper
                      >> XHTML 1.0 DTD:
                      >> <http://www.w3.org/TR/xhtml1>[/color]
                      >
                      > So it would be nice to point me to the iframe in the
                      > strcit-dtd:
                      > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
                      > There's no Element iframe.[/color]

                      There is no IFRAME in the strict HTML DTD either (and no other sorts of
                      frames), but they do exist in the transitional XHTML 1.0 DTD.

                      Richard.


                      Comment

                      • John W. Kennedy

                        #12
                        Re: Creating XHTML in an iframe

                        Martin Honnen wrote:
                        [color=blue]
                        > My work with XHTML has been mostly experimental to explore the
                        > differences between scripting HTML and XHTML and XML documents. My
                        > conclusion so far is that it is not worth to bother with pure XHTML 1.0
                        > as a replacement for HTML 4.01 as there are no advantages in terms of
                        > HTML (XHTML 1.0 is a reformulation of HTML 4.01 and thus has the same
                        > elements and attributes) and as writing XHTML 1.0 so that it is
                        > backwards compatible with HTML is a hassle. With at least one major
                        > browser (that is IE/Win) having no support for XHTML being served as
                        > application/xhtml+xml if you want to use XHTML 1.0 you are however
                        > forced to write in so it is backwards compatible to HTML and can be
                        > served as text/html.[/color]

                        So defy them. Explain to the suckers that they're using a broken browser
                        sold by criminals, and they should replace it.

                        --
                        John W. Kennedy
                        If Bill Gates believes in "intelligen t design", why can't he apply it to
                        Windows?

                        Comment

                        • Richard Cornford

                          #13
                          Re: Creating XHTML in an iframe

                          John W. Kennedy wrote:[color=blue]
                          > Martin Honnen wrote:[/color]
                          <snip>[color=blue][color=green]
                          >> .. . With at least one major browser (that is IE/Win) having
                          >> no support for XHTML being served as application/xhtml+xml
                          >> if you want to use XHTML 1.0 you are however forced to write
                          >> in so it is backwards compatible to HTML and can be served
                          >> as text/html.[/color]
                          >
                          > So defy them. Explain to the suckers that they're using a broken
                          > browser sold by criminals, and they should replace it.[/color]

                          That sounds like a good way of becoming unemployed. In the commercial
                          world if the end results don't work on IE then you haven't done your job
                          at all.

                          Richard.


                          Comment

                          • John W. Kennedy

                            #14
                            Re: Creating XHTML in an iframe

                            Richard Cornford wrote:[color=blue]
                            > John W. Kennedy wrote:
                            >[color=green]
                            >>Martin Honnen wrote:[/color]
                            >
                            > <snip>
                            >[color=green][color=darkred]
                            >>>.. . With at least one major browser (that is IE/Win) having
                            >>>no support for XHTML being served as application/xhtml+xml
                            >>>if you want to use XHTML 1.0 you are however forced to write
                            >>>in so it is backwards compatible to HTML and can be served
                            >>>as text/html.[/color]
                            >>
                            >>So defy them. Explain to the suckers that they're using a broken
                            >>browser sold by criminals, and they should replace it.[/color]
                            >
                            >
                            > That sounds like a good way of becoming unemployed. In the commercial
                            > world if the end results don't work on IE then you haven't done your job
                            > at all.[/color]

                            OK, but don't complain when your grandchildren have to kiss Lord Gates's
                            feet.

                            --
                            John W. Kennedy
                            "You can, if you wish, class all science-fiction together; but it is
                            about as perceptive as classing the works of Ballantyne, Conrad and W.
                            W. Jacobs together as the 'sea-story' and then criticizing _that_."
                            -- C. S. Lewis. "An Experiment in Criticism"

                            Comment

                            • Richard Cornford

                              #15
                              Re: Creating XHTML in an iframe

                              John W. Kennedy wrote:[color=blue]
                              > Richard Cornford wrote:[color=green]
                              >> John W. Kennedy wrote:[color=darkred]
                              >>>Martin Honnen wrote:[/color]
                              >> <snip>[color=darkred]
                              >>>>.. . With at least one major browser (that is IE/Win) having
                              >>>>no support for XHTML being served as application/xhtml+xml
                              >>>>if you want to use XHTML 1.0 you are however forced to write
                              >>>>in so it is backwards compatible to HTML and can be served
                              >>>>as text/html.
                              >>>
                              >>>So defy them. Explain to the suckers that they're using a
                              >>> broken browser sold by criminals, and they should replace it.[/color]
                              >>
                              >> That sounds like a good way of becoming unemployed. In the
                              >> commercial world if the end results don't work on IE then
                              >> you haven't done your job at all.[/color]
                              >
                              > OK, but don't complain when your grandchildren have to kiss Lord
                              > Gates's feet.[/color]

                              That would be the style of argument known as the "slippery slope", and
                              not generally regarded as valid.

                              Richard.


                              Comment

                              Working...