Skip to content

xpath 不支持 //p[@class='class'][1]  #217

Description

@seveniu
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head> 
        <title>title</title> 
    </head> 
    <body> 
        <p class="c">p1</p>
        <p class="c">p2</p>
    </body>
</html>

xpath : "//p[@Class='c'][1]"

在 chrome 下 用 $x("//p[@Class='c'][1]")可以正确找到
但是 webmagic 不能

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions