Skip to content

Commit

Permalink
update generator with the HTML living standard https://html.spec.what…
Browse files Browse the repository at this point in the history
  • Loading branch information
Hǎiliàng Wáng committed May 5, 2015
1 parent 1148767 commit e26ae08
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
6 changes: 1 addition & 5 deletions auto_chain.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2014, Hǎiliàng Wáng. All rights reserved.
// Copyright 2015, 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 @@ -652,10 +652,6 @@ func (n *Node) Id(pat ...string) *string {
return n.Attr("id", pat...)
}

func (n *Node) Inert(pat ...string) *string {
return n.Attr("inert", pat...)
}

func (n *Node) Inputmode(pat ...string) *string {
return n.Attr("inputmode", pat...)
}
Expand Down
6 changes: 2 additions & 4 deletions expr/auto_expr.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright 2014, Hǎiliàng Wáng. All rights reserved.
// Copyright 2015, 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.

package expr

package expr // import "h12.me/html-query/expr"
import (
"golang.org/x/net/html/atom"
)
Expand Down Expand Up @@ -173,7 +172,6 @@ var (
HttpEquiv = AttrChecker("http-equiv")
Icon = AttrChecker("icon")
Id = AttrChecker("id")
Inert = AttrChecker("inert")
Inputmode = AttrChecker("inputmode")
Ismap = AttrChecker("ismap")
Itemid = AttrChecker("itemid")
Expand Down
8 changes: 8 additions & 0 deletions gen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ func (spec *Spec) GenerateExpr() {
file := "output/auto_expr.go"
f, err := os.Create(file)
c(err)
fp(f, `// Copyright 2015, Hǎiliàng Wáng. All rights reserved.`)
fp(f, `// Use of this source code is governed by a BSD-style`)
fp(f, `// license that can be found in the LICENSE file.`)
fp(f, ``)
fp(f, `package expr // import "h12.me/html-query/expr"`)
fp(f, "import (")
fp(f, `"golang.org/x/net/html/atom"`)
Expand Down Expand Up @@ -55,6 +59,10 @@ func (spec *Spec) GenerateChain() {
file := "output/auto_chain.go"
f, err := os.Create(file)
c(err)
fp(f, `// Copyright 2015, Hǎiliàng Wáng. All rights reserved.`)
fp(f, `// Use of this source code is governed by a BSD-style`)
fp(f, `// license that can be found in the LICENSE file.`)
fp(f, ``)
fp(f, "package query")
fp(f, "import (")
fp(f, `. "h12.me/html-query/expr"`)
Expand Down
2 changes: 1 addition & 1 deletion gen/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
)

const (
SpecUrl = `http://www.whatwg.org/specs/web-apps/current-work/multipage/section-index.html`
SpecUrl = `https://html.spec.whatwg.org/multipage/indices.html`

// SPEC_URL = `http://www.w3.org/html/wg/drafts/html/master/single-page.html`
)
Expand Down

0 comments on commit e26ae08

Please sign in to comment.