[Bug 24150] New: "createAttribute" "setAttributeNode" have no complete alternative
| Newsgroups | gmane.comp.web.dom.general |
|---|---|
| Message-ID | <[email protected]/Bugs/Public/> |
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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected], [email protected]
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.