Reworked documentation for PermitScrubber and TargetScrubber.
Removed :nodoc: from PermitScrubber.
Trimmed deprecation message for ActionDispatch::Assertions::SelectorAssertions.
Moved Action Pack changelog message to Action View. Clarified Dom and Selector assertions changes in there.
Added related Nokogiri issue link to tests that fail with unknown encoding ASCII-8BIT.
Reworked root and selector conditional assignment in css_select.
Changed wording of missing selector argument exception message in css_select.
Removed duplication in assert_dom_equal and assert_dom_not_equal.
Fixed: spelling mistake in SanitizeHelperTest.
Changed: remove_xpaths called with String returns String, while called with Loofah fragment returns Loofah fragment. Added tests for this.
Renamed: remove_xpaths tests no longer prefixed with sanitizer.
Changed: return early from compare_doms if the two doms don't have the same number of children.
Changed: removed @selected and @page variables from HTMLSelector since one method used them. Passed the values directly to there instead.
Changed: HTMLSelector comparisons renamed to equality_tests.
Changed: put selector extraction into selector_from, which is renamed to extract_selector.
Removed unnecessary lines from HTMLSelector initialize.
Renamed: HTMLSelector css_selector to selector.
Changed: using duck typing instead of requiring subclasses of Node and NodeSet.
Moved: initial assignment of @selector_is_second_argument is now in initialize.
Changed conditional check in filter. Removed weird comments.