* htmlIsBooleanAttr: * @name: the name of the attribute to check * * Determine if a given attribute is a boolean attribute. * * returns: false if the attribute is not boolean, true otherwise. */
| 316 | * returns: false if the attribute is not boolean, true otherwise. |
| 317 | */ |
| 318 | int |
| 319 | htmlIsBooleanAttr(const xmlChar *name) |
| 320 | { |
| 321 | int i = 0; |
| 322 | |
| 323 | while (htmlBooleanAttrs[i] != NULL) { |
| 324 | if (xmlStrcasecmp((const xmlChar *)htmlBooleanAttrs[i], name) == 0) |
| 325 | return 1; |
| 326 | i++; |
| 327 | } |
| 328 | return 0; |
| 329 | } |
| 330 | |
| 331 | #ifdef LIBXML_OUTPUT_ENABLED |
| 332 | /************************************************************************ |
no test coverage detected