Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conditional XSLT position not preserved #58

Open
sashafirsov opened this issue Jun 27, 2024 · 0 comments
Open

conditional XSLT position not preserved #58

sashafirsov opened this issue Jun 27, 2024 · 0 comments

Comments

@sashafirsov
Copy link
Member

When on subsequent render the IF condition added the content, instead of inline, it is added to the end.
image

<custom-element>
            <template>
                <form slice="email-form" custom-validity=" string-length(//slice/username) > 3 ??
                        concat('should be more than 3 characters, now is ',string-length(//slice/username) ) ">
                    <label> Email
                        <input name="email" slice="username" slice-event="input" placeholder="non-empty" required="">
                    </label>
                    <if test="//username/@validation-message">
                        <var>{//username/@validation-message}</var>
                    </if>
                    <button>Next</button>
                    <p>//email-form/@validation-message: {//email-form/@validation-message} </p>
                    <p>//slice/username: {//slice/username} </p>
                </form>
            </template>
        </custom-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant