* htmlElementStatusHere: * @parent: HTML parent element * @elt: HTML element * * Checks whether an HTML element may be a direct child of a parent element. * and if so whether it is valid or deprecated. * * Returns one of HTML_VALID, HTML_DEPRECATED, HTML_INVALID */
| 6042 | * Returns one of HTML_VALID, HTML_DEPRECATED, HTML_INVALID |
| 6043 | */ |
| 6044 | htmlStatus |
| 6045 | htmlElementStatusHere(const htmlElemDesc* parent, const htmlElemDesc* elt) { |
| 6046 | if ( ! parent || ! elt ) |
| 6047 | return HTML_INVALID ; |
| 6048 | if ( ! htmlElementAllowedHere(parent, (const xmlChar*) elt->name ) ) |
| 6049 | return HTML_INVALID ; |
| 6050 | |
| 6051 | return ( elt->dtd == 0 ) ? HTML_VALID : HTML_DEPRECATED ; |
| 6052 | } |
| 6053 | /** |
| 6054 | * htmlAttrAllowed: |
| 6055 | * @elt: HTML element |
no test coverage detected