Skip to content

Commit

Permalink
Merge branch 'master' into gh-102
Browse files Browse the repository at this point in the history
  • Loading branch information
lestrrat committed Jun 25, 2024
2 parents 9b4e7d5 + a75c203 commit b1f63e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
Expand Down
9 changes: 9 additions & 0 deletions dom/node_namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,12 @@ func (n *Namespace) Free() {
clib.XMLNamespaceFree(n)
n.ptr = 0
}

// String returns the stringified Namespace
func (n *Namespace) String() string {
prefix := n.Prefix()
if prefix != "" {
prefix = ":" + prefix
}
return "xmlns" + prefix + `="` + n.URI() + `"`
}

0 comments on commit b1f63e9

Please sign in to comment.