Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Commits on May 16, 2012
@gwicke gwicke Issue #60: Reset open_elements and activeFormattingElements f5f4ff4
@aredridel Merge pull request #61 from gwicke/master
Issue #60: Reset open_elements and activeFormattingElements
cff22f0
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/html5/treebuilder.js
View
6 lib/html5/treebuilder.js
@@ -3,13 +3,13 @@ var HTML5 = require('../html5');
var assert = require('assert');
var b = HTML5.TreeBuilder = function TreeBuilder(document) {
- this.open_elements = [];
this.document = document;
- this.activeFormattingElements = [];
+ this.reset();
}
b.prototype.reset = function() {
-
+ this.open_elements = [];
+ this.activeFormattingElements = [];
}
b.prototype.copyAttributeToElement = function(element, attribute) {

No commit comments for this range

Something went wrong with that request. Please try again.