mechanize icon indicating copy to clipboard operation
mechanize copied to clipboard

HTML5 support

Open flavorjones opened this issue 3 years ago • 3 comments

This issue is a placeholder to track what pieces of HTML5 functionality Mechanize should eventually support.

  1. Mechanize uses Nokogiri::HTML (which is an alias for Nokogiri::HTML4) as the HTML parser. Mechanize needs to provide an option for invoking the Nokogiri::HTML5 parser on platforms where it's available.
  2. #591 points out that Mechanize::Form#fields are set based on searching the form element's DOM subtree. HTML5 allows for form fields to exist outside the form subtree when they have the form attribute (see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-form).

flavorjones avatar Feb 19 '22 16:02 flavorjones