mirror of
https://github.com/TangentFoxy/lua-htmlparser.git
synced 2025-08-23 06:12:29 +00:00
closes #6
:not(), [att=val], [att!=val], [att|=val], [att*=val], [att~=val], [att^=val], [att$=val] Note that the selection is now returned as a simple Set, breaking the abilty brought in by #8 and #9 tot :select() or () on the selection. Of course, the elements in the returned Set are still ElementNodes that can be selected upon.
This commit is contained in:
12
test.html
12
test.html
@@ -1,11 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" test1='val1' test2="val='2'" test3='val="3"' test4="val = 4" test5=val5 test6=val""6>
|
||||
<head>
|
||||
<head words="testing one two three">
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="test.css" />
|
||||
<link rel="alternate" title="Feed" type="application/atom+xml" href="#" />
|
||||
<link rel="stylesheet" href="test.css" hreflang="en" />
|
||||
<link rel="alternate" title="Feed" type="application/atom+xml" href="#" hreflang="en-gb" />
|
||||
</head>
|
||||
<body>
|
||||
<body words="testing three four five">
|
||||
<h1>Contents</h1>
|
||||
<ol class="chapters">
|
||||
<li>Preface</li>
|
||||
@@ -27,13 +27,13 @@
|
||||
</p>
|
||||
<ul class="contacts">
|
||||
<li id="/contacts/4711">
|
||||
<a href="/contacts/4711">
|
||||
<a href="/contacts/4711" hreflang="en-us">
|
||||
<span class="firstname">Jon</span>
|
||||
<span class="lastname">Moore</span>
|
||||
</a>
|
||||
</li>
|
||||
<li id="/contacts/4712">
|
||||
<a href="/contacts/4712">
|
||||
<a href="/contacts/4712" hreflang="english">
|
||||
<span class="firstname">Homer</span>
|
||||
<span class="lastname">Simpson</span>
|
||||
</a>
|
||||
|
Reference in New Issue
Block a user