instance method
document_root_element
Ruby on Rails edge
Since v4.2.11.3 Private — implementation detail, not part of the public APISignature
document_root_element()
Need to experiment if this priority is the best one: rendered => output_buffer
Source
# File actionview/lib/action_view/test_case.rb, line 339
def document_root_element
Rails::Dom::Testing.html_document.parse(@rendered.blank? ? @output_buffer.to_str : @rendered).root
end
Defined in actionview/lib/action_view/test_case.rb line 339
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::TestCase::Behavior