diff --git a/Readability.js b/Readability.js index 987ad97..3c2b405 100644 --- a/Readability.js +++ b/Readability.js @@ -844,10 +844,6 @@ Readability.prototype = { sibling = this._setNodeTag(sibling, "DIV"); } - // To ensure a node does not interfere with readability styles, - // remove its classnames. - sibling.removeAttribute("class"); - articleContent.appendChild(sibling); // siblings is a reference to the children array, and // sibling is removed from the array when we call appendChild(). diff --git a/test/test-pages/002/expected.html b/test/test-pages/002/expected.html index a2d689f..b218925 100644 --- a/test/test-pages/002/expected.html +++ b/test/test-pages/002/expected.html @@ -1,5 +1,5 @@
-
+

For more than a decade the Web has used XMLHttpRequest (XHR) to achieve asynchronous requests in JavaScript. While very useful, XHR is not a very nice API. It suffers from lack of separation of concerns. The input, output and state are all managed by interacting with one object, and state is tracked using events. Also, the event-based model doesn’t play well with JavaScript’s recent focus on Promise- and generator-based asynchronous programming.

The Fetch API intends to fix most of these problems. It does this by introducing the same primitives to JS that are used in the HTTP protocol. In addition, it introduces a utility function fetch() that succinctly captures the intention of retrieving a resource from the network.

The Fetch specification, which defines the API, nails down the semantics of a user agent fetching a resource. This, combined with ServiceWorkers, is an attempt to:

diff --git a/test/test-pages/heise/expected.html b/test/test-pages/heise/expected.html index 101c54e..2fa9197 100644 --- a/test/test-pages/heise/expected.html +++ b/test/test-pages/heise/expected.html @@ -1,5 +1,5 @@
-
+

1Password scannt auch QR-Codes.

diff --git a/test/test-pages/herald-sun-1/expected.html b/test/test-pages/herald-sun-1/expected.html index 578ca99..48075fe 100644 --- a/test/test-pages/herald-sun-1/expected.html +++ b/test/test-pages/herald-sun-1/expected.html @@ -1,5 +1,5 @@
-
+
A new Bill would require telecommunications service providers to store so-called ‘metadat
diff --git a/test/test-pages/keep-images/expected.html b/test/test-pages/keep-images/expected.html index 73661ad..df2bbd0 100644 --- a/test/test-pages/keep-images/expected.html +++ b/test/test-pages/keep-images/expected.html @@ -1,5 +1,5 @@
-
+
diff --git a/test/test-pages/lifehacker-post-comment-load/expected.html b/test/test-pages/lifehacker-post-comment-load/expected.html index 480c898..1ebaea8 100644 --- a/test/test-pages/lifehacker-post-comment-load/expected.html +++ b/test/test-pages/lifehacker-post-comment-load/expected.html @@ -1,5 +1,5 @@
-
+

How to Program Your Mind to Stop Buying Crap You Don’t Need

We all buy things from time to time that we don't really need. It's okay to appeal to your wants every once in a while, as long as you're in control. If you struggle with clutter, impulse buys, and buyer's remorse, here's how to put your mind in the right place before you even set foot in a store.

Understand How Your Own Brain Works Against You

diff --git a/test/test-pages/lifehacker-working/expected.html b/test/test-pages/lifehacker-working/expected.html index caba3e0..458a1a1 100644 --- a/test/test-pages/lifehacker-working/expected.html +++ b/test/test-pages/lifehacker-working/expected.html @@ -1,5 +1,5 @@
-
+

How to Program Your Mind to Stop Buying Crap You Don’t Need

We all buy things from time to time that we don't really need. It's okay to appeal to your wants every once in a while, as long as you're in control. If you struggle with clutter, impulse buys, and buyer's remorse, here's how to put your mind in the right place before you even set foot in a store.

Understand How Your Own Brain Works Against You

diff --git a/test/test-pages/medium-1/expected.html b/test/test-pages/medium-1/expected.html index acae906..a9a8c09 100644 --- a/test/test-pages/medium-1/expected.html +++ b/test/test-pages/medium-1/expected.html @@ -1,5 +1,5 @@
-
+

Better Student Journalism


We pushed out the first version of the Open Journalism site in January. Our goal is for the site to be a place to teach students what they should know about journalism on the web. It should be fun too.

@@ -93,7 +93,7 @@
We don’t know what journalism or the web will be like in 10 years, but we can start encouraging students to keep an open mind about the skills they’ll need. We’re less interested in preparing students for the current newsroom climate, than we are in teaching students to have the ability to learn new tools quickly as they come and go.
-
+

