Skip to content

Commit

Permalink
updated submodule to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
darobin committed Feb 7, 2013
1 parent e608fa2 commit db947a5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
2 changes: 1 addition & 1 deletion resources
Submodule resources updated 6 files
+3 −0 .gitignore
+3 −0 .gitmodules
+0 −5,990 WebIDLParser.js
+50 −49 idlharness.js
+4 −1 readme.md
+1 −0 webidl2
32 changes: 20 additions & 12 deletions tools/coverage/get-analysis-for.phjs
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,27 @@ page.open(url, function (status) {
}

function getNodesForSection (section) {
var xpath, nodes = [];
// let me get all Kayessian on your arse!
if (section.end_id) {
// xpath = "id('" + section.original_id + "')/following-sibling::node()[count(.| id('" + section.end_id + "')/preceding-sibling::node())=count(id('" + section.end_id + "')/preceding-sibling::node())]";
xpath = "id('" + section.original_id + "')/following::node()[count(.| id('" + section.end_id + "')/preceding::node())=count(id('" + section.end_id + "')/preceding::node())]";
var range = document.createRange()
, start = document.getElementById(section.original_id)
;
if (start.parentNode.tagName.toLowerCase() === "div" && start.parentNode.classList.contains("impl")) {
start = start.parentNode;
}
else {
// xpath = "id('" + section.original_id + "')/following-sibling::node()";
xpath = "id('" + section.original_id + "')/following::node()";
}
var xpr = document.evaluate(xpath, document.documentElement, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
for (var j = 0, m = xpr.snapshotLength; j < m; j++) nodes.push(xpr.snapshotItem(j));
return nodes;
range.setStartBefore(start);

// var xpath, nodes = [];
// // let me get all Kayessian on your arse!
// if (section.end_id) {
// // xpath = "id('" + section.original_id + "')/following-sibling::node()[count(.| id('" + section.end_id + "')/preceding-sibling::node())=count(id('" + section.end_id + "')/preceding-sibling::node())]";
// xpath = "id('" + section.original_id + "')/following::node()[count(.| id('" + section.end_id + "')/preceding::node())=count(id('" + section.end_id + "')/preceding::node())]";
// }
// else {
// // xpath = "id('" + section.original_id + "')/following-sibling::node()";
// xpath = "id('" + section.original_id + "')/following::node()";
// }
// var xpr = document.evaluate(xpath, document.documentElement, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
// for (var j = 0, m = xpr.snapshotLength; j < m; j++) nodes.push(xpr.snapshotItem(j));
// return nodes;
}

function getClonesForSection (section) {
Expand Down

0 comments on commit db947a5

Please sign in to comment.