function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Re-rendering removing SVG-USE tags from Visualforce page with SLDS


I'm using Salesforce Lightning Design System with a Visualforce page and using <svg> tag to get SLDS Icons on Page header and Buttons. Initially on page load all works fine but when I try to re-render any <apex:outputPanel> that have <svg> icons inside it, on complete of rerendering it vanish my all <svg> icons.
I tried to debbug it by Inspect element in chrome and found after re-rendering any block my <svg> icon tags are not there.

anyone else experiencing this issue?

Any advise or guidance would be greatly appreciated.

Dan Cobb 3Dan Cobb 3
Did you ever find a solution for this? I am experiencing the same issue.
Magesh Mani YadavMagesh Mani Yadav
Hi thatherahere,
Just set your apex:page attribute docType="html-5.0" and this will fix the rerender SVG bug