Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fix for "--" parsing in comments #31

Merged
merged 1 commit into from

2 participants

Mike Kamermans Atul Varma
Mike Kamermans
Owner

No description provided.

Atul Varma toolness merged commit 854f911 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 30, 2012
  1. comment parsing fix due to firefox rejecting createComment('--') and …

    U-MICHIELKAMECC18\Pomax authored
    …variations
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  slowparse.js
3  slowparse.js
View
@@ -1161,7 +1161,8 @@ var Slowparse = (function() {
// This method appends an HTML comment node to the currently active
// element.
comment: function(data, parseInfo) {
- var comment = this.document.createComment(data);
+ var comment = this.document.createComment('');
+ comment.nodeValue = data;
comment.parseInfo = parseInfo;
this.currentNode.appendChild(comment);
},
Something went wrong with that request. Please try again.