From 169ba0d2d13a4cce0f1b1f8a98b357c80e52b0a6 Mon Sep 17 00:00:00 2001 From: Adam Bem Date: Wed, 22 Feb 2023 13:52:32 +0100 Subject: [PATCH] Fixed various bugs with tooltips --- Frontend/tools/xpath.html | 149 +++++++++++++++++++++----------------- 1 file changed, 83 insertions(+), 66 deletions(-) diff --git a/Frontend/tools/xpath.html b/Frontend/tools/xpath.html index cf21fe5..14deda7 100644 --- a/Frontend/tools/xpath.html +++ b/Frontend/tools/xpath.html @@ -64,17 +64,19 @@

What is XPath?

-

XPath is a querry language used for selecting nodes from XML and processing them.
+

XPath is a query language used for selecting nodes from XML and processing them.
It may perform operations on strings, numbers and boolean values.

- + + +

XPath 2.0 introduced many new features XQuery-cośtam:
- Added support for all XML simple types
- - Many new functions (trippled instruction count)
+ - Many new functions (tripled instruction count)
- All expressions evaluate to sequence
- Introduces conditional expressions and for-loops

@@ -82,14 +84,14 @@ - Dynamic function calls (function may be called without being referenced by name (find function in collection and call)
- Inline functions
- - Namespace literals - Namespace may be embeded into function name
+ - Namespace literals - Namespace may be embedded into function name
- Support for union types - collections containing elements of different types
- Mapping operator - '!' performs evaluation for each element in sequence and concatenates results
- Introduced maps

XPath 3.1
- - New operator for function chaing '=>'
+ - New operator for function chaining '=>'
- Introduced maps that store data in pair 'key:value' - 'map{ key : value, key : value }'
- Introduced arrays - they differ from sequences in that they can be nested 'array{1, 5, 7, @@ -106,7 +108,9 @@

- + + +
@@ -335,7 +339,9 @@
- + + +
@@ -3000,71 +3006,75 @@
- -
+ + +
+ -
- - - [3.0] fn:for-each(sequence*, function) +
-
- Applies function item to every element in sequence
-
- W3C Documentation reference: #func-for-each -
-
- + + [3.0] fn:for-each(sequence*, function) +
+
+ Applies function item to every element in sequence
+
+ W3C Documentation reference: #func-for-each +
+
+
- - [3.0] fn:for-each-pair(sequence*, sequence*, function) -
-
- Applies the function to consecutive pairs of elements taken from sequences
-
- W3C Documentation reference: #func-for-each-pair -
-
-
+ + [3.0] fn:for-each-pair(sequence*, sequence*, function) +
+
+ Applies the function to consecutive pairs of elements taken from sequences
+
+ W3C Documentation reference: #func-for-each-pair +
+
+
- - [3.0] fn:fold-left(sequence*, baseValue, function) -
-
- Applies function item to every element in sequence, accumulating value
-
- W3C Documentation reference: #func-fold-left -
-
-
+ + [3.0] fn:fold-left(sequence*, baseValue, function) +
+
+ Applies function item to every element in sequence, accumulating value
+
+ W3C Documentation reference: #func-fold-left +
+
+
- - [3.0] fn:fold-right() -
-
- Applies function item to every element in sequence, accumulating value
-
- W3C Documentation reference: #func-fold-right -
-
-
+ + [3.0] fn:fold-right() +
+
+ Applies function item to every element in sequence, accumulating value
+
+ W3C Documentation reference: #func-fold-right +
+
+
- - [3.0] fn:filter(sequence*, function) -
-
- Returns those items from the sequence for which the supplied function returns true
-
- W3C Documentation reference: #func-filter -
+ + [3.0] fn:filter(sequence*, function) +
+
+ Returns those items from the sequence for which the supplied function returns true
+
+ W3C Documentation reference: #func-filter +
+
+
-
+
@@ -3171,7 +3181,14 @@ console.log("trigger connected"); triggerList[i].addEventListener("click", function () { var collapsible = this.parentElement; - var collapsibleData = this.nextElementSibling; + if (this.tagName == "A") { + var collapsibleData = this.nextElementSibling; + } else { + var collapsibleData = this.parentElement.nextElementSibling; + + } + + console.log(collapsibleData); if (collapsibleData.style.maxHeight > "0px") { collapsibleData.style.maxHeight = "0px";