There are two XPath expressions:
//LI/A[normalize-space()="fullscreen"]
//LI/A["fullscreen"]
As I understand, normalize-space()
is used to trim strings, as said in documentation. So the two expressions should have the same meaning?
But the first one can be evaluated to locate the element in this web page by:
document.evaluate('//LI/A[normalize-space()="fullscreen"]', document).iterateNext();
, while the second will locate a different element.
What's the difference between them?