Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Closes #8 supporting <em> and <strong> elements

  • Loading branch information...
commit 6d34ad76c2e47bceb40b1f68d44087787b8aca03 1 parent 048676d
@erikvold erikvold authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 specs/template_spec.js
  2. +1 −1  src/Node.js
  3. +1 −1  src/Template.js
View
4 specs/template_spec.js
@@ -11,7 +11,7 @@ describe("Jaml.Template", function() {
meta(), script(), title(), link()
),
body(
- div(), p(), span(), a(), img(),
+ div(), p(), em(), strong(), span(), a(), img(),
br(), hr(),
table(
thead(tr(th())),
@@ -37,7 +37,7 @@ describe("Jaml.Template", function() {
" <meta/>\n <script></script>\n <title/>\n <link/>\n" +
" </head>\n" +
" <body>\n" +
- " <div/>\n <p/>\n <span/>\n <a/>\n <img/>\n" +
+ " <div/>\n <p/>\n <em></em>\n <strong></strong>\n <span/>\n <a/>\n <img/>\n" +
" <br/>\n <hr/>\n" +
" <table>\n" +
" <thead>\n <tr>\n <th/>\n </tr>\n </thead>\n" +
View
2  src/Node.js
@@ -153,7 +153,7 @@ Jaml.Node.prototype = {
* @type Array
* An array of all tags that should be self closing
*/
- notSelfClosingTags: ['textarea', 'script']
+ notSelfClosingTags: ['textarea', 'script', 'em', 'strong']
};
Jaml.TextNode = function(text) {
View
2  src/Template.js
@@ -72,7 +72,7 @@ Jaml.Template.prototype = {
tags: [
"html", "head", "body", "script", "meta", "title", "link",
- "div", "p", "span", "a", "img", "br", "hr",
+ "div", "p", "span", "a", "img", "br", "hr", "em", "strong",
"table", "tr", "th", "td", "thead", "tbody", "tfoot",
"ul", "ol", "li",
"dl", "dt", "dd",
Please sign in to comment.
Something went wrong with that request. Please try again.