What we’re trying to share with others

  • A concise guide to building stories for the web diff --git a/test/test-pages/medium-2/expected.html b/test/test-pages/medium-2/expected.html index dd525fb..237a65d 100644 --- a/test/test-pages/medium-2/expected.html +++ b/test/test-pages/medium-2/expected.html @@ -1,5 +1,5 @@
    -
    +
    Words need defenders.
    diff --git a/test/test-pages/mozilla-2/expected.html b/test/test-pages/mozilla-2/expected.html index 7f55b0b..1fc0ee7 100644 --- a/test/test-pages/mozilla-2/expected.html +++ b/test/test-pages/mozilla-2/expected.html @@ -1,5 +1,5 @@
    -
    +

    Get to know the features that make it the most complete browser for building the Web.

    diff --git a/test/test-pages/salon-1/expected.html b/test/test-pages/salon-1/expected.html index 6f4e7fa..bffdf18 100644 --- a/test/test-pages/salon-1/expected.html +++ b/test/test-pages/salon-1/expected.html @@ -8,7 +8,7 @@

    As Mashable reports, the company announced that it would charge a minimum of $100 Australian to take passengers from the area immediately surrounding the ongoing crisis, and prices increased by as much as four times the standard amount. A firestorm of criticism quickly erupted – “@Uber_Sydney stop being assholes,” one Twitter response began – and Uber soon found itself offering free rides out of the troubled area instead.

    That opener suggests that Uber, as part of a community under siege, is preparing to respond in a civic manner.

    “… Fares have increased to encourage more drivers to come online & pick up passengers in the area.”

    -
    +

    But, despite the expression of shared concern, there is no sense of civitas to be found in the statement that follows. There is only a transaction, executed at what the corporation believes to be market value. Lesson #1 about Uber is, therefore, that in its view there is no heroism, only self-interest. This is Ayn Rand’s brutal, irrational and primitive philosophy in its purest form: altruism is evil, and self-interest is the only true heroism.

    There was once a time when we might have read of “hero cabdrivers” or “hero bus drivers” placing themselves in harm’s way to rescue their fellow citizens. For its part, Uber might have suggested that it would use its network of drivers and its scheduling software to recruit volunteer drivers for a rescue mission.

    Instead, we are told that Uber’s pricing surge was its expression of concern. Uber’s way to address a human crisis is apparently by letting the market govern human behavior, as if there were (in libertarian economist Tyler Cowen’s phrase) “markets in everything” – including the lives of a city’s beleaguered citizens (and its Uber drivers).

    diff --git a/test/test-pages/social-buttons/expected.html b/test/test-pages/social-buttons/expected.html index 763c6bf..63fabd5 100644 --- a/test/test-pages/social-buttons/expected.html +++ b/test/test-pages/social-buttons/expected.html @@ -1,5 +1,5 @@
    -
    +

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    diff --git a/test/test-pages/tmz-1/expected.html b/test/test-pages/tmz-1/expected.html index d032352..1c720f0 100644 --- a/test/test-pages/tmz-1/expected.html +++ b/test/test-pages/tmz-1/expected.html @@ -1,5 +1,5 @@
    -
    +

    $150K Pearl Oscar Dress ... STOLEN!!!!

    diff --git a/test/test-pages/wapo-2/expected.html b/test/test-pages/wapo-2/expected.html index ed49689..8150843 100644 --- a/test/test-pages/wapo-2/expected.html +++ b/test/test-pages/wapo-2/expected.html @@ -28,7 +28,7 @@

    “Now it’s hard to see what could persuade the Palestinians” to hold up on their ICC plans, Indyk said. “That has nothing to do with negotiations, but if both sides can’t be persuaded to back down, then they will be on a trajectory that could lead to the collapse of the Palestinian Authority because it can’t pay wages anymore.

    “That could be an issue forced onto the agenda about the same time as a potential nuclear deal.”

    -
    +

    Steven Mufson covers the White House. Since joining The Post, he has covered economics, China, foreign policy and energy.

    diff --git a/test/test-pages/webmd-1/expected.html b/test/test-pages/webmd-1/expected.html index ec97d64..54d6db4 100644 --- a/test/test-pages/webmd-1/expected.html +++ b/test/test-pages/webmd-1/expected.html @@ -1,5 +1,5 @@
    -
    +

    Feb. 23, 2015 -- Life-threatening peanut allergies have mysteriously been on the rise in the past decade, with little hope for a cure.

    But a groundbreaking new study may offer a way to stem that rise, while another may offer some hope for those who are already allergic.

    diff --git a/test/test-pages/webmd-2/expected.html b/test/test-pages/webmd-2/expected.html index afa7572..62a15b6 100644 --- a/test/test-pages/webmd-2/expected.html +++ b/test/test-pages/webmd-2/expected.html @@ -1,5 +1,5 @@
    -
    +

    April 17, 2015 -- Imagine being sick in the hospital with a bacterial infection and doctors can't stop it from spreading. This so-called "superbug" scenario is not science fiction. It's an urgent, worldwide worry that is prompting swift action.

    Every year, about 2 million people get sick from a superbug, according to the CDC. About 23,000 die. Earlier this year, an outbreak of CRE (carbapenem-resistant enterobacteriaceae) linked to contaminated medical tools sickened 11 people at two Los-Angeles area hospitals. Two people died, and more than 200 others may have been exposed.