Skip to content

HTML compliant CTE support#5483

Merged
jhefferman-sfdc merged 17 commits intomasterfrom
jhefferman/cte-html-compliance
Sep 10, 2025
Merged

HTML compliant CTE support#5483
jhefferman-sfdc merged 17 commits intomasterfrom
jhefferman/cte-html-compliance

Conversation

@jhefferman-sfdc
Copy link
Contributor

@jhefferman-sfdc jhefferman-sfdc commented Sep 8, 2025

Details

Reworked CTE implementation with HTML compliant syntax:

  • Removed custom parse5 implementation which was required for non-compliant expression syntax
  • Implemented requirement to use "{}" syntax for attribute expressions to retain html compliance
  • Additional validation
  • Additional coverage

For additional understanding on why this change was made, see the KT by Dale Bustad: https://docs.google.com/document/d/1K52FRJuJqAbyA-rVXfeGSZ3SHJRNCXog7Qwfk2BSB9s/edit?tab=t.6clsnsapoml8#heading=h.r2ozu3q610ub

Does this pull request introduce a breaking change?

  • 😮‍💨 No, it does not introduce a breaking change.

Does this pull request introduce an observable change?

  • 🤞 No, it does not introduce an observable change.

GUS work item

W-16824701

@jhefferman-sfdc jhefferman-sfdc requested a review from a team as a code owner September 8, 2025 16:23
@jhefferman-sfdc jhefferman-sfdc changed the title HTML compliant complex template expression support HTML compliant CTE support Sep 8, 2025
@jhefferman-sfdc
Copy link
Contributor Author

/nucleus ignore -m "unrelated failure"

@jmsjtu jmsjtu requested a review from ekashida September 9, 2025 16:57
$cmp.state.isTrue
? api_text(api_dynamic_text($cmp.foo) + api_dynamic_text($cmp.bar))
? api_text(
api_dynamic_text($cmp.foo) + " " + api_dynamic_text($cmp.bar)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jmsjtu - you asked about this in the PR review. I double checked and this expected output now aligns with what the legacy expression parser produces. In other words, it is now correct and it was incorrect before this change.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just wanna say hi to the future person coming here because of an investigation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the contrary! The very existence of this change means such an investigation may never occur!

@jhefferman-sfdc
Copy link
Contributor Author

/nucleus ignore -m "unrelated failure"

@salesforce-nucleus
Copy link
Contributor

⚠ The test stage has a status of running, which cannot be ignored.

@jhefferman-sfdc
Copy link
Contributor Author

/nucleus ignore -m "unrelated failures"

@jhefferman-sfdc jhefferman-sfdc merged commit 4bf3be7 into master Sep 10, 2025
6 checks passed
@jhefferman-sfdc jhefferman-sfdc deleted the jhefferman/cte-html-compliance branch September 10, 2025 17:41
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.

2 participants