| PASS | id("test1"): <html><head></head><body><root><div id="test1">Match</div></root></body></html> | |
| PASS | id("test1 test2"): <html><head></head><body><root><div id="test1">First</div><div id="test2">Second</div></root></body></html> | |
| PASS | id("nonexistent"): <html><head></head><body><root><div id="test1">No match</div></root></body></html> | |
| PASS | id("Test1"): <html><head></head><body><root><div id="test1">No match</div></root></body></html> | |
| PASS | id("duplicate"): <html><head></head><body><root><div id="duplicate">First</div><div id="duplicate">Second</div></root></body></html> | |
| PASS | id("test-1"): <html><head></head><body><root><div id="test-1">Match</div></root></body></html> | |
| PASS | id(""): <html><head></head><body><root><div id="">Empty ID</div></root></body></html> | |
| PASS | id(" test1 "): <html><head></head><body><root><div id="test1">Match</div></root></body></html> | |