mirror of
https://github.com/TangentFoxy/lua-htmlparser.git
synced 2025-07-28 19:12:18 +00:00
:not() seems to be functioning now
needs some tidying up and some more test runs
This commit is contained in:
10
test.lua
10
test.lua
@@ -113,4 +113,14 @@ local function printscope(node, table, level)
|
||||
end
|
||||
for node,table in pairs(scopes) do
|
||||
printscope(node, table)
|
||||
end
|
||||
|
||||
local sel = root("[itemscope]:not([itemprop])")
|
||||
for i,v in ipairs(sel.nodes) do
|
||||
print(v.name)
|
||||
end
|
||||
|
||||
local sel = root("[href]:not(a)")
|
||||
for i,v in ipairs(sel.nodes) do
|
||||
print(v.name)
|
||||
end
|
Reference in New Issue
Block a user