Skip to content

Commit

Permalink
Merge branch 'user_agent_embeddable_parser'
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Oct 7, 2014
2 parents 0062fd8 + d34c57c commit b405468
Show file tree
Hide file tree
Showing 29 changed files with 7,471 additions and 7,191 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
'use strict';

exports.Parser = require('./lib/tree_construction/parser');
exports.SimpleApiParser = require('./lib/simple_api/simple_api_parser');
exports.TreeSerializer = require('./lib/tree_serialization/tree_serializer');
exports.JsDomParser = require('./lib/jsdom/jsdom_parser');

exports.TreeAdapters = {
default: require('./lib/tree_adapters/default'),
Expand Down
6 changes: 4 additions & 2 deletions lib/common/foreign_content.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

var Tokenizer = require('../tokenization/tokenizer'),
HTML = require('./html');

Expand Down Expand Up @@ -189,8 +191,8 @@ exports.causesExit = function (startTagToken) {
var tn = startTagToken.tagName;

if (tn === $.FONT && (Tokenizer.getTokenAttr(startTagToken, ATTRS.COLOR) !== null ||
Tokenizer.getTokenAttr(startTagToken, ATTRS.SIZE) !== null ||
Tokenizer.getTokenAttr(startTagToken, ATTRS.FACE) !== null)) {
Tokenizer.getTokenAttr(startTagToken, ATTRS.SIZE) !== null ||
Tokenizer.getTokenAttr(startTagToken, ATTRS.FACE) !== null)) {
return true;
}

Expand Down
Loading

0 comments on commit b405468

Please sign in to comment.