[Webkit-unassigned] [Bug 44879] New: Setting form.enctype reflected attribute behaves strangely

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 30 11:46:17 PDT 2010


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

           Summary: Setting form.enctype reflected attribute behaves
                    strangely
           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


Pointed out to me a while ago on IRC by Anne van Kesteren.  Test case:

<!doctype html>
<script>
    var el = document.createElement("form");
    el.enctype = "text";
    alert(el.enctype);
</script>

The spec says this should alert application/x-www-form-urlencoded, since that's the default for form.enctype, and "text" is not a valid value, so the set is ignored.  This is what Firefox nightlies do.  Opera 10.60 and IE8 alert "text", because they don't limit this to known values (which is wrong per spec but at least is coherent).  However, WebKit (Chrome dev and Safari 5) alerts "text/plain", which doesn't match the spec and doesn't make a lot of sense to me.  I tried testing in a WebKit nightly, but it crashed.

-- 
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