sciter-sdk / go-sciter

Golang bindings of Sciter: the Embeddable HTML/CSS/script engine for modern UI development
https://sciter.com
2.58k stars 268 forks source link

elementl.Attr(string) panic #89

Closed TongxiJi closed 7 years ago

TongxiJi commented 7 years ago

use elementl.Attr(string) to get the value , but panics with index out of bounds.

pravic commented 7 years ago

A bit more details? OS, Sciter version, html code to reproduce (or does it always happen and everywhere?)

TongxiJi commented 7 years ago

ui: <button id="native" data-type="1">Native Handler Button</button>

golang: el, err := root.SelectFirst("#native") if err == nil { el.Attr("data-type") //panic: runtime error: index out of range }

pravic commented 7 years ago

Thanks, I'll look on it.

pravic commented 7 years ago

Fixed, download a new version from the github.