diff --git a/Readability.js b/Readability.js index 5cff4540..de768baf 100644 --- a/Readability.js +++ b/Readability.js @@ -2506,6 +2506,11 @@ Readability.prototype = { return false; } + // Handle buried inside nested
layers in
. + if (tag === "div" && this._hasAncestorTag(node, "figure") && this._isSingleImage(node)) { + return false; + } + var weight = this._getClassWeight(node); this.log("Cleaning Conditionally", node); diff --git a/test/test-pages/allrecipes-1/expected-metadata.json b/test/test-pages/allrecipes-1/expected-metadata.json new file mode 100644 index 00000000..48d1f60e --- /dev/null +++ b/test/test-pages/allrecipes-1/expected-metadata.json @@ -0,0 +1,10 @@ +{ + "title": "Hot Honey Brussels Sprouts", + "byline": "Nicole Russell", + "dir": null, + "lang": "en", + "excerpt": "These hot honey Brussels sprouts are a simple side dish with all the elements you'll ever need in a side. They're sweet, spicy, crispy, and melt in your mouth.", + "siteName": "Allrecipes", + "publishedTime": null, + "readerable": true +} diff --git a/test/test-pages/allrecipes-1/expected.html b/test/test-pages/allrecipes-1/expected.html new file mode 100644 index 00000000..2190e23d --- /dev/null +++ b/test/test-pages/allrecipes-1/expected.html @@ -0,0 +1,291 @@ +
+
+
+
+
+

1 Photo

+
+

These hot honey Brussels sprouts are a simple side dish with all the elements you'll ever need in a side. They're sweet, spicy, crispy, and melt in your mouth. I like to pair this with pork chops but it goes great with chicken or wild game.

+
+
+

By

+
+

Nicole Russell

+
+
+

Nicole Russell

+
+

Nicole Russell is a prolific contributor to Allrecipes and an avid member of the Allrecipes Allstars.

+
+
+
+

Published on November 3, 2025

+
+
+
+
+
+

Dish of roasted brussels sprouts with crumbled cheese and garnish

+
+
+
+
+
+

Prep Time:

+

10 mins

+
+
+

Cook Time:

+

20 mins

+
+
+

Total Time:

+

30 mins

+
+
+

Servings:

+

4

+
+
+
+

Keep Screen Awake

+

+

Ingredients

+

+
+
+

+

+

+
+

Original recipe (1X) yields 4 servings

+
+
    +
  • +

    + 1 pound Brussels sprouts, trimmed and halved lengthwise +

    +
  • +
  • +

    + 1 tablespoon olive oil +

    +
  • +
  • +

    + 2 tablespoons hot honey, such as Mike's® Original Hot Honey +

    +
  • +
  • +

    + salt and freshly ground black pepper to taste +

    +
  • +
  • +

    + 1/4 cup crumbled feta cheese +

    +
  • +
  • +

    + 1 tablespoon chopped scallions +

    +
  • +
+
+
+

Directions

+
+
    +
  1. +

    Gather all ingredients. Preheat the oven to 400 degrees F (200 degrees C). Line a large baking sheet with aluminum foil.

    +
    +
    +

    Ingredients for a recipe including Brussels sprouts oil honey cheese and seasonings arranged in bowls on a marble surface

    +
    +
    +

    + Allrecipes / Julia Hartbeck +

    +
    +
    +
  2. +
  3. +

    Place Brussels sprouts in a bowl. Add oil, hot honey, salt, and pepper. Stir to combine and transfer to the baking sheet.

    +
    +
    +

    A baking sheet with halved Brussels sprouts arranged on foil prepared for cooking

    +
    +
    +

    + Allrecipes / Julia Hartbeck +

    +
    +
    +
  4. +
  5. +

    Roast in the preheated oven for 20 minutes.

    +
    +
    +

    Roasted Brussels sprouts on a foillined baking sheet

    +
    +
    +

    + Allrecipes / Julia Hartbeck +

    +
    +
    +
  6. +
  7. +

    Transfer sprouts to a bowl. Top with feta and scallions. Toss to combine. Serve immediately.

    +
    +
    +

    Bowl of roasted Brussels sprouts garnished with toppings and a spoon on the side

    +
    +
    +

    + Allrecipes / Julia Hartbeck +

    +
    +
    +
  8. +
+
+
+
+
+

Nutrition Facts (per serving) +

+ + + + + + + + + + + + + + + + + + + +
132 Calories
6g Fat
18g Carbs
5g Protein
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nutrition Facts
+ Servings Per Recipe 4 +
+ Calories 132 +
% Daily Value *
+ Total Fat 6g + 8%
+ Saturated Fat 2g + 10%
+ Cholesterol 8mg + 3%
+ Sodium 185mg + 8%
+ Total Carbohydrate 18g + 7%
+ Dietary Fiber 3g + 11%
+ Total Sugars 12g +
+ Protein 5g + 9%
+ Vitamin C 98mg + 109%
+ Calcium 91mg + 7%
+ Iron 2mg + 9%
+ Potassium 414mg + 9%
+
+

