Skip to content

Commit

Permalink
* xover.fetch.xml - fixed xo-slot for search inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
uriel-online committed Mar 8, 2024
1 parent 4aef289 commit 0cdbe91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xo.js
Original file line number Diff line number Diff line change
Expand Up @@ -9002,7 +9002,7 @@ ${el.select(`ancestor::xsl:template[1]/@*`).map(attr => `${attr.name}="${new Tex
}

for (let el of return_value.select(`(//xsl:template[not(@match="/")]//html:*[not(self::html:script or self::html:style or self::html:link)]|//svg:*[not(ancestor::svg:*)])[not(@xo-source or @xo-stylesheet or ancestor-or-self::*[@xo-slot or @xo-scope])]`)) {
el.set("xo-slot", (el.getAttribute("type") == "search" ? "search:{local-" : "{") + "name(current()[not(self::*)])}")
el.set("xo-slot", (el.getAttribute("type") == "search" ? "search:{local-" : "{") + "name(current())}")
}

for (let el of return_value.select(`//xsl:template[not(.//xsl:param/@name="xo:context") and not(.//xsl:variable/@name="xo:context")]`)) {
Expand Down

0 comments on commit 0cdbe91

Please sign in to comment.