Browser version testing

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

    Browser version testing

    I maintain an academic web site accessed regularly by schools without the
    latest equipment. This means that Version 4 IE and NS browsers are frequent
    visitors.

    When I validate CSS and HTML, which versions and DOCTYPE should I test
    against?

    Thanks you,

    Chris Hopkins
    Parthia: The Parthian Empire - History and Coins of Ancient Parthia



  • Stan Brown

    #2
    Re: Browser version testing

    In article <bsn5vl$ef5h0$1 @ID-177935.news.uni-berlin.de> in
    comp.infosystem s.www.authoring.stylesheets, Charax wrote:[color=blue]
    >I maintain an academic web site accessed regularly by schools without the
    >latest equipment. This means that Version 4 IE and NS browsers are frequent
    >visitors.
    >
    >When I validate CSS and HTML, which versions and DOCTYPE should I test
    >against?[/color]

    I'm not sure whether you just used terms carelessly, or actually
    have a major misunderstandin g.

    You should not (and should not need to) specify a DOCTYPE at
    validation time. Rather, that DOCTYPE should be at the beginning of
    your document. Which DOCTYPE should be in your document? The one
    that describes the version of (X)HTML you're using.

    For any new work, to reduce problems down the road, you should
    specify HTML 4.01 Strict. There's a DOCTYPE for easy cut-and-paste
    at[color=blue]
    > http://www.w3.org/TR/html401/struct/...pe_declaration[/color]
    Version-4 browsers should be able to copy just fine with HTML 4.01.
    They may not implement all features -- and they will get some things
    horribly wrong -- but the same would be true with other DOCTYPEs.
    And by specifying HTML 4.01 Strict, you will be telling later
    browsers not to emulate the bugs of earlier browsers.

    --
    Stan Brown, Oak Road Systems, Cortland County, New York, USA

    HTML 4.01 spec: http://www.w3.org/TR/html401/
    validator: http://validator.w3.org/
    CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
    2.1 changes: http://www.w3.org/TR/CSS21/changes.html
    validator: http://jigsaw.w3.org/css-validator/

    Comment

    • Charax

      #3
      Re: Browser version testing

      Thanks, Stan. So I understand the answer is to use 4.01 strict even though I
      am targeting version 4 browsers.

      Now about the CSS. For version 4 browsers, should I be using CSS1 or CSS2?
      Or is there a complex matrix of which CSS syntax is understood by those
      browsers?

      Cheers,

      Chris Hopkins
      Parthia: The Parthian Empire - History and Coins of Ancient Parthia



      "Stan Brown" <the_stan_brown @fastmail.fm> wrote in message
      news:MPG.1a5934 64b2faa57398ba8 b@news.odyssey. net...[color=blue]
      > In article <bsn5vl$ef5h0$1 @ID-177935.news.uni-berlin.de> in
      > comp.infosystem s.www.authoring.stylesheets, Charax wrote:[color=green]
      > >I maintain an academic web site accessed regularly by schools without the
      > >latest equipment. This means that Version 4 IE and NS browsers are[/color][/color]
      frequent[color=blue][color=green]
      > >visitors.
      > >
      > >When I validate CSS and HTML, which versions and DOCTYPE should I test
      > >against?[/color]
      >
      > I'm not sure whether you just used terms carelessly, or actually
      > have a major misunderstandin g.
      >
      > You should not (and should not need to) specify a DOCTYPE at
      > validation time. Rather, that DOCTYPE should be at the beginning of
      > your document. Which DOCTYPE should be in your document? The one
      > that describes the version of (X)HTML you're using.
      >
      > For any new work, to reduce problems down the road, you should
      > specify HTML 4.01 Strict. There's a DOCTYPE for easy cut-and-paste
      > at[color=green]
      > >[/color][/color]
      http://www.w3.org/TR/html401/struct/...pe_declaration[color=blue]
      > Version-4 browsers should be able to copy just fine with HTML 4.01.
      > They may not implement all features -- and they will get some things
      > horribly wrong -- but the same would be true with other DOCTYPEs.
      > And by specifying HTML 4.01 Strict, you will be telling later
      > browsers not to emulate the bugs of earlier browsers.
      >
      > --
      > Stan Brown, Oak Road Systems, Cortland County, New York, USA
      > http://OakRoadSystems.com/
      > HTML 4.01 spec: http://www.w3.org/TR/html401/
      > validator: http://validator.w3.org/
      > CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
      > 2.1 changes: http://www.w3.org/TR/CSS21/changes.html
      > validator: http://jigsaw.w3.org/css-validator/[/color]

      Comment

      • Stan Brown

        #4
        Re: Browser version testing

        In article <bsppu0$4qqs$1@ ID-177935.news.uni-berlin.de> in
        comp.infosystem s.www.authoring.stylesheets, Charax wrote:
        [color=blue]
        >Now about the CSS. For version 4 browsers, should I be using CSS1 or CSS2?
        >Or is there a complex matrix of which CSS syntax is understood by those
        >browsers?[/color]

        Please do not post upside down
        <http://oakroadsystems. com/genl/unice.htm>. It is highly irritating
        to a number of us, which means that it reduces your chances of
        getting your question answered.

        CSS2 pretty much includes CSS1, but both Netscape 4 and IE 4 do well
        with some aspects of CSS1 and poorly with others. See
        <http://www.blooberry.c om/indexdot/css/index.html> for extensive
        details on quirks of browsers with CSS.

        --
        Stan Brown, Oak Road Systems, Cortland County, New York, USA

        HTML 4.01 spec: http://www.w3.org/TR/html401/
        validator: http://validator.w3.org/
        CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
        2.1 changes: http://www.w3.org/TR/CSS21/changes.html
        validator: http://jigsaw.w3.org/css-validator/

        Comment

        • Tim

          #5
          Re: Browser version testing

          On Mon, 29 Dec 2003 12:57:09 -0500,
          "Charax" <chopkins@ameri tech.net> wrote:
          [color=blue]
          > Thanks, Stan. So I understand the answer is to use 4.01 strict even though I
          > am targeting version 4 browsers.[/color]

          What do you mean by "version 4 browsers"? If you mean something like
          IE4, or Netscape 4, then that's nothing to do with HTML 4.x.
          [color=blue]
          > Now about the CSS. For version 4 browsers, should I be using CSS1 or CSS2?
          > Or is there a complex matrix of which CSS syntax is understood by those
          > browsers?[/color]

          No browsers understand all of CSS, and some have different ideas about
          how to do the same sort of thing. And since there's no way to say that
          some CSS should be regarded as being CSS 1 or CSS 2, there's little
          point in deliberately doing something in an old way, particularly if
          there's been changes to CSS.

          --
          My "from" address is totally fake. The reply-to address is real, but
          may be only temporary. Reply to usenet postings in the same place as
          you read the message you're replying to.

          This message was sent without a virus, please delete some files yourself.

          Comment

          • Stan Brown

            #6
            Re: Browser version testing

            In article <ufp2vv0i7eg7dt jab629ocv20kkj4 07eoo@4ax.com> in
            comp.infosystem s.www.authoring.stylesheets, Tim wrote:[color=blue]
            >No browsers understand all of CSS, and some have different ideas about
            >how to do the same sort of thing. And since there's no way to say that
            >some CSS should be regarded as being CSS 1 or CSS 2, there's little
            >point in deliberately doing something in an old way, particularly if
            >there's been changes to CSS.[/color]

            That is one view, basically "I don't care how it looks in anything
            below Mozilla 1.5." It's an author's choice to make, but I don't
            think it's one that most people would endorse.

            Another view is, "If there's an old way and a new way to do
            something, more browsers are likely to react as I wish to the old
            way. I must think of the tradeoffs between old and new, not just
            blindly say that 'new is better'."

            --
            Stan Brown, Oak Road Systems, Cortland County, New York, USA

            HTML 4.01 spec: http://www.w3.org/TR/html401/
            validator: http://validator.w3.org/
            CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
            2.1 changes: http://www.w3.org/TR/CSS21/changes.html
            validator: http://jigsaw.w3.org/css-validator/

            Comment

            • Stephen Poley

              #7
              Re: Browser version testing

              On Mon, 29 Dec 2003 12:57:09 -0500, "Charax" <chopkins@ameri tech.net>
              wrote:
              [color=blue]
              >Thanks, Stan. So I understand the answer is to use 4.01 strict even though I
              >am targeting version 4 browsers.
              >
              >Now about the CSS. For version 4 browsers, should I be using CSS1 or CSS2?
              >Or is there a complex matrix of which CSS syntax is understood by those
              >browsers?[/color]

              It's pretty complex. Even parts of CSS1 are not supported at all
              reliably. Given that not many people use NN4 / IE4 any more, it's
              probably best to restrict yourself to a few simple colours and
              backgrounds, or even hide all the CSS.
              http://www.xs4all.nl/~sbpoley/webmatters/netscape4.html may help a bit.

              --
              Stephen Poley


              Comment

              Working...