* htmlCheckMeta: * @ctxt: an HTML parser context * @atts: the attributes values * * Checks an attributes from a Meta tag */
| 3381 | * Checks an attributes from a Meta tag |
| 3382 | */ |
| 3383 | static void |
| 3384 | htmlCheckMeta(htmlParserCtxtPtr ctxt, const xmlChar **atts) { |
| 3385 | int i; |
| 3386 | const xmlChar *att, *value; |
| 3387 | int http = 0; |
| 3388 | const xmlChar *content = NULL; |
| 3389 | |
| 3390 | if ((ctxt == NULL) || (atts == NULL)) |
| 3391 | return; |
| 3392 | |
| 3393 | i = 0; |
| 3394 | att = atts[i++]; |
| 3395 | while (att != NULL) { |
| 3396 | value = atts[i++]; |
| 3397 | if ((value != NULL) && (!xmlStrcasecmp(att, BAD_CAST"http-equiv")) |
| 3398 | && (!xmlStrcasecmp(value, BAD_CAST"Content-Type"))) |
| 3399 | http = 1; |
| 3400 | else if ((value != NULL) && (!xmlStrcasecmp(att, BAD_CAST"content"))) |
| 3401 | content = value; |
| 3402 | att = atts[i++]; |
| 3403 | } |
| 3404 | if ((http) && (content != NULL)) |
| 3405 | htmlCheckEncoding(ctxt, content); |
| 3406 | |
| 3407 | } |
| 3408 | |
| 3409 | /** |
| 3410 | * htmlParseStartTag: |
no test coverage detected