Skip to main content

is_id

Function is_id 

Source
pub unsafe fn is_id(
    doc: *mut _xmlDoc,
    elem: *mut _xmlNode,
    attr: *mut _xmlAttr,
) -> c_int
Expand description

Upstream xmlIsID(doc, elem, attr): is this attribute an ID? Handles the HTML special cases (id attribute; name attribute on ) and the DTD declaration lookup, plus the xml:id namespace convention.

§SAFETY

  • doc/elem/attr must be valid pointers or NULL.