* Sets an arbitrary attribute on the span. Warning: use this wisely. Not * all browsers support attributes the same, and having too many custom * attributes is probably bad.
(attribute: string, value: string)
| 241 | * attributes is probably bad. |
| 242 | */ |
| 243 | setAttribute(attribute: string, value: string) { |
| 244 | this.attributes[attribute] = value; |
| 245 | } |
| 246 | |
| 247 | hasClass(className: string): boolean { |
| 248 | return this.classes.includes(className); |
no outgoing calls
no test coverage detected