Open alexballas opened 1 year ago
Yep, I think if findOnce
and findAllofem
return a pointer to an empty html.Node
, it'll be fixed. If we just add the nil pointer check, then the next panic will happen in the Find
function because it accesses the Data
field.
Hello, If I try to chain
Find
andFindAll
method of non-existent tags like in the example above, I get a panic errorI believe that both
func findOnce
andfunc findAllofem
should be checking ifn *html.Node
is nil before proceeding with the processing. Am I understanding this correctly?Thanks, Alex