When using XHTML 1.0 Transitional Doctype and having multiple whitespace in a text shown on the website like this <span>This is the text</span> the text shown on the website is 'This is the text' and multiple whitespace is ignored. When getting this text via TextContent- or InnerText- Property, it is parsed like it is in the source. I think it should be parsed like shown on the website, so there's less space for mistakes when searching for an element by text.