mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-12-21 04:15:36 +00:00
8f42c74985
Add yet another tree walking utility: CommentUtils::linearWalk(). Unlike TreeWalker, it allows handling the beginnings and ends of nodes separately – kind of like parsing a XML token stream, or kind of like VisualEditor's linear model. (Add unit tests for this utility. The simple.html test case is copied from [VisualEditor/VisualEditor]/demos/ve/pages/simple.html.) Use this utility to stop skipping when we reach either a closing or opening block node tag. Previously we'd skip over such tags inside nested "transparent" nodes (like <a>, <del>, or apparently <font>). Bug: T271385 Change-Id: I201a942eb3a56335e84d94e150ec2c33f8b4f4e0
20 lines
2 KiB
HTML
20 lines
2 KiB
HTML
<p><b><a href="https://en.wikipedia.org/wiki/Lorem_ipsum">Lorem Ipsum</a></b> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was <a href="https://www.mediawiki.org/wiki/VisualEditor">popularised</a> in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
|
|
<h2><b>What</b> is <i>Lorem Ipsum?</i></h2>
|
|
<p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a <a href="https://en.wikipedia.org/wiki/Latin">Latin</a> professor at Hampden-Sydney College in <a href="https://en.wikipedia.org/wiki/Virginia">Virginia</a>, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source.</p>
|
|
<h3><b>Look</b> at <i>this headline</i></h3>
|
|
<p>Lorem ipsum is simply dummy text of the printing and typesetting industry.</p>
|
|
<h2><b>Where</b> can <i>I get some?</i></h2>
|
|
<ul>
|
|
<li>
|
|
<p><b>here</b></p>
|
|
</li>
|
|
<li>
|
|
<p>or <i>here</i></p>
|
|
</li>
|
|
<li>
|
|
<p>or <u>there</u></p>
|
|
</li>
|
|
</ul>
|
|
<h2>Why do we use it?</h2>
|
|
<p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source.</p>
|