How to use non-standard attributes in a tag?

Discussion in 'HTML' started by F. Da Costa, Jan 21, 2004.

  1. F. Da Costa

    F. Da Costa Guest

    Hi,

    Is it possible to get Gecko to react to the following tag in the same way
    that IE5+ does? (ie.show the value of the row attribute rather than
    'undefined')

    <a onclick="alert(this+' ~~ '+this.row);" row="1" />

    Or is Gecko doing the right thing and IE5+ *not* conforming to standard
    (again)?

    In short: is there a way to get this to work properly?

    TIA,
    Fermin DCG
     
    F. Da Costa, Jan 21, 2004
    #1
    1. Advertising

  2. F. Da Costa wrote:
    > Is it possible to get Gecko to react to the following tag in the same
    > way that IE5+ does? (ie.show the value of the row attribute rather than
    > 'undefined')
    >
    > <a onclick="alert(this+' ~~ '+this.row);" row="1" />


    <a onclick="alert(this+' ~~ '+this.getAttribute('row'));" row="1" />

    But you should probably be using your own XML namespace.
     
    Leif K-Brooks, Jan 21, 2004
    #2
    1. Advertising

  3. F. Da Costa

    F. Da Costa Guest

    Leif K-Brooks wrote:

    > F. Da Costa wrote:
    >
    >> Is it possible to get Gecko to react to the following tag in the same
    >> way that IE5+ does? (ie.show the value of the row attribute rather
    >> than 'undefined')
    >>
    >> <a onclick="alert(this+' ~~ '+this.row);" row="1" />

    >
    >
    > <a onclick="alert(this+' ~~ '+this.getAttribute('row'));" row="1" />
    >

    Thx for the reply (overlooked that possibility).
    > But you should probably be using your own XML namespace.
    >

    If and when there were more of these things going on i'd agree. However,
    this is most likely the only one so i'll leave that can of worms closed
    (for now) ;)
     
    F. Da Costa, Jan 21, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Max
    Replies:
    1
    Views:
    436
    Scott M.
    Apr 1, 2004
  2. shruds
    Replies:
    1
    Views:
    968
    John C. Bollinger
    Jan 27, 2006
  3. Rowan Malin
    Replies:
    9
    Views:
    457
    Daniel R. Tobias
    May 23, 2004
  4. Aniais
    Replies:
    5
    Views:
    619
    Joe (GKF)
    Dec 17, 2006
  5. Gerald Bauer
    Replies:
    1
    Views:
    139
    Gerald Bauer
    Jul 21, 2008
Loading...

Share This Page