Comments (3)
- I'll fix the documentation once I get a chance, thanks
- We'll keep
SetClass()
around, purely because it's part of the DOM API. We may add documentation to point toClass()
, however. - We will not merge
Set
andSetString
– the implied semantic ofSetString
is that it allows passing in a space-separated list of tokens (as per the definition of a TokenList), so e.g.SetString("foo bar")
. If we had something likeSet("foo bar", "baz")
, that might lead to confusion. Admittedly, the currentSet
already suffers that same issue ([]string{"foo bar", "baz"}
), but we don't need to make it any worse.
from go-js-dom.
I am in agreement with your decision in points two and three for now, you provide convincing arguments.
Point one still needs to be addressed.
from go-js-dom.
from go-js-dom.
Related Issues (20)
- Using HTML5 history gives a nil reference error HOT 1
- v2: Create with support for both GopherJS and GOOS=js GOARCH=wasm. HOT 14
- "go get -u honnef.co/go/js/dom" fails HOT 2
- go get honnef.co/go/js/dom HOT 1
- DispatchEvent of "Click"/"Change" HOT 1
- HTMLTemplateElement is missing?
- Feature Request: Element.closest()
- Missing: HTMLDialogElement, HTMLSlotElement, HTMLPictureElement HOT 1
- WheelEvent inherits MouseEvent
- Cannot load honnef.co/go/js/dom/v2: no Go source files HOT 1
- feature request: indexeddb interface
- adoptNode is missing "deep" param
- v2 does not compile with go1.14 HOT 2
- v2: CreateTextNode() panics HOT 3
- v2: unable to DrawImage HOT 3
- v2: RequestAnimationFrame callback argument type misleading HOT 1
- Missing `Children` method on `dom.Element`
- Adding event type strings to use with `AddEventListener`
- go install honnef.co/go/js/dom/v2@latest yields an error message: HOT 1
- Add Element.ReplaceChildren HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-js-dom.