Skip to main content

dom_has_attributes

Function dom_has_attributes 

Source
pub fn dom_has_attributes(
    it: &mut Interp,
    this: Value,
    _a: &[Value],
) -> Result<Value, Value>
Expand description

element.hasAttributes()(丸ごと未対応だった。単一属性の有無を見る hasAttribute(name) は既に実装済みだったが、「1つでも属性を持つか」を見るこちらが漏れていた)。