mirror of
https://github.com/PuerkitoBio/goquery
synced 2025-09-26 21:01:21 +08:00
16 lines
285 B
Go
16 lines
285 B
Go
package goquery
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func TestIssue114(t *testing.T) {
|
|
d, err := NewDocumentFromReader(strings.NewReader("<html><head><title>some title</title></head><body><h1>H1</h1></body></html>"))
|
|
if err != nil {
|
|
t.Error(err)
|
|
}
|
|
sel := d.Find("~")
|
|
t.Log(sel)
|
|
}
|