Skip to content

Commit

Permalink
upgrade to latest spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Hǎiliàng Wáng committed Jul 10, 2017
1 parent 03be02e commit 597d607
Show file tree
Hide file tree
Showing 7 changed files with 210 additions and 198 deletions.
106 changes: 51 additions & 55 deletions auto_chain.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015, Hǎiliàng Wáng. All rights reserved.
// Copyright 2017, Hǎiliàng Wáng. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

Expand Down Expand Up @@ -228,10 +228,6 @@ func (n *Node) Kbd(cs ...Checker) *Node {
return n.find(Kbd, cs)
}

func (n *Node) Keygen(cs ...Checker) *Node {
return n.find(Keygen, cs)
}

func (n *Node) Label(cs ...Checker) *Node {
return n.find(Label, cs)
}
Expand Down Expand Up @@ -468,10 +464,22 @@ func (n *Node) Allowfullscreen(pat ...string) *string {
return n.Attr("allowfullscreen", pat...)
}

func (n *Node) Allowpaymentrequest(pat ...string) *string {
return n.Attr("allowpaymentrequest", pat...)
}

func (n *Node) Allowusermedia(pat ...string) *string {
return n.Attr("allowusermedia", pat...)
}

func (n *Node) Alt(pat ...string) *string {
return n.Attr("alt", pat...)
}

func (n *Node) As(pat ...string) *string {
return n.Attr("as", pat...)
}

func (n *Node) Async(pat ...string) *string {
return n.Attr("async", pat...)
}
Expand All @@ -488,10 +496,6 @@ func (n *Node) Autoplay(pat ...string) *string {
return n.Attr("autoplay", pat...)
}

func (n *Node) Challenge(pat ...string) *string {
return n.Attr("challenge", pat...)
}

func (n *Node) Charset(pat ...string) *string {
return n.Attr("charset", pat...)
}
Expand All @@ -508,6 +512,10 @@ func (n *Node) Class(pat ...string) *string {
return n.Attr("class", pat...)
}

func (n *Node) Color(pat ...string) *string {
return n.Attr("color", pat...)
}

func (n *Node) Cols(pat ...string) *string {
return n.Attr("cols", pat...)
}
Expand All @@ -516,10 +524,6 @@ func (n *Node) Colspan(pat ...string) *string {
return n.Attr("colspan", pat...)
}

func (n *Node) Command(pat ...string) *string {
return n.Attr("command", pat...)
}

func (n *Node) Content(pat ...string) *string {
return n.Attr("content", pat...)
}
Expand All @@ -528,10 +532,6 @@ func (n *Node) Contenteditable(pat ...string) *string {
return n.Attr("contenteditable", pat...)
}

func (n *Node) Contextmenu(pat ...string) *string {
return n.Attr("contextmenu", pat...)
}

func (n *Node) Controls(pat ...string) *string {
return n.Attr("controls", pat...)
}
Expand Down Expand Up @@ -580,10 +580,6 @@ func (n *Node) Draggable(pat ...string) *string {
return n.Attr("draggable", pat...)
}

func (n *Node) Dropzone(pat ...string) *string {
return n.Attr("dropzone", pat...)
}

func (n *Node) Enctype(pat ...string) *string {
return n.Attr("enctype", pat...)
}
Expand Down Expand Up @@ -644,10 +640,6 @@ func (n *Node) HttpEquiv(pat ...string) *string {
return n.Attr("http-equiv", pat...)
}

func (n *Node) Icon(pat ...string) *string {
return n.Attr("icon", pat...)
}

func (n *Node) Id(pat ...string) *string {
return n.Attr("id", pat...)
}
Expand All @@ -656,6 +648,14 @@ func (n *Node) Inputmode(pat ...string) *string {
return n.Attr("inputmode", pat...)
}

func (n *Node) Integrity(pat ...string) *string {
return n.Attr("integrity", pat...)
}

func (n *Node) Is(pat ...string) *string {
return n.Attr("is", pat...)
}

func (n *Node) Ismap(pat ...string) *string {
return n.Attr("ismap", pat...)
}
Expand All @@ -680,10 +680,6 @@ func (n *Node) Itemtype(pat ...string) *string {
return n.Attr("itemtype", pat...)
}

