Skip to content

Commit

Permalink
Correctly deal with invalid content in non-selfclosing tags. Fixes le…
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcw committed Sep 11, 2013
1 parent 2ead8da commit 5938ebb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/carto/tree/definition.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ tree.Definition.prototype.symbolizersToXML = function(env, symbolizers, zoom) {
}
if (selfclosing) {
xml += '/>\n';
} else {
} else if (tagcontent) {
if (tagcontent.indexOf('<') != -1) {
xml += '>' + tagcontent + '</' + name + '>\n';
} else {
Expand Down
4 changes: 4 additions & 0 deletions test/errorhandling/issue297.mss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#t {
text-name: invalid;
text-face-name: "Dejagnu";
}
1 change: 1 addition & 0 deletions test/errorhandling/issue297.result
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
issue297.mss:2:2 Invalid value for text-name, the type expression is expected. invalid (of type keyword) was given.

0 comments on commit 5938ebb

Please sign in to comment.