I have the following html that I"m trying to input into visualforce. The challenge is that I have attributes within the tags and I get the below error. I'm having trouble getting this in the correct format for apex, while also maintaining the functionality of my code?

Error: Attribute name "ts-default" associated with an element type "th" must be followed by the ' = ' character.


<table class="table" ts-wrapper>
      <th ts-criteria="Id">Id</th>
      <th ts-criteria="Name|lowercase" ts-default>Name</th>
      <th ts-criteria="Price|parseFloat">Price</th>
      <th ts-criteria="Quantity|parseInt">Quantity</th>
    <tr ng-repeat="item in items track by item.Id" ts-repeat>
      <td>{{item.Price | currency}}</td>
  • Did you try ts-default="" and ts-wrapper=""
    – Shekhar
    Commented Dec 18, 2014 at 3:05
  • I assume you are inputting your HTML content inside <apex:outputText value="{!yourhtmlcontent}" escape="false" />. Please confirm.
    – a-learner
    Commented Dec 18, 2014 at 5:23

2 Answers 2


I guess its Boolean HTML attribute which is not supported by Visualforce, so you need to use ts-wrapper="true", So your table definition becomes <table class="table" ts-wrapper="true">


Here is a explanation on how to use custom HTML attributes in Visualforce. http://www.salesforce.com/docs/developer/pages/Content/pages_html_features_pass_through_attributes.htm

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .