Skip to content

Commit

Permalink
[tokenizer] renamed _emitEntity to _emitPartial
Browse files Browse the repository at this point in the history
  • Loading branch information
fb55 committed Aug 18, 2013
1 parent f46765d commit 389102d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Tokenizer.js
Expand Up @@ -466,7 +466,7 @@ Tokenizer.prototype._parseNamedEntityStrict = function(){
map = this._xmlMode ? xmlMap : entityMap;

if(map.hasOwnProperty(entity)){
this._emitEntity(map[entity]);
this._emitPartial(map[entity]);
this._sectionStart = this._index + 1;
}
}
Expand All @@ -484,7 +484,7 @@ Tokenizer.prototype._parseLegacyEntity = function(){
var entity = this._buffer.substr(start, limit);

if(legacyMap.hasOwnProperty(entity)){
this._emitEntity(legacyMap[entity]);
this._emitPartial(legacyMap[entity]);
this._sectionStart += limit + 2;
break;
} else {
Expand Down Expand Up @@ -551,7 +551,7 @@ Tokenizer.prototype._decodeNumericEntity = function(offset, base){
var parsed = parseInt(entity, base);

if(parsed === parsed){ //not NaN (TODO: when can this happen?)
this._emitEntity(decodeCodePoint(parsed));
this._emitPartial(decodeCodePoint(parsed));
this._sectionStart = this._index;
}
}
Expand Down Expand Up @@ -872,7 +872,7 @@ Tokenizer.prototype._emitToken = function(name){
this._sectionStart = -1;
};

Tokenizer.prototype._emitEntity = function(value){
Tokenizer.prototype._emitPartial = function(value){
/*if(
this._baseState === IN_ATTRIBUTE_VALUE_NQ ||
this._baseState === IN_ATTRIBUTE_VALUE_SQ ||
Expand Down

0 comments on commit 389102d

Please sign in to comment.