Skip to content

Fix "TypeError: Cannot set property 'border' of undefined"#3

Open
ilyazub wants to merge 1 commit into
NikolaiT:masterfrom
ilyazub:patch-1
Open

Fix "TypeError: Cannot set property 'border' of undefined"#3
ilyazub wants to merge 1 commit into
NikolaiT:masterfrom
ilyazub:patch-1

Conversation

@ilyazub
Copy link
Copy Markdown

@ilyazub ilyazub commented Jul 31, 2020

In this conditional current node is a text node (nodeType === 3). It doesn't have style attribute. It's parent has.

Result
image

Sadly, it considers People also ask block structurally similar to organic results.

PS. @NikolaiT have you tried to use ML for data extraction from HTML?

In this conditional current node is a text node (`nodeType === 3`). It doesn't have style attribute. It's parent has.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants