htmlparser2#Tokenizer.prototype._stateInNamedEntity bug
来源:互联网 发布:网络自动化运维工具 编辑:程序博客网 时间:2024/05/22 01:17
source:
Tokenizer.prototype._stateInNamedEntity = function(c){ if(c === ";"){ this._parseNamedEntityStrict(); if(this._sectionStart + 1 < this._index && !this._xmlMode){ this._parseLegacyEntity(); } this._state = this._baseState; } else if((c < "a" || c > "z") && (c < "A" || c > "Z") && (c < "0" || c > "9")){ if(this._xmlMode); else if(this._sectionStart + 1 === this._index); else if(this._baseState !== TEXT){ if( c !== "="){ this._parseNamedEntityStrict(); // this is a bug line. } } else { this._parseLegacyEntity(); } this._state = this._baseState; this._index--; }};
input: &trade_type=xxx, the c is "_",
output: ™type=xxx
fix: if((c < "a" || c > "z") && (c < "A" || c > "Z") && (c < "0" || c > "9"))
and c !== "="
do nothing!
0 0
- htmlparser2#Tokenizer.prototype._stateInNamedEntity bug
- tokenizer
- boost tokenizer
- boost tokenizer
- 19、Tokenizer
- boost::tokenizer
- boost tokenizer
- tokenizer.h
- Prototype 1.5.1 中的一处Bug
- Node.js第三方模块之htmlparser2
- Node.js第三方模块之htmlparser2
- prototype对于标签定位的一些BUG [摘]
- Bug of Element.removeClassName() in prototype.lite.js
- Boost tokenizer examples
- [转载]boost tokenizer
- Boost学习笔记-tokenizer
- Tokenizer and TokenFilter 区别
- Boost Tokenizer 使用介绍
- C#使用StackTrace获取方法被谁调用
- tomcat内置数据源(内置了dbcp数据源)
- 2-SAT——POJ3678
- 二.远程登录
- Xcode5中如何切换Storyboards为xib
- htmlparser2#Tokenizer.prototype._stateInNamedEntity bug
- JAVA 中HashMap详细介绍和示例
- 百度地图定位和路线规划
- Python的pyc文件
- web项目中log4j的配置
- DES+Base64 加密、解密
- 预处理命令详解
- 辗转相除法
- JSF html标签字符进行转义