Opened 15 years ago
Closed 15 years ago
#260 closed defect (wontfix)
Some functions
Reported by: | Owned by: | anonymous | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | General | Version: | 0.3 |
Keywords: | functions | Cc: | |
Blocked By: | Blocking: |
Description
These would be nice to have in 0.3:
dojo.html.getElementsByGroupName [...] I lost this one!!
dojo.html.getClassNameArray = function (node) {
if(node.className){
var classString = dojo.html.getClass(node);
var classArray = classString.split(' '); return classArray;
}else if(dojo.html.hasAttribute(node, "class")){
return dojo.html.getAttribute(node, "class");
} return "";
}
Will post more when I have time
Change History (3)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
What exactly is the "group" attribute? IIRC, radio and checbox inputs are grouped by having the same name.
comment:3 Changed 15 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Interesting functions but seems like something that is better for personal use than to include in a large library such as Dojo.
Thanks for the input though.
Tom Trenka
heres the groupname function:
/
dojo.html.getElementsByGroupName = function(groupString, parent){
}