From 1c58b53a45359d90146453e5cf1d6c909f0c5dab Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Fri, 17 Apr 2015 15:47:14 +0800 Subject: [PATCH] Update xpath --- xpath.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xpath.md b/xpath.md index c23815c86..1fcf5ff4c 100644 --- a/xpath.md +++ b/xpath.md @@ -24,7 +24,7 @@ layout: default ### Attribute selectors | CSS | Xpath | ? | -| --- | --- | | +| --- | --- | --: | | `#id` | `//[@id="id"]` | [?](#predicates) | | `.class` | `//[@class="class"]` *...see below* | | | `input[type="submit"]` | `//input[@type="submit"]` | | @@ -36,7 +36,7 @@ layout: default ### Order selectors | CSS | Xpath | ? | -| --- | --- | -- | +| --- | --- | --: | | `ul > li:first-child` | `//ul/li[1]` | [?](#indexing) | | `ul > li:nth-child(2)` | `//ul/li[2]` | | | `ul > li:last-child` | `//ul/li[last()]` | | @@ -50,7 +50,7 @@ layout: default ### jQuery | jQuery | Xpath | ? | -| ------ | --- | -- | +| ------ | --- | --: | | `$('ul > li').parent()` | `//ul/li/..` | [?](#other-axes) | | `$('li').closest('section')` | `//li/ancestor-or-self::section` | | | ---- | ---- | |