[Webkit-unassigned] [Bug 129316] New: Setting `element.id = null` should not remove the `id` attribute

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 25 10:10:00 PST 2014


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

           Summary: Setting `element.id = null` should not remove the `id`
                    attribute
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
               URL: data:text/html,<p%20id=x></p><script>var%20el%20=%20x;
                    %20el.id%20=%20null;%20document.write(el.id%20===%20'n
                    ull'%20?%20'PASS'%20:%20'FAIL')</script>
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mathias at qiwi.be
                CC: ap at webkit.org


Setting `element.id = null` should have the same result as `element.id = 'null'`. In Safari, this remove the `id` attribute instead.

Test case:

data:text/html,<p%20id=x></p><script>var%20el%20=%20x;%20el.id%20=%20null;%20document.write(el.id%20===%20'null'%20?%20'PASS'%20:%20'FAIL')</script>

Chrome, Opera, and Firefox get it right.

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