MCPcopy Create free account
hub / github.com/Kitware/VTK / htmlElementStatusHere

Function htmlElementStatusHere

ThirdParty/libxml2/vtklibxml2/HTMLparser.c:6044–6052  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

6042 * Returns one of HTML_VALID, HTML_DEPRECATED, HTML_INVALID
6043 */
6044htmlStatus
6045htmlElementStatusHere(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

Callers 1

htmlNodeStatusFunction · 0.85

Calls 1

htmlElementAllowedHereFunction · 0.85

Tested by

no test coverage detected