xpath-diner
xpath-diner copied to clipboard
The task says: "Select the small apple and the big orange" Correct solution should be like this: //apple[contains(@class,'small')] | //orange[not(contains(@class,'small'))] But it's not accepted. The only accepted solution is: //plate/*[last()]...
There is no big apple in level 14, the code works alright but there is no big apple on the table, only a small one
Level 14 asks for big apple but there is none
Code example: ` A//B will select all B that are a direct children A ` should be with one "/": `A/B will select all B that are a direct children...
Hi dear developers, i think there is one more correct answer in Level 9 task, this: //apple[@class='small']. But your game ignores it. I am practicing with my smartphone. ![Screenshot_2022-09-09-13-43-24-810_com android...
Syntax for all other 18 levels always starts with // but not in case of Level 12: https://github.com/TopSwagCode/xpath-diner/blob/c1af12c97800e1e711c043ec1681d0c2d42f3faa/js/levels.js#L228
Hi @TopSwagCode 1. Code examples lack the @ sign next to attribute: ``` /*[starts-with(attribute^="value"] //toy[starts-with(category,"Swim")] ``` XPath syntax requires the @ sign before attribute 2. There is one missing closing...
Within js/levels.js on line 374, the example text is missing an '=' symbol. Replace the current line 374: `"//img[substring(@src, string-length(@src) - string-length('.jpg')+1 ) '.jpg' ] selects all images display a...
According to examples, this xpath //plate[@id='fancy' and @for='Hanna'] should work, but it doesn't. Inside of levels.js I haven't found this level.
There is absolutely no reason why we should have to use the `contains()` function to filter an element based on an attribute value. But it's marked as an incorrect answer...