Skip to content

Ignore disabled elements by default#14

Open
AdrianAtZyte wants to merge 2 commits into
scrapy:mainfrom
AdrianAtZyte:ignore-disabled-elements
Open

Ignore disabled elements by default#14
AdrianAtZyte wants to merge 2 commits into
scrapy:mainfrom
AdrianAtZyte:ignore-disabled-elements

Conversation

@AdrianAtZyte

Copy link
Copy Markdown
Contributor

Fixes #7.

I am not sure what the default behavior should be, though.

This PR currently changes the previous behavior, i.e. it is a breaking change. The new behavior follows the same criteria as browsers. But browsers work with JavaScript, and JavaScript can enable elements; form2request cannot. It can be fed a browser-rendered HTML, thought.

@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.25%. Comparing base (8d7b4d1) to head (c3e58af).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #14      +/-   ##
==========================================
+ Coverage   99.15%   99.25%   +0.09%     
==========================================
  Files           2        2              
  Lines         119      134      +15     
  Branches       25       31       +6     
==========================================
+ Hits          118      133      +15     
  Partials        1        1              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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.

Support disabled

1 participant