• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Test setting the href attribute of an HTMLAnchorElement to a URL with leading and trailing whitespace.
2
3On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6Set href that starts with a space
7PASS a.hostname is 'www.mydomain.com'
8Set href that starts with a newline
9PASS a.hostname is 'www.mydomain.com'
10Set href that starts with a tab
11PASS a.hostname is 'www.mydomain.com'
12Set href that starts with a carriage return
13PASS a.hostname is 'www.mydomain.com'
14Set href that starts with a combination of newlines, spaces and tabs
15PASS a.hostname is 'www.mydomain.com'
16Set href that ends with a space
17PASS a.hostname is 'www.mydomain.com'
18Set href that ends with a newline
19PASS a.hostname is 'www.mydomain.com'
20Set href that ends with a tab
21PASS a.hostname is 'www.mydomain.com'
22Set href that ends with a carriage return
23PASS a.hostname is 'www.mydomain.com'
24Set href that ends with a combination of newlines, spaces and tabs
25PASS a.hostname is 'www.mydomain.com'
26Set href that starts and ends with a combination of newlines, spaces and tabs
27PASS a.hostname is 'www.mydomain.com'
28PASS successfullyParsed is true
29
30TEST COMPLETE
31
32