XPath different between 1.12.8 and 2.0.8

24 views
Skip to first unread message

Kevin See

unread,
Feb 26, 2015, 1:59:10 AM2/26/15
to fir...@googlegroups.com
I have a html document that has
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<meta content="IE=EmulateIE8" http-equiv="X-UA-Compatible">
<title>
   xxxxxxxx  - Default Folder
</title>
<link href="./favicon.ico" rel="shortcut icon">
<link href="./favicon.ico" rel="icon">
<link type="text/css" href="dojo/oneui/themes/oneui/oneui.css" rel="Stylesheet">
<link type="text/css" href="dojo/dijit/themes/claro/claro.css" rel="Stylesheet">
<link type="text/css" href="dojo/ibm/security/appscan/themes/common.css" rel="Stylesheet">
<link rel="stylesheet" type="text/css" href="App_Themes/Default/aurora_styles.css">

<style type="text/css">
    .ctl00_ctl00_ctl00_MCH_LCH_FolderTree__folderTree_0 { text-decoration:none; }
    .ctl00_ctl00_ctl00_MCH_LCH_FolderTree__folderTree_1 { padding:0px 5px 0px 5px; }
    .ctl00_ctl00_ctl00_MCH_LCH_FolderTree__folderTree_2 { font-weight:bold; }
    .ctl00_ctl00_ctl00_MCH_LCH_FolderTree__folderTree_3 { background-color:#DEDEE5; }

</style>
</head>

Notice there is only 1 style element in the head section.

On the html subpanel of the firebug, I select the style element and right click for Copy XPath, I see different values between the 2 versions.
On firebug 1.12.8, the copied XPath for the style element above is /html/head/style
On firebug 2.0.8, the copied XPath for the style element above is /html/head/style[1].

Since there is no other sibling of the same node type, I would expected /html/head/style according to XPath 2.0 specification.

Did I miss anything here?

Thanks.

Kevin
Reply all
Reply to author
Forward
0 new messages