Fix bug in document.correctEncoding() which failed to properly parse xml doctypes.

This commit is contained in:
jim teeuwen 2011-01-27 22:10:38 +01:00
parent 9b53d04d9d
commit c271c20e08
3 changed files with 22 additions and 11 deletions

View file

@ -27,7 +27,7 @@ func TestLoadLocal(t *testing.T) {
func TestLoadRemote(t *testing.T) {
doc := New()
if err := doc.LoadUri("http://rss.cnn.com/rss/cnn_latest.rss"); err != nil {
if err := doc.LoadUri("http://blog.golang.org/feeds/posts/default"); err != nil {
t.Error(err.String())
return
}