We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04bbc9b commit 1e8064fCopy full SHA for 1e8064f
.travis.yml
@@ -1 +1,3 @@
1
language: go
2
+notifications:
3
+ email: false
microformats.go
@@ -66,6 +66,17 @@ func (p *Parser) walk(node *html.Node) {
66
p.curItem = curItem
67
}
68
69
+ if isAtom(node, atom.A) {
70
+ if rel := GetAttr(node, "rel"); rel != "" {
71
+ url := GetAttr(node, "href")
72
+ //TODO: normalize url
73
+ rels := strings.Split(rel, " ")
74
+ for _, relval := range rels {
75
+ p.curData.Rels[relval] = append(p.curData.Rels[relval], url)
76
+ }
77
78
79
+
80
for c := node.FirstChild; c != nil; c = c.NextSibling {
81
p.walk(c)
82
0 commit comments