(tag, ancestorInfo)
| 7385 | |
| 7386 | |
| 7387 | var findInvalidAncestorForTag = function (tag, ancestorInfo) { |
| 7388 | switch (tag) { |
| 7389 | case 'address': |
| 7390 | case 'article': |
| 7391 | case 'aside': |
| 7392 | case 'blockquote': |
| 7393 | case 'center': |
| 7394 | case 'details': |
| 7395 | case 'dialog': |
| 7396 | case 'dir': |
| 7397 | case 'div': |
| 7398 | case 'dl': |
| 7399 | case 'fieldset': |
| 7400 | case 'figcaption': |
| 7401 | case 'figure': |
| 7402 | case 'footer': |
| 7403 | case 'header': |
| 7404 | case 'hgroup': |
| 7405 | case 'main': |
| 7406 | case 'menu': |
| 7407 | case 'nav': |
| 7408 | case 'ol': |
| 7409 | case 'p': |
| 7410 | case 'section': |
| 7411 | case 'summary': |
| 7412 | case 'ul': |
| 7413 | case 'pre': |
| 7414 | case 'listing': |
| 7415 | case 'table': |
| 7416 | case 'hr': |
| 7417 | case 'xmp': |
| 7418 | case 'h1': |
| 7419 | case 'h2': |
| 7420 | case 'h3': |
| 7421 | case 'h4': |
| 7422 | case 'h5': |
| 7423 | case 'h6': |
| 7424 | return ancestorInfo.pTagInButtonScope; |
| 7425 | |
| 7426 | case 'form': |
| 7427 | return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope; |
| 7428 | |
| 7429 | case 'li': |
| 7430 | return ancestorInfo.listItemTagAutoclosing; |
| 7431 | |
| 7432 | case 'dd': |
| 7433 | case 'dt': |
| 7434 | return ancestorInfo.dlItemTagAutoclosing; |
| 7435 | |
| 7436 | case 'button': |
| 7437 | return ancestorInfo.buttonTagInScope; |
| 7438 | |
| 7439 | case 'a': |
| 7440 | // Spec says something about storing a list of markers, but it sounds |
| 7441 | // equivalent to this check. |
| 7442 | return ancestorInfo.aTagInScope; |
| 7443 | |
| 7444 | case 'nobr': |
no outgoing calls
no test coverage detected