Rev 16628 | Rev 17170 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 16628 | Rev 17008 | ||
---|---|---|---|
Line 855... | Line 855... | ||
855 | } |
855 | } |
856 | else sti[0]=0; |
856 | else sti[0]=0; |
857 | 857 | ||
858 | s=getvar("wims_ref_class"); |
858 | s=getvar("wims_ref_class"); |
859 | if(s!=NULL && *s!=0 && !isspace(*s)) { |
859 | if(s!=NULL && *s!=0 && !isspace(*s)) { |
- | 860 | // If class contains "button", add "role=button" for accessibility |
|
- | 861 | if(strstr(s,"button")) { |
|
- | 862 | snprintf(stc,sizeof(stc)," class=\"%s\" role=\"button\"",s); |
|
- | 863 | } else { |
|
860 | snprintf(stc,sizeof(stc)," class=\"%s\"",s); |
864 | snprintf(stc,sizeof(stc)," class=\"%s\"",s); |
- | 865 | } |
|
861 | } |
866 | } |
862 | else stc[0]=0; |
867 | else stc[0]=0; |
863 | 868 | ||
864 | s=getvar("wims_ref_title"); |
869 | s=getvar("wims_ref_title"); |
865 | if(s!=NULL && *s!=0 && !isspace(*s)) { |
870 | if(s!=NULL && *s!=0 && !isspace(*s)) { |