func (n *Node) Keytype(pat ...string) *string {
return n.Attr("keytype", pat...)
}

func (n *Node) Kind(pat ...string) *string {
return n.Attr("kind", pat...)
}
Expand Down Expand Up @@ -724,14 +720,6 @@ func (n *Node) Media(pat ...string) *string {
return n.Attr("media", pat...)
}

func (n *Node) Mediagroup(pat ...string) *string {
return n.Attr("mediagroup", pat...)
}

func (n *Node) Menu_(pat ...string) *string {
return n.Attr("menu", pat...)
}

func (n *Node) Method(pat ...string) *string {
return n.Attr("method", pat...)
}
Expand All @@ -756,6 +744,14 @@ func (n *Node) Name(pat ...string) *string {
return n.Attr("name", pat...)
}

func (n *Node) Nomodule(pat ...string) *string {
return n.Attr("nomodule", pat...)
}

func (n *Node) Nonce(pat ...string) *string {
return n.Attr("nonce", pat...)
}

func (n *Node) Novalidate(pat ...string) *string {
return n.Attr("novalidate", pat...)
}
Expand All @@ -780,6 +776,10 @@ func (n *Node) Placeholder(pat ...string) *string {
return n.Attr("placeholder", pat...)
}

func (n *Node) Playsinline(pat ...string) *string {
return n.Attr("playsinline", pat...)
}

func (n *Node) Poster(pat ...string) *string {
return n.Attr("poster", pat...)
}
Expand All @@ -788,14 +788,14 @@ func (n *Node) Preload(pat ...string) *string {
return n.Attr("preload", pat...)
}

func (n *Node) Radiogroup(pat ...string) *string {
return n.Attr("radiogroup", pat...)
}

func (n *Node) Readonly(pat ...string) *string {
return n.Attr("readonly", pat...)
}

func (n *Node) Referrerpolicy(pat ...string) *string {
return n.Attr("referrerpolicy", pat...)
}

func (n *Node) Rel(pat ...string) *string {
return n.Attr("rel", pat...)
}
Expand Down Expand Up @@ -824,14 +824,6 @@ func (n *Node) Scope(pat ...string) *string {
return n.Attr("scope", pat...)
}

func (n *Node) Scoped(pat ...string) *string {
return n.Attr("scoped", pat...)
}

func (n *Node) Seamless(pat ...string) *string {
return n.Attr("seamless", pat...)
}

func (n *Node) Selected(pat ...string) *string {
return n.Attr("selected", pat...)
}
Expand All @@ -848,12 +840,8 @@ func (n *Node) Sizes(pat ...string) *string {
return n.Attr("sizes", pat...)
}

func (n *Node) Sortable(pat ...string) *string {
return n.Attr("sortable", pat...)
}

func (n *Node) Sorted(pat ...string) *string {
return n.Attr("sorted", pat...)
func (n *Node) Slot_(pat ...string) *string {
return n.Attr("slot", pat...)
}

func (n *Node) Span_(pat ...string) *string {
Expand Down Expand Up @@ -916,6 +904,10 @@ func (n *Node) Typemustmatch(pat ...string) *string {
return n.Attr("typemustmatch", pat...)
}

func (n *Node) Updateviacache(pat ...string) *string {
return n.Attr("updateviacache", pat...)
}

func (n *Node) Usemap(pat ...string) *string {
return n.Attr("usemap", pat...)
}
Expand All @@ -928,6 +920,10 @@ func (n *Node) Width(pat ...string) *string {
return n.Attr("width", pat...)
}

func (n *Node) Workertype(pat ...string) *string {
return n.Attr("workertype", pat...)
}

func (n *Node) Wrap(pat ...string) *string {
return n.Attr("wrap", pat...)
}
2 changes: 1 addition & 1 deletion chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
. "h12.me/html-query/expr"
)

func (n *Node) Is(cs ...Checker) bool {
func (n *Node) Satisfy(cs ...Checker) bool {
return And(cs...)(n.InternalNode()) != nil
}

Expand Down
Loading

0 comments on commit 597d607

Please sign in to comment.