Skip to main content

dom_blur

Function dom_blur 

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

element.blur()(HTML5。丸ごと未対応だった。dom_focus の対)。自身が 現在のフォーカス対象である場合のみ解除して blur/focusout を発火する (仕様どおり、フォーカスされていない要素での .blur() は no-op)。