Side navigation
#4670 closed bug (invalid)
Opened May 19, 2009 02:58PM UTC
Closed May 20, 2009 12:11AM UTC
Set numeric value to "value" attribute on "li" element crash IE 7
| Reported by: | Fufu | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | core | Version: | 1.3.2 |
| Keywords: | attr value li crash | Cc: | |
| Blocked by: | Blocking: |
Attachments (1)
Change History (1)
Changed May 20, 2009 12:11AM UTC by comment:1
| resolution: | → invalid |
|---|---|
| status: | new → closed |
Wow, nice bug. It's not a jQuery bug though. You can reproduce it with bare DOM functions:
var li = document.createElement("li"); li.value = "12";IE7 immediately crashes in MSHTML.DLL trying to access memory address 0x00000000. The same crash happens with
li.setAttribute("value", "12"). Since (in HTML4 at least) the value of an element only applies if it is a child of an element, I suspected it might be trying to access the parent node. Sure enough, this does not crash:var ol = document.createElement("ol"); var li = document.createElement("li"); ol.appendChild(li); li.value = "12";This bug seems to be fixed in IE8.