willnorris / microformats

Go library for parsing microformats
https://pkg.go.dev/willnorris.com/go/microformats
MIT License
64 stars 6 forks source link

Implement h-feed-simple tests #10

Closed pstuifzand closed 6 years ago

pstuifzand commented 6 years ago
willnorris commented 6 years ago

I'm pretty sure we're already trimming whitespace the right way. From http://microformats.org/wiki/microformats2-parsing#parsing_an_e-_property (emphasis added):

return a dictionary with two keys:

  • html: the innerHTML of the element by using the HTML spec: Serializing HTML Fragments algorithm, with leading/trailing whitespace removed.
  • value: the textContent of the element after:
    • dropping any nested Githubissues.
    • Githubissues is a development platform for aggregating issues.