Research-Stack/4-Infrastructure/servo-fetch/tests/fixtures/article_with_meta.html

16 lines
945 B
HTML

<html>
<head>
<title>Test Article With Metadata</title>
<meta name="author" content="Jane Doe">
<meta name="description" content="A short summary of the article.">
</head>
<body>
<article>
<h1>Test Article With Metadata</h1>
<p>This is the first paragraph of a longer article that contains enough text for the readability algorithm to consider it worth extracting as the main content of the page.</p>
<p>The second paragraph adds more substance. Readability needs a minimum amount of content to distinguish the main article from boilerplate navigation and sidebar elements.</p>
<p>A third paragraph ensures we are well above the threshold. The algorithm scores nodes based on paragraph count, text length, and link density to find the best candidate.</p>
<p>Finally, a fourth paragraph to make absolutely sure this article is extracted correctly by the readability heuristics used in dom_smoothie.</p>
</article>
</body>
</html>