From: Lady Date: Wed, 17 Sep 2025 02:57:28 +0000 (-0400) Subject: Support attributes inside of links X-Git-Tag: 0.5.2^0 X-Git-Url: https://git.ladys.computer/LesML/commitdiff_plain/e019d7e868d8e966b99f4271ad8079aead5cec1aade1118fc69b7e748f207137?ds=inline;hp=66ea5e09600048125ec452b9a07bedf6f159ad48197f36c56fd8bc724ff4f279 Support attributes inside of links This commit changes the partitioning behaviour to allow for element nodes within the first part, assuming that the first part is not being restricted to an n·c·name. This is required to enable attribute specifiers inside of the text of links. Element nodes are still not allowed in the second part of the partition (the link target or attribute value). --- diff --git a/parser.xslt b/parser.xslt index 2ba0fd1..d9b2986 100644 --- a/parser.xslt +++ b/parser.xslt @@ -1056,42 +1056,73 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one - + - + - + + - - - - + + + + + + - + - - - + + + - + + + + + + + + + + + + + + + + + + + + + + + + + - + - + + + + + @@ -1115,9 +1146,12 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one + + + - + @@ -1128,7 +1162,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one - + @@ -1172,7 +1206,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one - + @@ -1278,11 +1312,11 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one - + - +