IE-only href

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

    #1

    IE-only href

    Hi all,

    I went to this site:



    and found that the links don't work in any browser other
    than IE. They have links implemented thusly:

    <td id="menulink"
    href="http://www.pacificnati onal.com.au/corporate/about.asp">

    I intend sending a note to the site owner to complain, but
    first I'd like to get my facts straight. Does anyone know
    if the above method is explicitly supported by IE, or is it
    just an artifact of IE's support for otherwise invalid HTML?

    There are several (well, maybe 50) other errors, the most
    obvious and major being that all the <td> tags have the same
    id="menulink" - as far as I know, that is expressly against
    the HTML 4 standard (and likely its predecessors).

    I'm also leery of the line:

    <script language="javas cript" for="menulink"
    event="onmouseo ver">

    even allowing for the language attribute error.

    Regards, Rob.
  • Jeff North

    #2
    Re: IE-only href

    On Thu, 30 Sep 2004 01:15:22 GMT, in comp.lang.javas cript RobG
    <rgqld@iinet.ne t.auau> wrote:
    [color=blue]
    >| Hi all,
    >|
    >| I went to this site:
    >|
    >| http://www.pacificnational.com.au/corporate/contact.asp
    >|
    >| and found that the links don't work in any browser other
    >| than IE. They have links implemented thusly:
    >|
    >| <td id="menulink"
    >| href="http://www.pacificnati onal.com.au/corporate/about.asp">
    >|
    >| I intend sending a note to the site owner to complain, but
    >| first I'd like to get my facts straight. Does anyone know
    >| if the above method is explicitly supported by IE, or is it
    >| just an artifact of IE's support for otherwise invalid HTML?[/color]

    The simple fact the the site is not usable with any browser except IE
    should be enough of a warning.
    [color=blue]
    >| There are several (well, maybe 50) other errors, the most
    >| obvious and major being that all the <td> tags have the same
    >| id="menulink" - as far as I know, that is expressly against
    >| the HTML 4 standard (and likely its predecessors).
    >|
    >| I'm also leery of the line:
    >|
    >| <script language="javas cript" for="menulink"
    >| event="onmouseo ver">
    >|
    >| even allowing for the language attribute error.
    >|
    >| Regards, Rob.[/color]

    ---------------------------------------------------------------
    jnorth@yourpant sbigpond.net.au : Remove your pants to reply
    ---------------------------------------------------------------

    Comment

    • Michael Winter

      #3
      Re: IE-only href

      On Thu, 30 Sep 2004 01:15:22 GMT, RobG <rgqld@iinet.ne t.auau> wrote:

      [snip]
      [color=blue]
      > <td id="menulink"
      > href="http://www.pacificnati onal.com.au/corporate/about.asp">
      >
      > I intend sending a note to the site owner to complain, but first I'd
      > like to get my facts straight. Does anyone know if the above method is
      > explicitly supported by IE, or is it just an artifact of IE's support
      > for otherwise invalid HTML?[/color]

      Neither. They use script to read the (invalid) href attribute in an
      IE-only way, and call an IE-only method to navigate to a different page.
      [color=blue]
      > There are several (well, maybe 50) other errors, the most obvious and
      > major being that all the <td> tags have the same id="menulink" - as far
      > as I know, that is expressly against the HTML 4 standard (and likely its
      > predecessors).[/color]

      It is. Every id in a document *must* be unique.
      [color=blue]
      > I'm also leery of the line:
      >
      > <script language="javas cript" for="menulink" event="onmouseo ver">
      >
      > even allowing for the language attribute error.[/color]

      The for and event attributes have been declared for the SCRIPT element,
      but still don't think they've been defined. Certainly not for HTML 4.01,
      and they're using a 4.0 DOCTYPE.

      Mike

      --
      Michael Winter
      Replace ".invalid" with ".uk" to reply by e-mail.

      Comment

      Working...