Beispiele
Select a release download link by its class
The result contains the matching element, including its attributes.
Eingabe
<main><a class="download" href="/app.tar.gz">Linux</a><a href="/notes">Notes</a></main>Expected answer
<a class="download" href="/app.tar.gz">Linux</a>- CSS-Selector
a.download- Trennzeichen
\n
Select only failed rows from a job report
Eingabe
<table><tr class="passed"><td>Build</td></tr><tr class="failed"><td>Test</td></tr></table>Expected answer
<tr class="failed"><td>Test</td></tr>- CSS-Selector
tr.failed- Trennzeichen
\n
Select links whose destination uses HTTPS
Eingabe
<div><a href="https://example.org/docs">Docs</a><a href="/local">Local</a></div>Expected answer
<a href="https://example.org/docs">Docs</a>- CSS-Selector
a[href^="https://"]- Trennzeichen
\n
Select direct list children without nested checklist items
Eingabe
<ul id="steps"><li>Build<ul><li>Compile</li></ul></li><li>Deploy</li></ul>Expected answer
<li>Build<ul><li>Compile</li></ul></li> | <li>Deploy</li>- CSS-Selector
#steps > li- Trennzeichen
|
Find a missing canonical link in a document head
An empty result means no matching element was found in this supplied HTML; no website is fetched.
Eingabe
<html><head><title>Release notes</title></head><body>v2</body></html>Expected answer
Empty result- CSS-Selector
link[rel="canonical"]- Trennzeichen
\n
CSS selector
Eingabe
<div id="test">
<p class="a">hello</p>
<p>world</p>
<p class="a">again</p>
</div>Expected answer
<p class="a">hello</p>
<p class="a">again</p>- CSS-Selector
#test p.a- Trennzeichen
\n
Parameter
| Parameter | Standardwert | Eingabe und Auswahl |
|---|---|---|
| CSS-Selector | "" | Text |
| Trennzeichen | "\\n" | Escape-Sequenzen wie \n, \r und \t werden unterstützt |