サクサク読めて、アプリ限定の機能も多数!
//*[contains(concat(" ",normalize-space(@class)," "), " hoge ")] ← 厳密に //*[contains(@class,"hoge")] ← 緩く
raimon49 のブックマーク 2010/01/11 16:41
特定のclass属性を持った任意の要素にマッチするXPath | 3.14[XPath][howto]//*[contains(concat(" ",normalize-space(<a href="https://twitter.com/class" target="_blank" rel="noopener nofollow">@class</a>)," "), " hoge ")] ← 厳密に //*[contains(<a href="https://twitter.com/class" target="_blank" rel="noopener nofollow">@class</a>,"hoge")] ← 緩く2010/01/11 16:41
//*[contains(concat(" ",normalize-space(<a href="https://twitter.com/class" target="_blank" rel="noopener nofollow">@class</a>)," "), " hoge ")] ← 厳密に //*[contains(<a href="https://twitter.com/class" target="_blank" rel="noopener nofollow">@class</a>,"hoge")] ← 緩く
このブックマークにはスターがありません。 最初のスターをつけてみよう!
white.s151.xrea.com2008/02/11
結論特定のclass属性を持った任意の要素にマッチするXPath(hogeは指定したいclass属性名) //*[contains(concat(" ",normalize-space(@class)," "), " hoge ")] 特定の要素にしたい場合は適当に div[contains(conc...
120 人がブックマーク・23 件のコメント
\ コメントが サクサク読める アプリです /
//*[contains(concat(" ",normalize-space(@class)," "), " hoge ")] ← 厳密に //*[contains(@class,"hoge")] ← 緩く
このブックマークにはスターがありません。
最初のスターをつけてみよう!
特定のclass属性を持った任意の要素にマッチするXPath | 3.14
結論特定のclass属性を持った任意の要素にマッチするXPath(hogeは指定したいclass属性名) //*[contains(concat(" ",normalize-space(@class)," "), " hoge ")] 特定の要素にしたい場合は適当に div[contains(conc...
120 人がブックマーク・23 件のコメント
\ コメントが サクサク読める アプリです /