method

html_document

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: ActionDispatch::Assertions
html_document() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/testing/assertions.rb, line 15
    def html_document
      @html_document ||= if @response.media_type&.end_with?("xml")
        Nokogiri::XML::Document.parse(@response.body)
      else
        Rails::Dom::Testing.html_document.parse(@response.body)
      end
    end
Register or log in to add new notes.