Opened 12 years ago
Closed 12 years ago
#7179 closed bug (invalid)
.text on input element causes exception in IE
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | 1.4.3 |
Component: | unfiled | Version: | 1.4.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When calling .text(0) on an input element IE throws an exception. appendChild() probably doesn't exists on a input element. It works fine in Firefox.
Calling the appropriate .val(0) function works just fine in all browsers.
Change History (5)
comment:1 Changed 12 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
comment:2 Changed 12 years ago by
I've recreated a test case for this and tested in IE but it appears to be working fine - please also mention the version of IE that you are testing on when replying back.
comment:3 Changed 12 years ago by
Status: | pending → new |
---|
comment:3 Changed 12 years ago by
Very simple test case using jsFiddle
Tested on IE6 and IE8 and both throw an exception.
Also it doesn't matter if the input is of type text or hidden.
comment:4 Changed 12 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Thanks for the report, but this is not a bug. Input elements cannot have children, so your attempt to <input></input> is invalid. If you want to set the value of an element, use .val
.
Please supply a test case.