* Percent Daily Values are based on a 2,000 calorie diet. Your daily values may be higher or lower depending on your calorie needs.

+

** Nutrient information is not available for all ingredients. Amount is based on available nutrient data.

+

(-) Information is not currently available for this nutrient. If you are following a medically restrictive diet, please consult your doctor or registered dietitian before preparing this recipe for personal consumption.

+
+
+
+
+
+
+
+
\ No newline at end of file diff --git a/test/test-pages/allrecipes-1/source.html b/test/test-pages/allrecipes-1/source.html new file mode 100644 index 00000000..45e56ad5 --- /dev/null +++ b/test/test-pages/allrecipes-1/source.html @@ -0,0 +1,3349 @@ + + + + + + + + + + + + + + + + + + + Hot Honey Brussels Sprouts Recipe + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+ +
+ +
+
+
+ +
+
+
+
+

+ Hot Honey Brussels Sprouts +

+
+ + +
+

+ These hot honey Brussels sprouts are a simple side dish with all the elements you'll ever need in a side. They're sweet, spicy, crispy, and melt in your mouth. I like to pair this with pork chops but it goes great with chicken or wild game. +

+ +
+
+
+
+ +
+
+
+ Dish of roasted brussels sprouts with crumbled cheese and garnish +
+
+
+
+ +
+
+
+
+
+
+ Prep Time: +
+
+ 10 mins +
+
+
+
+ Cook Time: +
+
+ 20 mins +
+
+
+
+ Total Time: +
+
+ 30 mins +
+
+
+
+ Servings: +
+
+ 4 +
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ Keep Screen Awake +
+
+

+ Ingredients +

+
+
+
+
+ +
+
+ +
+
+ +
+
+
+ +
+

+ Original recipe (1X) yields 4 servings +

+
+
    +
  • +

    + 1 pound Brussels sprouts, trimmed and halved lengthwise +

    +
  • +
  • +

    + 1 tablespoon olive oil +

    +
  • +
  • +

    + 2 tablespoons hot honey, such as Mike's® Original Hot Honey +

    +
  • +
  • +

    + salt and freshly ground black pepper to taste +

    +
  • +
  • +

    + 1/4 cup crumbled feta cheese +

    +
  • +
  • +

    + 1 tablespoon chopped scallions +

    +
  • +
+
+
+
+

+ Directions +

+
+
    +
  1. +

    + Gather all ingredients. Preheat the oven to 400 degrees F (200 degrees C). Line a large baking sheet with aluminum foil. +

    +
    +
    +
    + Ingredients for a recipe including Brussels sprouts oil honey cheese and seasonings arranged in bowls on a marble surface +
    +
    +
    +

    + Allrecipes / Julia Hartbeck +

    +
    +
    +
    +
  2. +
  3. +

    + Place Brussels sprouts in a bowl. Add oil, hot honey, salt, and pepper. Stir to combine and transfer to the baking sheet. +

    +
    +
    +
    + A baking sheet with halved Brussels sprouts arranged on foil prepared for cooking +
    +
    +
    +

    + Allrecipes / Julia Hartbeck +

    +
    +
    +
    +
  4. +
  5. +

    + Roast in the preheated oven for 20 minutes. +

    +
    +
    +
    + Roasted Brussels sprouts on a foillined baking sheet +
    +
    +
    +

    + Allrecipes / Julia Hartbeck +

    +
    +
    +
    +
  6. +
  7. +

    + Transfer sprouts to a bowl. Top with feta and scallions. Toss to combine. Serve immediately. +

    +
    +
    +
    + Bowl of roasted Brussels sprouts garnished with toppings and a spoon on the side +
    +
    +
    +

    + Allrecipes / Julia Hartbeck +

    +
    +
    +
    +
  8. +
+
+
+
+
+ +
+
+ +
+
+
+
+

+ Nutrition Facts (per serving) +

+ + + + + + + + + + + + + + + + + + + +
+ 132 + + Calories +
+ 6g + + Fat +
+ 18g + + Carbs +
+ 5g + + Protein +
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Nutrition Facts +
+ Servings Per Recipe 4 +
+ Calories 132 +
+ % Daily Value * +
+ Total Fat 6g + + 8% +
+ Saturated Fat 2g + + 10% +
+ Cholesterol 8mg + + 3% +
+ Sodium 185mg + + 8% +
+ Total Carbohydrate 18g + + 7% +
+ Dietary Fiber 3g + + 11% +
+ Total Sugars 12g +
+ Protein 5g + + 9% +
+ Vitamin C 98mg + + 109% +
+ Calcium 91mg + + 7% +
+ Iron 2mg + + 9% +
+ Potassium 414mg + + 9% +
+
+

+ * Percent Daily Values are based on a 2,000 calorie diet. Your daily values may be higher or lower depending on your calorie needs. +

+

+ ** Nutrient information is not available for all ingredients. Amount is based on available nutrient data. +

+

+ (-) Information is not currently available for this nutrient. If you are following a medically restrictive diet, please consult your doctor or registered dietitian before preparing this recipe for personal consumption. +

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+

+ You’ll Also Love +

+
+ + + + +
+
+
+ + + + + + + +