diff --git a/PortablePorts/NReadability/SgmlDomBuilder.cs b/PortablePorts/NReadability/SgmlDomBuilder.cs index b5454d2..0a229f9 100644 --- a/PortablePorts/NReadability/SgmlDomBuilder.cs +++ b/PortablePorts/NReadability/SgmlDomBuilder.cs @@ -92,6 +92,9 @@ namespace ReadSharp.Ports.NReadability private static XDocument LoadDocument(string htmlContent) { + // I should not really do this, but I <3 WPCentral + htmlContent = htmlContent.Replace("src=\"javascript:''\"", ""); + using (var sgmlReader = new SgmlReader()) { sgmlReader.CaseFolding = CaseFolding.ToLower; diff --git a/ReadSharp.Tests/ReadTests.cs b/ReadSharp.Tests/ReadTests.cs index 624b124..eb200d5 100644 --- a/ReadSharp.Tests/ReadTests.cs +++ b/ReadSharp.Tests/ReadTests.cs @@ -176,13 +176,13 @@ namespace ReadSharp.Tests [Fact] public async Task AreSinglepageArticlesNotPopulatingNextPage() { - Article result = await reader.Read(new Uri("http://arstechnica.com/apple/2014/01/two-steps-forward-a-review-of-the-2013-mac-pro/7/")); - Assert.Null(result.NextPage); - - result = await reader.Read(new Uri("http://www.wpcentral.com/developers-leak-new-features-windows-phone-81-sdk"), new ReadOptions() { MultipageDownload = true }); + Article result = await reader.Read(new Uri("http://www.wpcentral.com/developers-leak-new-features-windows-phone-81-sdk"), new ReadOptions() { MultipageDownload = true }); Assert.Null(result.NextPage); Assert.Equal(result.PageCount, 1); + result = await reader.Read(new Uri("http://arstechnica.com/apple/2014/01/two-steps-forward-a-review-of-the-2013-mac-pro/7/")); + Assert.Null(result.NextPage); + result = await reader.Read(new Uri("http://www.buzzfeed.com/mattlynley/the-16-most-interesting-things-to-come-out-of-bill-gates-qa")); Assert.Null(result.NextPage); diff --git a/ReadSharp/Properties/AssemblyInfo.cs b/ReadSharp/Properties/AssemblyInfo.cs index 9d0d991..1d665bf 100644 --- a/ReadSharp/Properties/AssemblyInfo.cs +++ b/ReadSharp/Properties/AssemblyInfo.cs @@ -22,5 +22,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("6.2.0")] -[assembly: AssemblyFileVersion("6.2.0")] \ No newline at end of file +[assembly: AssemblyVersion("6.2.1")] +[assembly: AssemblyFileVersion("6.2.1")] \ No newline at end of file