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 Element
#[], #[]=, #__js_call__, #__shadow_root__, #after, #anchor_href, #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_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
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
|
# File 'lib/dommy/html_elements.rb', line 3681
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
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
|
# File 'lib/dommy/html_elements.rb', line 3712
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
3625
3626
3627
|
# File 'lib/dommy/html_elements.rb', line 3625
def allow
reflected_string("allow")
end
|
#allow=(v) ⇒ Object
3629
3630
3631
|
# File 'lib/dommy/html_elements.rb', line 3629
def allow=(v)
set_reflected_string("allow", v)
end
|
#allow_fullscreen ⇒ Object
3633
3634
3635
|
# File 'lib/dommy/html_elements.rb', line 3633
def allow_fullscreen
reflected_boolean("allowfullscreen")
end
|
#allow_fullscreen=(v) ⇒ Object
3637
3638
3639
|
# File 'lib/dommy/html_elements.rb', line 3637
def allow_fullscreen=(v)
set_reflected_boolean("allowfullscreen", v)
end
|
#content_document ⇒ Object
3673
3674
3675
|
# File 'lib/dommy/html_elements.rb', line 3673
def content_document
nil
end
|
#content_window ⇒ Object
3677
3678
3679
|
# File 'lib/dommy/html_elements.rb', line 3677
def content_window
nil
end
|
#height ⇒ Object
3665
3666
3667
|
# File 'lib/dommy/html_elements.rb', line 3665
def height
@__node__["height"].to_s
end
|
#height=(v) ⇒ Object
3669
3670
3671
|
# File 'lib/dommy/html_elements.rb', line 3669
def height=(v)
set_reflected_string("height", v.to_s)
end
|
#loading ⇒ Object
3649
3650
3651
|
# File 'lib/dommy/html_elements.rb', line 3649
def loading
reflected_string("loading")
end
|
#loading=(v) ⇒ Object
3653
3654
3655
|
# File 'lib/dommy/html_elements.rb', line 3653
def loading=(v)
set_reflected_string("loading", v)
end
|
#name ⇒ Object
3609
3610
3611
|
# File 'lib/dommy/html_elements.rb', line 3609
def name
reflected_string("name")
end
|
#name=(v) ⇒ Object
3613
3614
3615
|
# File 'lib/dommy/html_elements.rb', line 3613
def name=(v)
set_reflected_string("name", v)
end
|
#referrer_policy ⇒ Object
3641
3642
3643
|
# File 'lib/dommy/html_elements.rb', line 3641
def referrer_policy
reflected_string("referrerpolicy")
end
|
#referrer_policy=(v) ⇒ Object
3645
3646
3647
|
# File 'lib/dommy/html_elements.rb', line 3645
def referrer_policy=(v)
set_reflected_string("referrerpolicy", v)
end
|
#sandbox ⇒ Object
3617
3618
3619
|
# File 'lib/dommy/html_elements.rb', line 3617
def sandbox
reflected_string("sandbox")
end
|
#sandbox=(v) ⇒ Object
3621
3622
3623
|
# File 'lib/dommy/html_elements.rb', line 3621
def sandbox=(v)
set_reflected_string("sandbox", v)
end
|
#src ⇒ Object
3593
3594
3595
|
# File 'lib/dommy/html_elements.rb', line 3593
def src
reflected_string("src")
end
|
#src=(v) ⇒ Object
3597
3598
3599
|
# File 'lib/dommy/html_elements.rb', line 3597
def src=(v)
set_reflected_string("src", v)
end
|
#srcdoc ⇒ Object
3601
3602
3603
|
# File 'lib/dommy/html_elements.rb', line 3601
def srcdoc
reflected_string("srcdoc")
end
|
#srcdoc=(v) ⇒ Object
3605
3606
3607
|
# File 'lib/dommy/html_elements.rb', line 3605
def srcdoc=(v)
set_reflected_string("srcdoc", v)
end
|
#width ⇒ Object
3657
3658
3659
|
# File 'lib/dommy/html_elements.rb', line 3657
def width
@__node__["width"].to_s
end
|
#width=(v) ⇒ Object
3661
3662
3663
|
# File 'lib/dommy/html_elements.rb', line 3661
def width=(v)
set_reflected_string("width", v.to_s)
end
|