[IE11 UI] Rendered long text area nested within apex:PageBlock will fill the empty text area with raw html code
Last updated 2022-02-10 ·Reference W-2084804 ·Reported By 91 users
Summary
Empty Long Text Area fields are rendered with raw html code . This happens only in IE 11
Repro
I simplfied the repro steps to following:
1, In UI, create a VF page by going to Setup -> Build -> Developer -> Pages -> New
2, Specify the page label/name and copy/paste the following code to Visualforce Markup
<apex:page standardController="Account" recordSetvar="accounts">
<apex:pageBlock title="Viewing Accounts">
<apex:form id="theForm">
<apex:pageBlockTable id="myTable" var="a" value="{!accounts}">
<apex:column headerValue="Col1">
<apex:outputField value="{!a.name}" />
</apex:column>
<apex:column headerValue="Col2">
<apex:inputField value="{!a.description}" />
</apex:column>
</apex:pageBlockTable>
<apex:commandButton reRender="myTable" value="reRender"/>
</apex:form>
</apex:pageBlock>
</apex:page>
3, Save and preview the page.
4, Assuming there are some accounts which didn't have any text in their desciption field. Click the rerender button at the bottom.
What actually happed is that the account's without values in their description field will be populated with some raw html text.
Workaround
-Make sure that the text area fields are always supplied a default value that is not blank. Note: when using certain values such as 0 and ' ' (blank space), the issue has been known to occur.
-Use inputText instead of inputField if possible
Reported By (91)















































Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.