Merge pull request #44793 from jbampton/fix-word-case-of-xhtml

Fix word casing of `XHTML` and `XML Builder`
This commit is contained in:
Petrik de Heus 2022-03-29 20:49:07 +02:00 committed by GitHub
commit ca9fa85292
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -82,9 +82,9 @@ module ActionView
# end # end
# #
# The Atom spec defines five elements (content rights title subtitle # The Atom spec defines five elements (content rights title subtitle
# summary) which may directly contain xhtml content if type: 'xhtml' # summary) which may directly contain XHTML content if type: 'xhtml'
# is specified as an attribute. If so, this helper will take care of # is specified as an attribute. If so, this helper will take care of
# the enclosing div and xhtml namespace declaration. Example usage: # the enclosing div and XHTML namespace declaration. Example usage:
# #
# entry.summary type: 'xhtml' do |xhtml| # entry.summary type: 'xhtml' do |xhtml|
# xhtml.p pluralize(order.line_items.count, "line item") # xhtml.p pluralize(order.line_items.count, "line item")
@ -134,7 +134,7 @@ module ActionView
end end
private private
# Delegate to xml builder, first wrapping the element in an xhtml # Delegate to XML Builder, first wrapping the element in an XHTML
# namespaced div element if the method and arguments indicate # namespaced div element if the method and arguments indicate
# that an xhtml_block? is desired. # that an xhtml_block? is desired.
def method_missing(method, *arguments, &block) def method_missing(method, *arguments, &block)