Bug Tracker

Changes between Initial Version and Version 1 of Ticket #5091


Ignore:
Timestamp:
Jun 13, 2010, 12:54:32 PM (9 years ago)
Author:
dmethvin
Comment:

Repro in Firefox 3.6, Chrome 5 and Safari 5, but not IE 8. jQuery is not causing this, it's present in the native DOM. I think what is happening is that since multiple is a boolean property of the select element, there is some common DOM code in the browser that is processing this attribute for input elements as well.

It's always a very good idea to avoid any names that are used by DOM elements, see http://yura.thinkweb2.com/domlint/ for some examples.

I'll leave this open for the moment but I'm not sure there's anything jQuery can/should do about it.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5091

    • Property Component changed from unfiled to attributes
    • Property Summary changed from Attribute type inconsistency in chrome to Attribute type of "multiple" in chrome/safari/firefox
  • Ticket #5091 – Description

    initial v1  
    1 For instance if you have an input with id "someid" with a custom attribute "istrue" that has the value "True", then the following evaluates to true:
     1For instance if you have an input with id "someid" with a custom attribute "multiple" that has the value "True", then the following evaluates to true:
    22(typeof $("#someid").attr("istrue"))==="boolean"
    33in chrome.