lib/hatemile/implementation/accessible_css_implementation.rb
##
# Speak the content of element only.
#
# @param element [Hatemile::Util::Html::HTMLDOMElement] The element.
Speak the content of element only.
Speak the content of element only .
def speak_normal(element)
        return unless element.has_attribute?(DATA_SPEAK)
        if element.get_attribute(DATA_SPEAK) == 'none' &&
           !element.has_attribute?(DATA_ISOLATOR_ELEMENT)
          element.remove_attribute('role')
          element.remove_attribute('aria-hidden')
          element.remove_attribute(DATA_SPEAK)
        else
          replace_element_by_own_content(element)
        end
      end
def speak_normal ( element ) return unless element . has_attribute? ( DATA_SPEAK ) if element . get_attribute ( DATA_SPEAK ) == 'none' && ! element . has_attribute? ( DATA_ISOLATOR_ELEMENT ) element . remove_attribute ( 'role' ) element . remove_attribute ( 'aria-hidden' ) element . remove_attribute ( DATA_SPEAK ) else replace_element_by_own_content ( element ) end end
Speak the content of element only.
Speak the content of element only .
element
None