method
whitespace
whitespace()
public
Evaluates to true if whitespace is respected for this element. This is the case if:
- Neither :respect_whitespace nor :compress_whitespace has any value
- The context has :respect_whitespace set to :all or an array containing the name of this element, and :compress_whitespace isn’t set to :all or an array containing the name of this element.
The evaluation is tested against expanded_name, and so is namespace sensitive.