JS::Element class of PicoRuby
Instance methods
appendChild
instance.appendChild(JS::Object child) -> bool
createElement
instance.createElement(String tag_name) -> JS::Element
createTextNode
instance.createTextNode(String text) -> JS::Object
getElementById
instance.getElementById(String id) -> JS::Element?
insertBefore
instance.insertBefore(JS::Object new_child, ?JS::Object? ref_child) -> bool
removeAttribute
instance.removeAttribute(String name) -> bool
removeChild
instance.removeChild(JS::Object child) -> bool
replaceChild
instance.replaceChild(JS::Object new_child, JS::Object old_child) -> bool
setAttribute
instance.setAttribute(String name, String value) -> bool