Skip to main content

has_attribute

Function has_attribute 

Source
pub fn has_attribute(node: i64, name: &str) -> bool
Expand description

Whether node carries attribute name at all — the PRESENCE question an HTML boolean attribute is asked with ("#b" is disabled). Comparing its value against a string would call an enabled control disabled, since disabled="" is the enabled-looking spelling of disabled.