lib/hatemile/implementation/accessible_css_implementation.rb
##
# Create a element to show the content.
#
# @param content [String] The text content of element.
# @param data_property_value [String] The value of custom attribute used
#   to identify the fix.
# @return [Hatemile::Util::Html::HTMLDOMElement] The element to show the
#   content.
Create a element to show the content.
Create a element to show the content .
def create_content_element(content, data_property_value)
        content_element = @html_parser.create_element('span')
        content_element.set_attribute(DATA_ISOLATOR_ELEMENT, 'true')
        content_element.set_attribute(DATA_SPEAK_AS, data_property_value)
        content_element.append_text(content)
        content_element
      end
def create_content_element ( content , data_property_value ) content_element = @html_parser . create_element ( 'span' ) content_element . set_attribute ( DATA_ISOLATOR_ELEMENT , 'true' ) content_element . set_attribute ( DATA_SPEAK_AS , data_property_value ) content_element . append_text ( content ) content_element end
Create a element to show the content.
Create a element to show the content .
The element to show the content.
The element to show the content .
Hatemile::Util::Html::HTMLDOMElement
content
The text content of element.
The text content of element .
data_property_value
The value of custom attribute used to identify the fix.
The value of custom attribute used to identify the fix .