From df1784dea53c971553e0243f64267d732373299c Mon Sep 17 00:00:00 2001 From: udhos Date: Fri, 30 Jun 2017 13:46:41 -0300 Subject: [PATCH] Add document.ExecCommand(). --- dom.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dom.go b/dom.go index a00c015..f98ec4d 100644 --- a/dom.go +++ b/dom.go @@ -530,6 +530,7 @@ type Document interface { CreateTextNode(s string) *Text ElementFromPoint(x, y int) Element EnableStyleSheetsForSet(name string) + ExecCommand(name string, showDefaultUI bool, valueArgument string) bool GetElementsByClassName(name string) []Element GetElementsByTagName(name string) []Element GetElementsByTagNameNS(ns, name string) []Element @@ -750,6 +751,10 @@ func (d document) DocumentURI() string { return d.Get("documentURI").String() } +func (d document) ExecCommand(name string, showDefaultUI bool, valueArgument string) bool { + return d.Call("execCommand", name, showDefaultUI, valueArgument).Bool() +} + func (d document) Implementation() DOMImplementation { // FIXME implement panic("not implemented")