map enctype to encoding, depending on browser
I cannot be the first person to raise this request but I cannot find a ticket anywhere. In the .attr(), please harmonize the handling of "enctype" across browsers. For IE this means that jQuery should map "enctype" to "encoding". I figured this out at the end of a frustrating multi-hour debugging session. I really rely on jQuery to take care of these irritating small idiosyncrasies between browsers (lest my code be polluted by browser-specific hacks). Thank you.
Change History (10)
Component: |
unfiled →
attributes
|
Cc: |
SlexAxton added
|
Keywords: |
attr enctype encoding added
|
Priority: |
→ low
|
Status: |
new →
open
|
Type: |
enhancement →
bug
|
Milestone: |
→ 1.5.1
|
Owner: |
set to jitter
|
Status: |
open →
assigned
|
Version: |
1.4.2 →
1.5
|
Milestone: |
1.5.1 →
1.next
|
Version: |
1.5 →
1.5.2
|
Owner: |
changed from jitter to Timmy Willison
|
Resolution: |
→ fixed
|
Status: |
assigned →
closed
|
This seems legit. Prototype does this translation as well. I think it could be done with a pretty simple feature test.
I created a possible solution in a jsfiddle. http://jsfiddle.net/SlexAxton/59znU/
I'll pull a patch sometime soon, unless someone thinks it's a terrible idea?
I usually err on the side of 'this is an enhancement' - but I'd say jQuery should be handling a cross-browser issue like this, so I'll land this as a bug fix (just not the regression kind).
Related Prototype ticket: https://prototype.lighthouseapp.com/projects/8886/tickets/658-writeattribute-doesnt-work-properly-with-enctypeencoding