Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[5.x] Fix nocache tag not replacing element correctly#13177

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
duncanmcclean wants to merge1 commit into5.x
base:5.x
Choose a base branch
Loading
fromnocache-js

Conversation

@duncanmcclean
Copy link
Member

This pull request fixes an issue caused by#12929, where the nocache tag wasn't replacing the<span> element as expected.

In my testing, this PR seems to fix both issues, in addition to supporting shadow root elements (which the previous PR added support for).

This is the template I was testing with:

{{nocache }}    <pclass="mb-6">only element</p>{{/nocache }}<ulclass="flex items-center mb-6">    {{nocache }}        {{nav:header }}            <li>                <aclass="py-1.5 px-3 rounded-md {{ifis_current }} bg-white font-medium {{else }} text-blue-600 hover:bg-white {{/if }}"href="{{url }}">{{title }}</a>            </li>        {{/nav:header }}    {{/nocache }}</ul>{{nocache }}    <div>        <templateshadowrootmode="open">...</template>    </div>{{/nocache }}

Fixes#13114
Fixes#13141

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Script tags are not evaluated inside nocache tags when using full-measure caching Since v5.69nocache Tags are not _replaced_ but kept in the markup

2 participants

@duncanmcclean

[8]ページ先頭

©2009-2025 Movatter.jp