W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2013

[Bug 24150] New: "createAttribute" "setAttributeNode" have no complete alternative

From: <bugzilla@jessica.w3.org>
Date: Sat, 21 Dec 2013 05:50:52 +0000
To: www-dom@w3.org
Message-ID: <bug-24150-4009@http.www.w3.org/Bugs/Public/>

            Bug ID: 24150
           Summary: "createAttribute" "setAttributeNode" have no complete
           Product: WebAppsWG
           Version: unspecified
          Hardware: Macintosh
                OS: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DOM
          Assignee: annevk@annevk.nl
          Reporter: punosun@ymail.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, www-dom@w3.org





There is no alternate method provided for setting an attribute with no value. 
For example, the only way to set the checked, selected or disabled attribute
with no value is with element.setAttributeNode( document.createAttribute(
'selected' ) );

The behavior is subtly different then setting the element property as
element.selected = true; because the attribute persists when a form is reset.

You are receiving this mail because:
You are on the CC list for the bug.
Received on Saturday, 21 December 2013 05:50:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:03 UTC