Skip to content

[mayaa-user:1087] 独自プロセッサーを使うとエラーが発生する場合がある #97

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

Merged
merged 1 commit into from
Feb 19, 2023

Conversation

mitonize
Copy link
Collaborator

Fixes #13

下記のようにInformalPropertyの属性値として埋め込まれている場合に変数の文字列化に影響があった。
ElementProcessor.getInformalExpectedClass() を明示的に実装し、文字列を指定することで解決。

HTMLソース

<!-- ${ var nine = 9; } -->
<span class="script${nine}" data-value="${ nine }">${ nine }</span>
<!-- ${ var ten = 9; ten++; ""} -->
<span class="script${ten}" data-value="${ ten }">${ ten }</span>

Mayaa生成後(問題解消前)

<!--  -->
<span class="script9" data-value="9">9</span>
<!--  -->
<span class="script10.0" data-value="10.0">10</span>

Mayaa生成後(問題解消後)

<!--  -->
<span class="script9" data-value="9">9</span>
<!--  -->
<span class="script10" data-value="10">10</span>

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

Successfully merging this pull request may close these issues.

[mayaa-user:1087] 独自プロセッサーを使うとエラーが発生する場合がある
1 participant