[Webkit-unassigned] [Bug 44881] New: Non-file inputs cannot be changed to file inputs via JavaScript

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 30 12:03:31 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=44881

           Summary: Non-file inputs cannot be changed to file inputs via
                    JavaScript
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Minor
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: Simetrical+webkit at gmail.com


Test case:

<!doctype html>
<script>
    var el = document.createElement("input");
    el.type = "radio";
    el.type = "file";
    alert(el.type);
</script>

Chrome dev (on Ubuntu) and Safari 5 (on XP) alert "radio".  Recentish Firefox nightly and Opera 10.60 alert "file".  The latter is certainly correct per spec.  If there's some security reason for this, the spec should be changed to mandate it so we have interoperability.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list