def m_scrollIntoView(self): alignToTop = r.bool() behavior = r.choice(["auto", "instant", "smooth"]) block = r.choice(["start", "end"]) scrollIntoViewOptions = "{behavior:'%s',block:'%s',}" % (behavior, block) return r.choice(["", alignToTop, scrollIntoViewOptions])
def p_loop(self): # 设置或返回音频是否应在结束时重新播放 return r.bool()
def p_compact(self): return r.bool() # Methods # No specific method; inherits methods from its parent, HTMLElement.
def m_removeEventListener(self): # 从这个EventTarget移除事件监听器 event = randoms.Events() function = randoms.Funcs() useCapture = randoms.bool() return "'%s',%s,%s" % (event, function, useCapture)
def p_controls(self): # 设置或返回音频是否应该显示控件(比如播放/暂停等) return r.bool()
def p_disabled(self): # 规定应该禁用该按钮 return r.bool()
def p_hidden(self): # 是否应该隐藏元素的内容 return r.bool()
def p_itemScope(self): return r.bool()
def p_formNoValidate(self): return r.bool()
def p_contentEditable(self): # 获取/设置元素的可编辑状态 return r.bool()
def p_autofocus(self): # 规定当页面加载时按钮应当自动地获得焦点 return r.choice([r.bool(), "autofocus"])
def p_open(self): r.bool()
def p_paused(self): # 设置或返回音频是否暂停 return r.bool()
def p_spellcheck(self): # 规定是否对元素进行拼写和语法检查 return r.bool()
def p_autoplay(self): # 设置或返回是否在就绪(加载完成)后随即播放音频 return r.bool()
def p_disabled(self): return r.bool()
def p_disableRemotePlayback(self): # A Boolean that sets or returns the remote playback state, # indicating whether the media element is allowed to have a remote playback UI. return r.bool()
def p_noHref(self): # indicating if the area is inactive (true) or active (false). return r.bool()
def p_willValidate(self): return r.bool()
def p_undoScope(self): return r.bool()
def p_tabStop(self): return r.bool()
def m_setCapture(self): return r.bool()
def m_cloneNode(self): # 复制节点 return r.choice([r.bool(), ""])
def p_muted(self): # 设置或返回音频是否静音 return r.bool()
def p_preservesPitch(self): return r.bool()
def p_autostart(self): # 设置或返回是否在就绪(加载完成)后随即播放音频 return r.bool()
def p_mozOpaque(self): return r.bool()
def p_defaultMuted(self): # 设置或返回音频默认是否静音 return r.bool()
def m_addEventListener(self): # 在这个EventTarget上添加指定事件类型的事件监听器 调用之前必须创建一个函数 event = randoms.Events() function = randoms.Funcs() useCapture = randoms.bool() return "'%s',%s,%s" % (event, function, useCapture)