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

https://www.w3.org/Bugs/Public/show_bug.cgi?id=24150

            Bug ID: 24150
           Summary: "createAttribute" "setAttributeNode" have no complete
                    alternative
           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

http://dom.spec.whatwg.org/#dom-document-createattribute

[[
createAttribute
]]

http://dom.spec.whatwg.org/#dom-element-setattributenode

[[
setAttributeNode
]]

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