Problem/Motivation

Webform module output submission data in multiple formats including HTML, plain text, and email using render array, tokens, and Twig. By default, Drupal 8 escapes all HTML tags, which is causing issues for plain text emails.

Proposed resolution

Write dedicated rendering tests

Remaining tasks

  • List all possible render scenarios
  • Document what is being rendered where
  • Make sure email is always consider SafeMarkup
  • Write dedicated test form
  • Clean update the Webform module rendering pipeline
  • Write tests
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jrockowitz created an issue. See original summary.

jrockowitz’s picture

Status: Active » Needs review
FileSize
4.52 KB

Status: Needs review » Needs work

The last submitted patch, 2: 2922896-rendering-tests-1-.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

jrockowitz’s picture

Status: Needs work » Needs review
FileSize
4.4 KB

  • jrockowitz committed 432b786 on 2922896-rendering-tests
    Issue #2922896: Write dedicated rendering tests
    

Status: Needs review » Needs work

The last submitted patch, 4: 2922896-rendering-tests-3.patch, failed testing. View results

  • jrockowitz committed bcae673 on 2922896-rendering-tests
    Issue #2922896: Write dedicated rendering tests
    
jrockowitz’s picture

Status: Needs work » Needs review
FileSize
0 bytes

Status: Needs review » Needs work

The last submitted patch, 8: 2922896-rendering-tests-8.patch, failed testing. View results

  • jrockowitz committed 0c7c684 on 2922896-rendering-tests
    Issue #2922896: Write dedicated rendering tests
    
jrockowitz’s picture

Status: Needs work » Needs review
FileSize
12.84 KB

Status: Needs review » Needs work

The last submitted patch, 11: 2922896-rendering-tests-11.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

  • jrockowitz committed c3cab53 on 2922896-rendering-tests
    Issue #2922896: Write dedicated rendering tests
    
jrockowitz’s picture

Status: Needs work » Needs review
FileSize
12.91 KB

Status: Needs review » Needs work

The last submitted patch, 14: 2922896-rendering-tests-14.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

  • jrockowitz committed bbd2d86 on 2922896-rendering-tests
    Issue #2922896: Write dedicated rendering tests
    
jrockowitz’s picture

Status: Needs work » Needs review
FileSize
31.06 KB

  • jrockowitz committed 97a4a02 on 2922896-rendering-tests
    Issue #2922896: Write dedicated rendering tests
    

  • jrockowitz committed dbe74ad on 2922896-rendering-tests
    Issue #2922896: Write dedicated rendering tests. Fix resend form.
    
jrockowitz’s picture

  • jrockowitz committed 71d3016 on 2922896-rendering-tests
    Issue #2922896: Write dedicated rendering tests. Allow handlers to...
jrockowitz’s picture

  • jrockowitz committed 979bf17 on 2922896-rendering-tests
    Issue #2922896: Write dedicated rendering tests. Write tests.
    
jrockowitz’s picture

Status: Needs review » Needs work

The last submitted patch, 24: 2922896-rendering-tests-24.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

jrockowitz’s picture

Status: Needs review » Needs work

The last submitted patch, 26: 2922896-rendering-tests-27.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

  • jrockowitz committed 19d32ff on 2922896-rendering-tests
    Issue #2922896: Write dedicated rendering tests. Write tests.
    
jrockowitz’s picture

Status: Needs work » Needs review
FileSize
52.26 KB

  • jrockowitz committed 0a7d1f0 on 8.x-5.x
    Issue #2922896 by jrockowitz: Write dedicated rendering tests
    
jrockowitz’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.