Class: Dommy::HTMLIFrameElement
Constant Summary
Constants inherited
from Element
Element::ATTRIBUTE_NODE, Element::CDATA_SECTION_NODE, Element::COMMENT_NODE, Element::DOCUMENT_FRAGMENT_NODE, Element::DOCUMENT_NODE, Element::DOCUMENT_POSITION_CONTAINED_BY, Element::DOCUMENT_POSITION_CONTAINS, Element::DOCUMENT_POSITION_DISCONNECTED, Element::DOCUMENT_POSITION_FOLLOWING, Element::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, Element::DOCUMENT_POSITION_PRECEDING, Element::DOCUMENT_TYPE_NODE, Element::ELEMENT_NODE, Element::JS_METHOD_NAMES, Element::PROCESSING_INSTRUCTION_NODE, Element::SHADOW_HOST_TAGS, Element::TEXT_NODE
Constants included
from Node
Node::ATTRIBUTE_NODE, Node::CDATA_SECTION_NODE, Node::COMMENT_NODE, Node::DOCUMENT_FRAGMENT_NODE, Node::DOCUMENT_NODE, Node::DOCUMENT_POSITION_CONTAINED_BY, Node::DOCUMENT_POSITION_CONTAINS, Node::DOCUMENT_POSITION_DISCONNECTED, Node::DOCUMENT_POSITION_FOLLOWING, Node::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, Node::DOCUMENT_POSITION_PRECEDING, Node::DOCUMENT_TYPE_NODE, Node::ELEMENT_NODE, Node::PROCESSING_INSTRUCTION_NODE, Node::TEXT_NODE
Instance Attribute Summary
Attributes inherited from Element
#document
Instance Method Summary
collapse
Methods inherited from HTMLElement
#case_sensitive_attribute_names?
Methods inherited from Element
#[], #[]=, #__dommy_backend_node__, #__internal_shadow_root__, #__js_call__, #__js_method_names__, #__test_scroll_log__, #after, #anchor_href, #animate, #append, #append_child, #at_xpath, #attach_shadow, #attributes, #base_uri, #before, #blur, #child_element_count, #child_nodes, #children, #class_list, #class_name, #class_name=, #click, #clone_node, #closest, #compare_document_position, #contains?, #dataset, #equal_node?, #first_child, #first_element_child, #focus, #get_animations, #get_attribute, #get_attribute_node, #get_elements_by_class_name, #get_elements_by_tag_name, #get_html, #get_inner_html, #has_attribute?, #has_attributes?, #has_child_nodes?, #id, #id=, #initialize, #inner_html, #inner_html=, #insert_adjacent_element, #insert_adjacent_html, #insert_adjacent_text, #insert_before, #is_connected?, #last_child, #last_element_child, #live_child_nodes, #local_name, #matches?, #namespace_uri, #next_element_sibling, #next_sibling, #normalize, #on, #outer_html, #outer_html=, #owner_document, #parent_element, #parent_node, #path, #prepend, #previous_element_sibling, #previous_sibling, #query_selector, #query_selector_all, #reflected_attr_name, #remove, #remove_attribute, #remove_attribute_node, #remove_child, #replace_child, #replace_children, #replace_with_nodes, #role, #role=, #root_node, #same_node?, #set_attribute, #set_attribute_node, #shadow_root, #slot, #slot=, #style, #tag_name, #text_content, #text_content=, #to_s, #toggle_attribute, #xpath
#__internal_deliver_event__, #add_event_listener, #dispatch_event, #invoke_listener, #remove_event_listener
Constructor Details
This class inherits a constructor from Dommy::Element
Instance Method Details
#__js_get__(key) ⇒ Object
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
|
# File 'lib/dommy/html_elements.rb', line 3738
def __js_get__(key)
case key
when "src"
src
when "srcdoc"
srcdoc
when "name"
name
when "sandbox"
sandbox
when "allow"
allow
when "allowFullscreen"
allow_fullscreen
when "referrerPolicy"
referrer_policy
when "loading"
loading
when "width"
width
when "height"
height
when "contentDocument"
content_document
when "contentWindow"
content_window
else
super
end
end
|
#__js_set__(key, value) ⇒ Object
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
|
# File 'lib/dommy/html_elements.rb', line 3769
def __js_set__(key, value)
case key
when "src", "srcdoc", "name", "sandbox", "allow", "loading"
set_reflected_string(key, value)
when "allowFullscreen"
self.allow_fullscreen = value
when "referrerPolicy"
set_reflected_string("referrerpolicy", value)
when "width"
self.width = value
when "height"
self.height = value
else
super
end
end
|
#allow ⇒ Object
3682
3683
3684
|
# File 'lib/dommy/html_elements.rb', line 3682
def allow
reflected_string("allow")
end
|
#allow=(v) ⇒ Object
3686
3687
3688
|
# File 'lib/dommy/html_elements.rb', line 3686
def allow=(v)
set_reflected_string("allow", v)
end
|
#allow_fullscreen ⇒ Object
3690
3691
3692
|
# File 'lib/dommy/html_elements.rb', line 3690
def allow_fullscreen
reflected_boolean("allowfullscreen")
end
|
#allow_fullscreen=(v) ⇒ Object
3694
3695
3696
|
# File 'lib/dommy/html_elements.rb', line 3694
def allow_fullscreen=(v)
set_reflected_boolean("allowfullscreen", v)
end
|
#content_document ⇒ Object
3730
3731
3732
|
# File 'lib/dommy/html_elements.rb', line 3730
def content_document
nil
end
|
#content_window ⇒ Object
3734
3735
3736
|
# File 'lib/dommy/html_elements.rb', line 3734
def content_window
nil
end
|
#height ⇒ Object
3722
3723
3724
|
# File 'lib/dommy/html_elements.rb', line 3722
def height
@__node__["height"].to_s
end
|
#height=(v) ⇒ Object
3726
3727
3728
|
# File 'lib/dommy/html_elements.rb', line 3726
def height=(v)
set_reflected_string("height", v.to_s)
end
|
#loading ⇒ Object
3706
3707
3708
|
# File 'lib/dommy/html_elements.rb', line 3706
def loading
reflected_string("loading")
end
|
#loading=(v) ⇒ Object
3710
3711
3712
|
# File 'lib/dommy/html_elements.rb', line 3710
def loading=(v)
set_reflected_string("loading", v)
end
|
#name ⇒ Object
3666
3667
3668
|
# File 'lib/dommy/html_elements.rb', line 3666
def name
reflected_string("name")
end
|
#name=(v) ⇒ Object
3670
3671
3672
|
# File 'lib/dommy/html_elements.rb', line 3670
def name=(v)
set_reflected_string("name", v)
end
|
#referrer_policy ⇒ Object
3698
3699
3700
|
# File 'lib/dommy/html_elements.rb', line 3698
def referrer_policy
reflected_string("referrerpolicy")
end
|
#referrer_policy=(v) ⇒ Object
3702
3703
3704
|
# File 'lib/dommy/html_elements.rb', line 3702
def referrer_policy=(v)
set_reflected_string("referrerpolicy", v)
end
|
#sandbox ⇒ Object
3674
3675
3676
|
# File 'lib/dommy/html_elements.rb', line 3674
def sandbox
reflected_string("sandbox")
end
|
#sandbox=(v) ⇒ Object
3678
3679
3680
|
# File 'lib/dommy/html_elements.rb', line 3678
def sandbox=(v)
set_reflected_string("sandbox", v)
end
|
#src ⇒ Object
3650
3651
3652
|
# File 'lib/dommy/html_elements.rb', line 3650
def src
reflected_string("src")
end
|
#src=(v) ⇒ Object
3654
3655
3656
|
# File 'lib/dommy/html_elements.rb', line 3654
def src=(v)
set_reflected_string("src", v)
end
|
#srcdoc ⇒ Object
3658
3659
3660
|
# File 'lib/dommy/html_elements.rb', line 3658
def srcdoc
reflected_string("srcdoc")
end
|
#srcdoc=(v) ⇒ Object
3662
3663
3664
|
# File 'lib/dommy/html_elements.rb', line 3662
def srcdoc=(v)
set_reflected_string("srcdoc", v)
end
|
#width ⇒ Object
3714
3715
3716
|
# File 'lib/dommy/html_elements.rb', line 3714
def width
@__node__["width"].to_s
end
|
#width=(v) ⇒ Object
3718
3719
3720
|
# File 'lib/dommy/html_elements.rb', line 3718
def width=(v)
set_reflected_string("width", v.to_s)
end
|