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::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
#__node__, #document
Instance Method Summary
collapse
Methods inherited from HTMLElement
#case_sensitive_attribute_names?
Methods inherited from Element
#[], #[]=, #__js_call__, #__scroll_log__, #__shadow_root__, #after, #anchor_href, #animate, #append, #append_child, #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, #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
#__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
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
|
# File 'lib/dommy/html_elements.rb', line 3670
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
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
|
# File 'lib/dommy/html_elements.rb', line 3701
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
3614
3615
3616
|
# File 'lib/dommy/html_elements.rb', line 3614
def allow
reflected_string("allow")
end
|
#allow=(v) ⇒ Object
3618
3619
3620
|
# File 'lib/dommy/html_elements.rb', line 3618
def allow=(v)
set_reflected_string("allow", v)
end
|
#allow_fullscreen ⇒ Object
3622
3623
3624
|
# File 'lib/dommy/html_elements.rb', line 3622
def allow_fullscreen
reflected_boolean("allowfullscreen")
end
|
#allow_fullscreen=(v) ⇒ Object
3626
3627
3628
|
# File 'lib/dommy/html_elements.rb', line 3626
def allow_fullscreen=(v)
set_reflected_boolean("allowfullscreen", v)
end
|
#content_document ⇒ Object
3662
3663
3664
|
# File 'lib/dommy/html_elements.rb', line 3662
def content_document
nil
end
|
#content_window ⇒ Object
3666
3667
3668
|
# File 'lib/dommy/html_elements.rb', line 3666
def content_window
nil
end
|
#height ⇒ Object
3654
3655
3656
|
# File 'lib/dommy/html_elements.rb', line 3654
def height
@__node__["height"].to_s
end
|
#height=(v) ⇒ Object
3658
3659
3660
|
# File 'lib/dommy/html_elements.rb', line 3658
def height=(v)
set_reflected_string("height", v.to_s)
end
|
#loading ⇒ Object
3638
3639
3640
|
# File 'lib/dommy/html_elements.rb', line 3638
def loading
reflected_string("loading")
end
|
#loading=(v) ⇒ Object
3642
3643
3644
|
# File 'lib/dommy/html_elements.rb', line 3642
def loading=(v)
set_reflected_string("loading", v)
end
|
#name ⇒ Object
3598
3599
3600
|
# File 'lib/dommy/html_elements.rb', line 3598
def name
reflected_string("name")
end
|
#name=(v) ⇒ Object
3602
3603
3604
|
# File 'lib/dommy/html_elements.rb', line 3602
def name=(v)
set_reflected_string("name", v)
end
|
#referrer_policy ⇒ Object
3630
3631
3632
|
# File 'lib/dommy/html_elements.rb', line 3630
def referrer_policy
reflected_string("referrerpolicy")
end
|
#referrer_policy=(v) ⇒ Object
3634
3635
3636
|
# File 'lib/dommy/html_elements.rb', line 3634
def referrer_policy=(v)
set_reflected_string("referrerpolicy", v)
end
|
#sandbox ⇒ Object
3606
3607
3608
|
# File 'lib/dommy/html_elements.rb', line 3606
def sandbox
reflected_string("sandbox")
end
|
#sandbox=(v) ⇒ Object
3610
3611
3612
|
# File 'lib/dommy/html_elements.rb', line 3610
def sandbox=(v)
set_reflected_string("sandbox", v)
end
|
#src ⇒ Object
3582
3583
3584
|
# File 'lib/dommy/html_elements.rb', line 3582
def src
reflected_string("src")
end
|
#src=(v) ⇒ Object
3586
3587
3588
|
# File 'lib/dommy/html_elements.rb', line 3586
def src=(v)
set_reflected_string("src", v)
end
|
#srcdoc ⇒ Object
3590
3591
3592
|
# File 'lib/dommy/html_elements.rb', line 3590
def srcdoc
reflected_string("srcdoc")
end
|
#srcdoc=(v) ⇒ Object
3594
3595
3596
|
# File 'lib/dommy/html_elements.rb', line 3594
def srcdoc=(v)
set_reflected_string("srcdoc", v)
end
|
#width ⇒ Object
3646
3647
3648
|
# File 'lib/dommy/html_elements.rb', line 3646
def width
@__node__["width"].to_s
end
|
#width=(v) ⇒ Object
3650
3651
3652
|
# File 'lib/dommy/html_elements.rb', line 3650
def width=(v)
set_reflected_string("width", v.to_s)
end
|