v/vlib/jsdom/dom.v

11 lines
191 B
V
Raw Normal View History

2021-10-27 22:18:09 +02:00
// DOM API wrapper for JS backend
module jsdom
pub fn get_html_canvas_element(elem IElement) ?HTMLCanvasElement {
if elem is HTMLCanvasElement {
return *elem
} else {
return none
}
}