JuliaWeb/Gumbo.jl

ERROR: MethodError: no method matching tag(::HTMLText)

Closed this issue · 2 comments

'''
julia> url="http://rp.pl"
"http://rp.pl"

julia> doc=parsehtml(String(read(download(url))));

julia> for elem in PreOrderDFS(doc.root) println(tag(elem)) end
HTML
head
script
ERROR: MethodError: no method matching tag(::HTMLText)
Closest candidates are:
tag(::HTMLElement{T}) where T at C:\Users\PC.julia\packages\Gumbo\OhZJu\src\manipulation.jl:6
Stacktrace:
[1] top-level scope at .\REPL[86]:1 [inlined]
[2] top-level scope at .\none:0

'''
Thx, Paul

aviks commented

Text nodes don't have a tag. So this is as expected, I think.

Text nodes don't have a tag. So this is as expected, I think.

expected but Julia is stoped... What now ?