You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Udo Schnurpfeil (JIRA)" <de...@myfaces.apache.org> on 2013/11/18 11:03:21 UTC

[jira] [Created] (TOBAGO-1346) JSON friendly HTML code (change " with ' for attributes)

Udo Schnurpfeil created TOBAGO-1346:
---------------------------------------

             Summary: JSON friendly HTML code (change " with ' for attributes)
                 Key: TOBAGO-1346
                 URL: https://issues.apache.org/jira/browse/TOBAGO-1346
             Project: MyFaces Tobago
          Issue Type: Improvement
          Components: Themes
            Reporter: Udo Schnurpfeil
            Assignee: Udo Schnurpfeil


Changing the string borders of attributes in HTML from
  foo="bar"
to
  foo='bar'
makes it shorter and easier to read, when the attributes value is JSON.

Example:
data-tobago-commands="{&quot;resize&quot;:{&quot;action&quot;:&quot;page:j_id_3&quot;}}"
vs.
data-tobago-commands='{"resize":{"action":"page:j_id_3"}}'




--
This message was sent by Atlassian JIRA
(v6.1#6144)