You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2016/08/01 22:22:35 UTC
[16/61] [abbrv] [partial] cordova-create git commit: gitignore node
modules
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/lib/Tokenizer.js
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/lib/Tokenizer.js b/node_modules/htmlparser2/lib/Tokenizer.js
deleted file mode 100644
index ec013c1..0000000
--- a/node_modules/htmlparser2/lib/Tokenizer.js
+++ /dev/null
@@ -1,906 +0,0 @@
-module.exports = Tokenizer;
-
-var decodeCodePoint = require("entities/lib/decode_codepoint.js"),
- entityMap = require("entities/maps/entities.json"),
- legacyMap = require("entities/maps/legacy.json"),
- xmlMap = require("entities/maps/xml.json"),
-
- i = 0,
-
- TEXT = i++,
- BEFORE_TAG_NAME = i++, //after <
- IN_TAG_NAME = i++,
- IN_SELF_CLOSING_TAG = i++,
- BEFORE_CLOSING_TAG_NAME = i++,
- IN_CLOSING_TAG_NAME = i++,
- AFTER_CLOSING_TAG_NAME = i++,
-
- //attributes
- BEFORE_ATTRIBUTE_NAME = i++,
- IN_ATTRIBUTE_NAME = i++,
- AFTER_ATTRIBUTE_NAME = i++,
- BEFORE_ATTRIBUTE_VALUE = i++,
- IN_ATTRIBUTE_VALUE_DQ = i++, // "
- IN_ATTRIBUTE_VALUE_SQ = i++, // '
- IN_ATTRIBUTE_VALUE_NQ = i++,
-
- //declarations
- BEFORE_DECLARATION = i++, // !
- IN_DECLARATION = i++,
-
- //processing instructions
- IN_PROCESSING_INSTRUCTION = i++, // ?
-
- //comments
- BEFORE_COMMENT = i++,
- IN_COMMENT = i++,
- AFTER_COMMENT_1 = i++,
- AFTER_COMMENT_2 = i++,
-
- //cdata
- BEFORE_CDATA_1 = i++, // [
- BEFORE_CDATA_2 = i++, // C
- BEFORE_CDATA_3 = i++, // D
- BEFORE_CDATA_4 = i++, // A
- BEFORE_CDATA_5 = i++, // T
- BEFORE_CDATA_6 = i++, // A
- IN_CDATA = i++, // [
- AFTER_CDATA_1 = i++, // ]
- AFTER_CDATA_2 = i++, // ]
-
- //special tags
- BEFORE_SPECIAL = i++, //S
- BEFORE_SPECIAL_END = i++, //S
-
- BEFORE_SCRIPT_1 = i++, //C
- BEFORE_SCRIPT_2 = i++, //R
- BEFORE_SCRIPT_3 = i++, //I
- BEFORE_SCRIPT_4 = i++, //P
- BEFORE_SCRIPT_5 = i++, //T
- AFTER_SCRIPT_1 = i++, //C
- AFTER_SCRIPT_2 = i++, //R
- AFTER_SCRIPT_3 = i++, //I
- AFTER_SCRIPT_4 = i++, //P
- AFTER_SCRIPT_5 = i++, //T
-
- BEFORE_STYLE_1 = i++, //T
- BEFORE_STYLE_2 = i++, //Y
- BEFORE_STYLE_3 = i++, //L
- BEFORE_STYLE_4 = i++, //E
- AFTER_STYLE_1 = i++, //T
- AFTER_STYLE_2 = i++, //Y
- AFTER_STYLE_3 = i++, //L
- AFTER_STYLE_4 = i++, //E
-
- BEFORE_ENTITY = i++, //&
- BEFORE_NUMERIC_ENTITY = i++, //#
- IN_NAMED_ENTITY = i++,
- IN_NUMERIC_ENTITY = i++,
- IN_HEX_ENTITY = i++, //X
-
- j = 0,
-
- SPECIAL_NONE = j++,
- SPECIAL_SCRIPT = j++,
- SPECIAL_STYLE = j++;
-
-function whitespace(c){
- return c === " " || c === "\n" || c === "\t" || c === "\f" || c === "\r";
-}
-
-function characterState(char, SUCCESS){
- return function(c){
- if(c === char) this._state = SUCCESS;
- };
-}
-
-function ifElseState(upper, SUCCESS, FAILURE){
- var lower = upper.toLowerCase();
-
- if(upper === lower){
- return function(c){
- if(c === lower){
- this._state = SUCCESS;
- } else {
- this._state = FAILURE;
- this._index--;
- }
- };
- } else {
- return function(c){
- if(c === lower || c === upper){
- this._state = SUCCESS;
- } else {
- this._state = FAILURE;
- this._index--;
- }
- };
- }
-}
-
-function consumeSpecialNameChar(upper, NEXT_STATE){
- var lower = upper.toLowerCase();
-
- return function(c){
- if(c === lower || c === upper){
- this._state = NEXT_STATE;
- } else {
- this._state = IN_TAG_NAME;
- this._index--; //consume the token again
- }
- };
-}
-
-function Tokenizer(options, cbs){
- this._state = TEXT;
- this._buffer = "";
- this._sectionStart = 0;
- this._index = 0;
- this._bufferOffset = 0; //chars removed from _buffer
- this._baseState = TEXT;
- this._special = SPECIAL_NONE;
- this._cbs = cbs;
- this._running = true;
- this._ended = false;
- this._xmlMode = !!(options && options.xmlMode);
- this._decodeEntities = !!(options && options.decodeEntities);
-}
-
-Tokenizer.prototype._stateText = function(c){
- if(c === "<"){
- if(this._index > this._sectionStart){
- this._cbs.ontext(this._getSection());
- }
- this._state = BEFORE_TAG_NAME;
- this._sectionStart = this._index;
- } else if(this._decodeEntities && this._special === SPECIAL_NONE && c === "&"){
- if(this._index > this._sectionStart){
- this._cbs.ontext(this._getSection());
- }
- this._baseState = TEXT;
- this._state = BEFORE_ENTITY;
- this._sectionStart = this._index;
- }
-};
-
-Tokenizer.prototype._stateBeforeTagName = function(c){
- if(c === "/"){
- this._state = BEFORE_CLOSING_TAG_NAME;
- } else if(c === ">" || this._special !== SPECIAL_NONE || whitespace(c)) {
- this._state = TEXT;
- } else if(c === "!"){
- this._state = BEFORE_DECLARATION;
- this._sectionStart = this._index + 1;
- } else if(c === "?"){
- this._state = IN_PROCESSING_INSTRUCTION;
- this._sectionStart = this._index + 1;
- } else if(c === "<"){
- this._cbs.ontext(this._getSection());
- this._sectionStart = this._index;
- } else {
- this._state = (!this._xmlMode && (c === "s" || c === "S")) ?
- BEFORE_SPECIAL : IN_TAG_NAME;
- this._sectionStart = this._index;
- }
-};
-
-Tokenizer.prototype._stateInTagName = function(c){
- if(c === "/" || c === ">" || whitespace(c)){
- this._emitToken("onopentagname");
- this._state = BEFORE_ATTRIBUTE_NAME;
- this._index--;
- }
-};
-
-Tokenizer.prototype._stateBeforeCloseingTagName = function(c){
- if(whitespace(c));
- else if(c === ">"){
- this._state = TEXT;
- } else if(this._special !== SPECIAL_NONE){
- if(c === "s" || c === "S"){
- this._state = BEFORE_SPECIAL_END;
- } else {
- this._state = TEXT;
- this._index--;
- }
- } else {
- this._state = IN_CLOSING_TAG_NAME;
- this._sectionStart = this._index;
- }
-};
-
-Tokenizer.prototype._stateInCloseingTagName = function(c){
- if(c === ">" || whitespace(c)){
- this._emitToken("onclosetag");
- this._state = AFTER_CLOSING_TAG_NAME;
- this._index--;
- }
-};
-
-Tokenizer.prototype._stateAfterCloseingTagName = function(c){
- //skip everything until ">"
- if(c === ">"){
- this._state = TEXT;
- this._sectionStart = this._index + 1;
- }
-};
-
-Tokenizer.prototype._stateBeforeAttributeName = function(c){
- if(c === ">"){
- this._cbs.onopentagend();
- this._state = TEXT;
- this._sectionStart = this._index + 1;
- } else if(c === "/"){
- this._state = IN_SELF_CLOSING_TAG;
- } else if(!whitespace(c)){
- this._state = IN_ATTRIBUTE_NAME;
- this._sectionStart = this._index;
- }
-};
-
-Tokenizer.prototype._stateInSelfClosingTag = function(c){
- if(c === ">"){
- this._cbs.onselfclosingtag();
- this._state = TEXT;
- this._sectionStart = this._index + 1;
- } else if(!whitespace(c)){
- this._state = BEFORE_ATTRIBUTE_NAME;
- this._index--;
- }
-};
-
-Tokenizer.prototype._stateInAttributeName = function(c){
- if(c === "=" || c === "/" || c === ">" || whitespace(c)){
- this._cbs.onattribname(this._getSection());
- this._sectionStart = -1;
- this._state = AFTER_ATTRIBUTE_NAME;
- this._index--;
- }
-};
-
-Tokenizer.prototype._stateAfterAttributeName = function(c){
- if(c === "="){
- this._state = BEFORE_ATTRIBUTE_VALUE;
- } else if(c === "/" || c === ">"){
- this._cbs.onattribend();
- this._state = BEFORE_ATTRIBUTE_NAME;
- this._index--;
- } else if(!whitespace(c)){
- this._cbs.onattribend();
- this._state = IN_ATTRIBUTE_NAME;
- this._sectionStart = this._index;
- }
-};
-
-Tokenizer.prototype._stateBeforeAttributeValue = function(c){
- if(c === "\""){
- this._state = IN_ATTRIBUTE_VALUE_DQ;
- this._sectionStart = this._index + 1;
- } else if(c === "'"){
- this._state = IN_ATTRIBUTE_VALUE_SQ;
- this._sectionStart = this._index + 1;
- } else if(!whitespace(c)){
- this._state = IN_ATTRIBUTE_VALUE_NQ;
- this._sectionStart = this._index;
- this._index--; //reconsume token
- }
-};
-
-Tokenizer.prototype._stateInAttributeValueDoubleQuotes = function(c){
- if(c === "\""){
- this._emitToken("onattribdata");
- this._cbs.onattribend();
- this._state = BEFORE_ATTRIBUTE_NAME;
- } else if(this._decodeEntities && c === "&"){
- this._emitToken("onattribdata");
- this._baseState = this._state;
- this._state = BEFORE_ENTITY;
- this._sectionStart = this._index;
- }
-};
-
-Tokenizer.prototype._stateInAttributeValueSingleQuotes = function(c){
- if(c === "'"){
- this._emitToken("onattribdata");
- this._cbs.onattribend();
- this._state = BEFORE_ATTRIBUTE_NAME;
- } else if(this._decodeEntities && c === "&"){
- this._emitToken("onattribdata");
- this._baseState = this._state;
- this._state = BEFORE_ENTITY;
- this._sectionStart = this._index;
- }
-};
-
-Tokenizer.prototype._stateInAttributeValueNoQuotes = function(c){
- if(whitespace(c) || c === ">"){
- this._emitToken("onattribdata");
- this._cbs.onattribend();
- this._state = BEFORE_ATTRIBUTE_NAME;
- this._index--;
- } else if(this._decodeEntities && c === "&"){
- this._emitToken("onattribdata");
- this._baseState = this._state;
- this._state = BEFORE_ENTITY;
- this._sectionStart = this._index;
- }
-};
-
-Tokenizer.prototype._stateBeforeDeclaration = function(c){
- this._state = c === "[" ? BEFORE_CDATA_1 :
- c === "-" ? BEFORE_COMMENT :
- IN_DECLARATION;
-};
-
-Tokenizer.prototype._stateInDeclaration = function(c){
- if(c === ">"){
- this._cbs.ondeclaration(this._getSection());
- this._state = TEXT;
- this._sectionStart = this._index + 1;
- }
-};
-
-Tokenizer.prototype._stateInProcessingInstruction = function(c){
- if(c === ">"){
- this._cbs.onprocessinginstruction(this._getSection());
- this._state = TEXT;
- this._sectionStart = this._index + 1;
- }
-};
-
-Tokenizer.prototype._stateBeforeComment = function(c){
- if(c === "-"){
- this._state = IN_COMMENT;
- this._sectionStart = this._index + 1;
- } else {
- this._state = IN_DECLARATION;
- }
-};
-
-Tokenizer.prototype._stateInComment = function(c){
- if(c === "-") this._state = AFTER_COMMENT_1;
-};
-
-Tokenizer.prototype._stateAfterComment1 = function(c){
- if(c === "-"){
- this._state = AFTER_COMMENT_2;
- } else {
- this._state = IN_COMMENT;
- }
-};
-
-Tokenizer.prototype._stateAfterComment2 = function(c){
- if(c === ">"){
- //remove 2 trailing chars
- this._cbs.oncomment(this._buffer.substring(this._sectionStart, this._index - 2));
- this._state = TEXT;
- this._sectionStart = this._index + 1;
- } else if(c !== "-"){
- this._state = IN_COMMENT;
- }
- // else: stay in AFTER_COMMENT_2 (`--->`)
-};
-
-Tokenizer.prototype._stateBeforeCdata1 = ifElseState("C", BEFORE_CDATA_2, IN_DECLARATION);
-Tokenizer.prototype._stateBeforeCdata2 = ifElseState("D", BEFORE_CDATA_3, IN_DECLARATION);
-Tokenizer.prototype._stateBeforeCdata3 = ifElseState("A", BEFORE_CDATA_4, IN_DECLARATION);
-Tokenizer.prototype._stateBeforeCdata4 = ifElseState("T", BEFORE_CDATA_5, IN_DECLARATION);
-Tokenizer.prototype._stateBeforeCdata5 = ifElseState("A", BEFORE_CDATA_6, IN_DECLARATION);
-
-Tokenizer.prototype._stateBeforeCdata6 = function(c){
- if(c === "["){
- this._state = IN_CDATA;
- this._sectionStart = this._index + 1;
- } else {
- this._state = IN_DECLARATION;
- this._index--;
- }
-};
-
-Tokenizer.prototype._stateInCdata = function(c){
- if(c === "]") this._state = AFTER_CDATA_1;
-};
-
-Tokenizer.prototype._stateAfterCdata1 = characterState("]", AFTER_CDATA_2);
-
-Tokenizer.prototype._stateAfterCdata2 = function(c){
- if(c === ">"){
- //remove 2 trailing chars
- this._cbs.oncdata(this._buffer.substring(this._sectionStart, this._index - 2));
- this._state = TEXT;
- this._sectionStart = this._index + 1;
- } else if(c !== "]") {
- this._state = IN_CDATA;
- }
- //else: stay in AFTER_CDATA_2 (`]]]>`)
-};
-
-Tokenizer.prototype._stateBeforeSpecial = function(c){
- if(c === "c" || c === "C"){
- this._state = BEFORE_SCRIPT_1;
- } else if(c === "t" || c === "T"){
- this._state = BEFORE_STYLE_1;
- } else {
- this._state = IN_TAG_NAME;
- this._index--; //consume the token again
- }
-};
-
-Tokenizer.prototype._stateBeforeSpecialEnd = function(c){
- if(this._special === SPECIAL_SCRIPT && (c === "c" || c === "C")){
- this._state = AFTER_SCRIPT_1;
- } else if(this._special === SPECIAL_STYLE && (c === "t" || c === "T")){
- this._state = AFTER_STYLE_1;
- }
- else this._state = TEXT;
-};
-
-Tokenizer.prototype._stateBeforeScript1 = consumeSpecialNameChar("R", BEFORE_SCRIPT_2);
-Tokenizer.prototype._stateBeforeScript2 = consumeSpecialNameChar("I", BEFORE_SCRIPT_3);
-Tokenizer.prototype._stateBeforeScript3 = consumeSpecialNameChar("P", BEFORE_SCRIPT_4);
-Tokenizer.prototype._stateBeforeScript4 = consumeSpecialNameChar("T", BEFORE_SCRIPT_5);
-
-Tokenizer.prototype._stateBeforeScript5 = function(c){
- if(c === "/" || c === ">" || whitespace(c)){
- this._special = SPECIAL_SCRIPT;
- }
- this._state = IN_TAG_NAME;
- this._index--; //consume the token again
-};
-
-Tokenizer.prototype._stateAfterScript1 = ifElseState("R", AFTER_SCRIPT_2, TEXT);
-Tokenizer.prototype._stateAfterScript2 = ifElseState("I", AFTER_SCRIPT_3, TEXT);
-Tokenizer.prototype._stateAfterScript3 = ifElseState("P", AFTER_SCRIPT_4, TEXT);
-Tokenizer.prototype._stateAfterScript4 = ifElseState("T", AFTER_SCRIPT_5, TEXT);
-
-Tokenizer.prototype._stateAfterScript5 = function(c){
- if(c === ">" || whitespace(c)){
- this._special = SPECIAL_NONE;
- this._state = IN_CLOSING_TAG_NAME;
- this._sectionStart = this._index - 6;
- this._index--; //reconsume the token
- }
- else this._state = TEXT;
-};
-
-Tokenizer.prototype._stateBeforeStyle1 = consumeSpecialNameChar("Y", BEFORE_STYLE_2);
-Tokenizer.prototype._stateBeforeStyle2 = consumeSpecialNameChar("L", BEFORE_STYLE_3);
-Tokenizer.prototype._stateBeforeStyle3 = consumeSpecialNameChar("E", BEFORE_STYLE_4);
-
-Tokenizer.prototype._stateBeforeStyle4 = function(c){
- if(c === "/" || c === ">" || whitespace(c)){
- this._special = SPECIAL_STYLE;
- }
- this._state = IN_TAG_NAME;
- this._index--; //consume the token again
-};
-
-Tokenizer.prototype._stateAfterStyle1 = ifElseState("Y", AFTER_STYLE_2, TEXT);
-Tokenizer.prototype._stateAfterStyle2 = ifElseState("L", AFTER_STYLE_3, TEXT);
-Tokenizer.prototype._stateAfterStyle3 = ifElseState("E", AFTER_STYLE_4, TEXT);
-
-Tokenizer.prototype._stateAfterStyle4 = function(c){
- if(c === ">" || whitespace(c)){
- this._special = SPECIAL_NONE;
- this._state = IN_CLOSING_TAG_NAME;
- this._sectionStart = this._index - 5;
- this._index--; //reconsume the token
- }
- else this._state = TEXT;
-};
-
-Tokenizer.prototype._stateBeforeEntity = ifElseState("#", BEFORE_NUMERIC_ENTITY, IN_NAMED_ENTITY);
-Tokenizer.prototype._stateBeforeNumericEntity = ifElseState("X", IN_HEX_ENTITY, IN_NUMERIC_ENTITY);
-
-//for entities terminated with a semicolon
-Tokenizer.prototype._parseNamedEntityStrict = function(){
- //offset = 1
- if(this._sectionStart + 1 < this._index){
- var entity = this._buffer.substring(this._sectionStart + 1, this._index),
- map = this._xmlMode ? xmlMap : entityMap;
-
- if(map.hasOwnProperty(entity)){
- this._emitPartial(map[entity]);
- this._sectionStart = this._index + 1;
- }
- }
-};
-
-
-//parses legacy entities (without trailing semicolon)
-Tokenizer.prototype._parseLegacyEntity = function(){
- var start = this._sectionStart + 1,
- limit = this._index - start;
-
- if(limit > 6) limit = 6; //the max length of legacy entities is 6
-
- while(limit >= 2){ //the min length of legacy entities is 2
- var entity = this._buffer.substr(start, limit);
-
- if(legacyMap.hasOwnProperty(entity)){
- this._emitPartial(legacyMap[entity]);
- this._sectionStart += limit + 1;
- return;
- } else {
- limit--;
- }
- }
-};
-
-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();
- }
- } else {
- this._parseLegacyEntity();
- }
-
- this._state = this._baseState;
- this._index--;
- }
-};
-
-Tokenizer.prototype._decodeNumericEntity = function(offset, base){
- var sectionStart = this._sectionStart + offset;
-
- if(sectionStart !== this._index){
- //parse entity
- var entity = this._buffer.substring(sectionStart, this._index);
- var parsed = parseInt(entity, base);
-
- this._emitPartial(decodeCodePoint(parsed));
- this._sectionStart = this._index;
- } else {
- this._sectionStart--;
- }
-
- this._state = this._baseState;
-};
-
-Tokenizer.prototype._stateInNumericEntity = function(c){
- if(c === ";"){
- this._decodeNumericEntity(2, 10);
- this._sectionStart++;
- } else if(c < "0" || c > "9"){
- if(!this._xmlMode){
- this._decodeNumericEntity(2, 10);
- } else {
- this._state = this._baseState;
- }
- this._index--;
- }
-};
-
-Tokenizer.prototype._stateInHexEntity = function(c){
- if(c === ";"){
- this._decodeNumericEntity(3, 16);
- this._sectionStart++;
- } else if((c < "a" || c > "f") && (c < "A" || c > "F") && (c < "0" || c > "9")){
- if(!this._xmlMode){
- this._decodeNumericEntity(3, 16);
- } else {
- this._state = this._baseState;
- }
- this._index--;
- }
-};
-
-Tokenizer.prototype._cleanup = function (){
- if(this._sectionStart < 0){
- this._buffer = "";
- this._index = 0;
- this._bufferOffset += this._index;
- } else if(this._running){
- if(this._state === TEXT){
- if(this._sectionStart !== this._index){
- this._cbs.ontext(this._buffer.substr(this._sectionStart));
- }
- this._buffer = "";
- this._index = 0;
- this._bufferOffset += this._index;
- } else if(this._sectionStart === this._index){
- //the section just started
- this._buffer = "";
- this._index = 0;
- this._bufferOffset += this._index;
- } else {
- //remove everything unnecessary
- this._buffer = this._buffer.substr(this._sectionStart);
- this._index -= this._sectionStart;
- this._bufferOffset += this._sectionStart;
- }
-
- this._sectionStart = 0;
- }
-};
-
-//TODO make events conditional
-Tokenizer.prototype.write = function(chunk){
- if(this._ended) this._cbs.onerror(Error(".write() after done!"));
-
- this._buffer += chunk;
- this._parse();
-};
-
-Tokenizer.prototype._parse = function(){
- while(this._index < this._buffer.length && this._running){
- var c = this._buffer.charAt(this._index);
- if(this._state === TEXT) {
- this._stateText(c);
- } else if(this._state === BEFORE_TAG_NAME){
- this._stateBeforeTagName(c);
- } else if(this._state === IN_TAG_NAME) {
- this._stateInTagName(c);
- } else if(this._state === BEFORE_CLOSING_TAG_NAME){
- this._stateBeforeCloseingTagName(c);
- } else if(this._state === IN_CLOSING_TAG_NAME){
- this._stateInCloseingTagName(c);
- } else if(this._state === AFTER_CLOSING_TAG_NAME){
- this._stateAfterCloseingTagName(c);
- } else if(this._state === IN_SELF_CLOSING_TAG){
- this._stateInSelfClosingTag(c);
- }
-
- /*
- * attributes
- */
- else if(this._state === BEFORE_ATTRIBUTE_NAME){
- this._stateBeforeAttributeName(c);
- } else if(this._state === IN_ATTRIBUTE_NAME){
- this._stateInAttributeName(c);
- } else if(this._state === AFTER_ATTRIBUTE_NAME){
- this._stateAfterAttributeName(c);
- } else if(this._state === BEFORE_ATTRIBUTE_VALUE){
- this._stateBeforeAttributeValue(c);
- } else if(this._state === IN_ATTRIBUTE_VALUE_DQ){
- this._stateInAttributeValueDoubleQuotes(c);
- } else if(this._state === IN_ATTRIBUTE_VALUE_SQ){
- this._stateInAttributeValueSingleQuotes(c);
- } else if(this._state === IN_ATTRIBUTE_VALUE_NQ){
- this._stateInAttributeValueNoQuotes(c);
- }
-
- /*
- * declarations
- */
- else if(this._state === BEFORE_DECLARATION){
- this._stateBeforeDeclaration(c);
- } else if(this._state === IN_DECLARATION){
- this._stateInDeclaration(c);
- }
-
- /*
- * processing instructions
- */
- else if(this._state === IN_PROCESSING_INSTRUCTION){
- this._stateInProcessingInstruction(c);
- }
-
- /*
- * comments
- */
- else if(this._state === BEFORE_COMMENT){
- this._stateBeforeComment(c);
- } else if(this._state === IN_COMMENT){
- this._stateInComment(c);
- } else if(this._state === AFTER_COMMENT_1){
- this._stateAfterComment1(c);
- } else if(this._state === AFTER_COMMENT_2){
- this._stateAfterComment2(c);
- }
-
- /*
- * cdata
- */
- else if(this._state === BEFORE_CDATA_1){
- this._stateBeforeCdata1(c);
- } else if(this._state === BEFORE_CDATA_2){
- this._stateBeforeCdata2(c);
- } else if(this._state === BEFORE_CDATA_3){
- this._stateBeforeCdata3(c);
- } else if(this._state === BEFORE_CDATA_4){
- this._stateBeforeCdata4(c);
- } else if(this._state === BEFORE_CDATA_5){
- this._stateBeforeCdata5(c);
- } else if(this._state === BEFORE_CDATA_6){
- this._stateBeforeCdata6(c);
- } else if(this._state === IN_CDATA){
- this._stateInCdata(c);
- } else if(this._state === AFTER_CDATA_1){
- this._stateAfterCdata1(c);
- } else if(this._state === AFTER_CDATA_2){
- this._stateAfterCdata2(c);
- }
-
- /*
- * special tags
- */
- else if(this._state === BEFORE_SPECIAL){
- this._stateBeforeSpecial(c);
- } else if(this._state === BEFORE_SPECIAL_END){
- this._stateBeforeSpecialEnd(c);
- }
-
- /*
- * script
- */
- else if(this._state === BEFORE_SCRIPT_1){
- this._stateBeforeScript1(c);
- } else if(this._state === BEFORE_SCRIPT_2){
- this._stateBeforeScript2(c);
- } else if(this._state === BEFORE_SCRIPT_3){
- this._stateBeforeScript3(c);
- } else if(this._state === BEFORE_SCRIPT_4){
- this._stateBeforeScript4(c);
- } else if(this._state === BEFORE_SCRIPT_5){
- this._stateBeforeScript5(c);
- }
-
- else if(this._state === AFTER_SCRIPT_1){
- this._stateAfterScript1(c);
- } else if(this._state === AFTER_SCRIPT_2){
- this._stateAfterScript2(c);
- } else if(this._state === AFTER_SCRIPT_3){
- this._stateAfterScript3(c);
- } else if(this._state === AFTER_SCRIPT_4){
- this._stateAfterScript4(c);
- } else if(this._state === AFTER_SCRIPT_5){
- this._stateAfterScript5(c);
- }
-
- /*
- * style
- */
- else if(this._state === BEFORE_STYLE_1){
- this._stateBeforeStyle1(c);
- } else if(this._state === BEFORE_STYLE_2){
- this._stateBeforeStyle2(c);
- } else if(this._state === BEFORE_STYLE_3){
- this._stateBeforeStyle3(c);
- } else if(this._state === BEFORE_STYLE_4){
- this._stateBeforeStyle4(c);
- }
-
- else if(this._state === AFTER_STYLE_1){
- this._stateAfterStyle1(c);
- } else if(this._state === AFTER_STYLE_2){
- this._stateAfterStyle2(c);
- } else if(this._state === AFTER_STYLE_3){
- this._stateAfterStyle3(c);
- } else if(this._state === AFTER_STYLE_4){
- this._stateAfterStyle4(c);
- }
-
- /*
- * entities
- */
- else if(this._state === BEFORE_ENTITY){
- this._stateBeforeEntity(c);
- } else if(this._state === BEFORE_NUMERIC_ENTITY){
- this._stateBeforeNumericEntity(c);
- } else if(this._state === IN_NAMED_ENTITY){
- this._stateInNamedEntity(c);
- } else if(this._state === IN_NUMERIC_ENTITY){
- this._stateInNumericEntity(c);
- } else if(this._state === IN_HEX_ENTITY){
- this._stateInHexEntity(c);
- }
-
- else {
- this._cbs.onerror(Error("unknown _state"), this._state);
- }
-
- this._index++;
- }
-
- this._cleanup();
-};
-
-Tokenizer.prototype.pause = function(){
- this._running = false;
-};
-Tokenizer.prototype.resume = function(){
- this._running = true;
-
- if(this._index < this._buffer.length){
- this._parse();
- }
- if(this._ended){
- this._finish();
- }
-};
-
-Tokenizer.prototype.end = function(chunk){
- if(this._ended) this._cbs.onerror(Error(".end() after done!"));
- if(chunk) this.write(chunk);
-
- this._ended = true;
-
- if(this._running) this._finish();
-};
-
-Tokenizer.prototype._finish = function(){
- //if there is remaining data, emit it in a reasonable way
- if(this._sectionStart < this._index){
- this._handleTrailingData();
- }
-
- this._cbs.onend();
-};
-
-Tokenizer.prototype._handleTrailingData = function(){
- var data = this._buffer.substr(this._sectionStart);
-
- if(this._state === IN_CDATA || this._state === AFTER_CDATA_1 || this._state === AFTER_CDATA_2){
- this._cbs.oncdata(data);
- } else if(this._state === IN_COMMENT || this._state === AFTER_COMMENT_1 || this._state === AFTER_COMMENT_2){
- this._cbs.oncomment(data);
- } else if(this._state === IN_NAMED_ENTITY && !this._xmlMode){
- this._parseLegacyEntity();
- if(this._sectionStart < this._index){
- this._state = this._baseState;
- this._handleTrailingData();
- }
- } else if(this._state === IN_NUMERIC_ENTITY && !this._xmlMode){
- this._decodeNumericEntity(2, 10);
- if(this._sectionStart < this._index){
- this._state = this._baseState;
- this._handleTrailingData();
- }
- } else if(this._state === IN_HEX_ENTITY && !this._xmlMode){
- this._decodeNumericEntity(3, 16);
- if(this._sectionStart < this._index){
- this._state = this._baseState;
- this._handleTrailingData();
- }
- } else if(
- this._state !== IN_TAG_NAME &&
- this._state !== BEFORE_ATTRIBUTE_NAME &&
- this._state !== BEFORE_ATTRIBUTE_VALUE &&
- this._state !== AFTER_ATTRIBUTE_NAME &&
- this._state !== IN_ATTRIBUTE_NAME &&
- this._state !== IN_ATTRIBUTE_VALUE_SQ &&
- this._state !== IN_ATTRIBUTE_VALUE_DQ &&
- this._state !== IN_ATTRIBUTE_VALUE_NQ &&
- this._state !== IN_CLOSING_TAG_NAME
- ){
- this._cbs.ontext(data);
- }
- //else, ignore remaining data
- //TODO add a way to remove current tag
-};
-
-Tokenizer.prototype.reset = function(){
- Tokenizer.call(this, {xmlMode: this._xmlMode, decodeEntities: this._decodeEntities}, this._cbs);
-};
-
-Tokenizer.prototype.getAbsoluteIndex = function(){
- return this._bufferOffset + this._index;
-};
-
-Tokenizer.prototype._getSection = function(){
- return this._buffer.substring(this._sectionStart, this._index);
-};
-
-Tokenizer.prototype._emitToken = function(name){
- this._cbs[name](this._getSection());
- this._sectionStart = -1;
-};
-
-Tokenizer.prototype._emitPartial = function(value){
- if(this._baseState !== TEXT){
- this._cbs.onattribdata(value); //TODO implement the new event
- } else {
- this._cbs.ontext(value);
- }
-};
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/lib/WritableStream.js
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/lib/WritableStream.js b/node_modules/htmlparser2/lib/WritableStream.js
deleted file mode 100644
index e65b073..0000000
--- a/node_modules/htmlparser2/lib/WritableStream.js
+++ /dev/null
@@ -1,21 +0,0 @@
-module.exports = Stream;
-
-var Parser = require("./Parser.js"),
- WritableStream = require("stream").Writable || require("readable-stream").Writable;
-
-function Stream(cbs, options){
- var parser = this._parser = new Parser(cbs, options);
-
- WritableStream.call(this, {decodeStrings: false});
-
- this.once("finish", function(){
- parser.end();
- });
-}
-
-require("util").inherits(Stream, WritableStream);
-
-WritableStream.prototype._write = function(chunk, encoding, cb){
- this._parser.write(chunk);
- cb();
-};
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/lib/index.js
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/lib/index.js b/node_modules/htmlparser2/lib/index.js
deleted file mode 100644
index 880f57e..0000000
--- a/node_modules/htmlparser2/lib/index.js
+++ /dev/null
@@ -1,68 +0,0 @@
-var Parser = require("./Parser.js"),
- DomHandler = require("domhandler");
-
-function defineProp(name, value){
- delete module.exports[name];
- module.exports[name] = value;
- return value;
-}
-
-module.exports = {
- Parser: Parser,
- Tokenizer: require("./Tokenizer.js"),
- ElementType: require("domelementtype"),
- DomHandler: DomHandler,
- get FeedHandler(){
- return defineProp("FeedHandler", require("./FeedHandler.js"));
- },
- get Stream(){
- return defineProp("Stream", require("./Stream.js"));
- },
- get WritableStream(){
- return defineProp("WritableStream", require("./WritableStream.js"));
- },
- get ProxyHandler(){
- return defineProp("ProxyHandler", require("./ProxyHandler.js"));
- },
- get DomUtils(){
- return defineProp("DomUtils", require("domutils"));
- },
- get CollectingHandler(){
- return defineProp("CollectingHandler", require("./CollectingHandler.js"));
- },
- // For legacy support
- DefaultHandler: DomHandler,
- get RssHandler(){
- return defineProp("RssHandler", this.FeedHandler);
- },
- //helper methods
- parseDOM: function(data, options){
- var handler = new DomHandler(options);
- new Parser(handler, options).end(data);
- return handler.dom;
- },
- parseFeed: function(feed, options){
- var handler = new module.exports.FeedHandler(options);
- new Parser(handler, options).end(feed);
- return handler.dom;
- },
- createDomStream: function(cb, options, elementCb){
- var handler = new DomHandler(cb, options, elementCb);
- return new Parser(handler, options);
- },
- // List of all events that the parser emits
- EVENTS: { /* Format: eventname: number of arguments */
- attribute: 2,
- cdatastart: 0,
- cdataend: 0,
- text: 1,
- processinginstruction: 2,
- comment: 1,
- commentend: 0,
- closetag: 1,
- opentag: 2,
- opentagname: 1,
- error: 1,
- end: 0
- }
-};
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/package.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/package.json b/node_modules/htmlparser2/package.json
deleted file mode 100644
index 32a8673..0000000
--- a/node_modules/htmlparser2/package.json
+++ /dev/null
@@ -1,129 +0,0 @@
-{
- "_args": [
- [
- {
- "name": "htmlparser2",
- "raw": "htmlparser2@3.8.x",
- "rawSpec": "3.8.x",
- "scope": null,
- "spec": ">=3.8.0 <3.9.0",
- "type": "range"
- },
- "/Users/ctran/cordova/cordova-lib/cordova-create/node_modules/jshint"
- ]
- ],
- "_from": "htmlparser2@>=3.8.0 <3.9.0",
- "_id": "htmlparser2@3.8.3",
- "_inCache": true,
- "_installable": true,
- "_location": "/htmlparser2",
- "_nodeVersion": "2.2.1",
- "_npmUser": {
- "email": "me@feedic.com",
- "name": "feedic"
- },
- "_npmVersion": "2.11.1",
- "_phantomChildren": {},
- "_requested": {
- "name": "htmlparser2",
- "raw": "htmlparser2@3.8.x",
- "rawSpec": "3.8.x",
- "scope": null,
- "spec": ">=3.8.0 <3.9.0",
- "type": "range"
- },
- "_requiredBy": [
- "/jshint"
- ],
- "_resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.8.3.tgz",
- "_shasum": "996c28b191516a8be86501a7d79757e5c70c1068",
- "_shrinkwrap": null,
- "_spec": "htmlparser2@3.8.x",
- "_where": "/Users/ctran/cordova/cordova-lib/cordova-create/node_modules/jshint",
- "author": {
- "email": "me@feedic.com",
- "name": "Felix Boehm"
- },
- "browser": {
- "readable-stream": false
- },
- "bugs": {
- "url": "http://github.com/fb55/htmlparser2/issues"
- },
- "dependencies": {
- "domelementtype": "1",
- "domhandler": "2.3",
- "domutils": "1.5",
- "entities": "1.0",
- "readable-stream": "1.1"
- },
- "description": "Fast & forgiving HTML/XML/RSS parser",
- "devDependencies": {
- "coveralls": "*",
- "istanbul": "*",
- "jscs": "1.5.8",
- "jshint": "2",
- "mocha": "1",
- "mocha-lcov-reporter": "*"
- },
- "directories": {
- "lib": "lib/"
- },
- "dist": {
- "shasum": "996c28b191516a8be86501a7d79757e5c70c1068",
- "tarball": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.8.3.tgz"
- },
- "gitHead": "44e48f58526de05d2639199f4baaaef235521f6b",
- "homepage": "https://github.com/fb55/htmlparser2#readme",
- "jshintConfig": {
- "eqeqeq": true,
- "eqnull": true,
- "freeze": true,
- "globals": {
- "describe": true,
- "it": true
- },
- "latedef": "nofunc",
- "noarg": true,
- "node": true,
- "nonbsp": true,
- "proto": true,
- "quotmark": "double",
- "smarttabs": true,
- "trailing": true,
- "undef": true,
- "unused": true
- },
- "keywords": [
- "html",
- "parser",
- "streams",
- "xml",
- "dom",
- "rss",
- "feed",
- "atom"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "maintainers": [
- {
- "email": "me@feedic.com",
- "name": "feedic"
- }
- ],
- "name": "htmlparser2",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git://github.com/fb55/htmlparser2.git"
- },
- "scripts": {
- "coveralls": "npm run lint && npm run lcov && (cat coverage/lcov.info | coveralls || exit 0)",
- "lcov": "istanbul cover _mocha --report lcovonly -- -R spec",
- "lint": "jshint lib test && jscs lib test",
- "test": "mocha && npm run lint"
- },
- "version": "3.8.3"
-}
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/01-events.js
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/01-events.js b/node_modules/htmlparser2/test/01-events.js
deleted file mode 100644
index a3c7cf3..0000000
--- a/node_modules/htmlparser2/test/01-events.js
+++ /dev/null
@@ -1,9 +0,0 @@
-var helper = require("./test-helper.js");
-
-helper.mochaTest("Events", __dirname, function(test, cb){
- helper.writeToParser(
- helper.getEventCollector(cb),
- test.options.parser,
- test.html
- );
-});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/02-stream.js
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/02-stream.js b/node_modules/htmlparser2/test/02-stream.js
deleted file mode 100644
index 3403980..0000000
--- a/node_modules/htmlparser2/test/02-stream.js
+++ /dev/null
@@ -1,23 +0,0 @@
-var helper = require("./test-helper.js"),
- Stream = require("..").WritableStream,
- fs = require("fs"),
- path = require("path");
-
-helper.mochaTest("Stream", __dirname, function(test, cb){
- var filePath = path.join(__dirname, "Documents", test.file);
- fs.createReadStream(filePath).pipe(
- new Stream(
- helper.getEventCollector(function(err, events){
- cb(err, events);
-
- var handler = helper.getEventCollector(cb),
- stream = new Stream(handler, test.options);
-
- fs.readFile(filePath, function(err, data){
- if(err) throw err;
- else stream.end(data);
- });
- }
- ), test.options)
- ).on("error", cb);
-});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/03-feed.js
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/03-feed.js b/node_modules/htmlparser2/test/03-feed.js
deleted file mode 100644
index b97bbba..0000000
--- a/node_modules/htmlparser2/test/03-feed.js
+++ /dev/null
@@ -1,19 +0,0 @@
-//Runs tests for feeds
-
-var helper = require("./test-helper.js"),
- FeedHandler = require("..").RssHandler,
- fs = require("fs"),
- path = require("path");
-
-helper.mochaTest("Feeds", __dirname, function(test, cb){
- fs.readFile(
- path.join(__dirname, "Documents", test.file),
- function(err, file){
- helper.writeToParser(
- new FeedHandler(cb),
- { xmlMode: true },
- file.toString()
- );
- }
- );
-});
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Documents/Atom_Example.xml
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Documents/Atom_Example.xml b/node_modules/htmlparser2/test/Documents/Atom_Example.xml
deleted file mode 100644
index f836380..0000000
--- a/node_modules/htmlparser2/test/Documents/Atom_Example.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- http://en.wikipedia.org/wiki/Atom_%28standard%29 -->
-<feed xmlns="http://www.w3.org/2005/Atom">
- <title>Example Feed</title>
- <subtitle>A subtitle.</subtitle>
- <link href="http://example.org/feed/" rel="self" />
- <link href="http://example.org/" />
- <id>urn:uuid:60a76c80-d399-11d9-b91C-0003939e0af6</id>
- <updated>2003-12-13T18:30:02Z</updated>
- <author>
- <name>John Doe</name>
- <email>johndoe@example.com</email>
- </author>
-
- <entry>
- <title>Atom-Powered Robots Run Amok</title>
- <link href="http://example.org/2003/12/13/atom03" />
- <link rel="alternate" type="text/html" href="http://example.org/2003/12/13/atom03.html"/>
- <link rel="edit" href="http://example.org/2003/12/13/atom03/edit"/>
- <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
- <updated>2003-12-13T18:30:02Z</updated>
- <content type="html"><p>Some content.</p></content>
- </entry>
-
-</feed>
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Documents/Attributes.html
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Documents/Attributes.html b/node_modules/htmlparser2/test/Documents/Attributes.html
deleted file mode 100644
index f3bfa09..0000000
--- a/node_modules/htmlparser2/test/Documents/Attributes.html
+++ /dev/null
@@ -1,16 +0,0 @@
-<!doctype html>
-<html>
-<head>
- <title>Attributes test</title>
-</head>
-<body>
- <!-- Normal attributes -->
- <button id="test0" class="value0" title="value1">class="value0" title="value1"</button>
-
- <!-- Attributes with no quotes or value -->
- <button id="test1" class=value2 disabled>class=value2 disabled</button>
-
- <!-- Attributes with no space between them. No valid, but accepted by the browser -->
- <button id="test2" class="value4"title="value5">class="value4"title="value5"</button>
-</body>
-</html>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Documents/Basic.html
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Documents/Basic.html b/node_modules/htmlparser2/test/Documents/Basic.html
deleted file mode 100644
index 65957a2..0000000
--- a/node_modules/htmlparser2/test/Documents/Basic.html
+++ /dev/null
@@ -1 +0,0 @@
-<!DOCTYPE html><html><title>The Title</title><body>Hello world</body></html>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Documents/RDF_Example.xml
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Documents/RDF_Example.xml b/node_modules/htmlparser2/test/Documents/RDF_Example.xml
deleted file mode 100644
index 068da17..0000000
--- a/node_modules/htmlparser2/test/Documents/RDF_Example.xml
+++ /dev/null
@@ -1,63 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:ev="http://purl.org/rss/1.0/modules/event/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:admin="http://webns.net/mvcb/">
- <channel rdf:about="http://sfbay.craigslist.org/ccc/">
- <title>craigslist | all community in SF bay area</title>
- <link>http://sfbay.craigslist.org/ccc/</link>
- <description/>
- <dc:language>en-us</dc:language>
- <dc:rights>Copyright 2011 craigslist, inc.</dc:rights>
- <dc:publisher>webmaster@craigslist.org</dc:publisher>
- <dc:creator>webmaster@craigslist.org</dc:creator>
- <dc:source>http://sfbay.craigslist.org/ccc//</dc:source>
- <dc:title>craigslist | all community in SF bay area</dc:title>
- <dc:type>Collection</dc:type>
- <syn:updateBase>2011-11-04T09:39:10-07:00</syn:updateBase>
- <syn:updateFrequency>4</syn:updateFrequency>
- <syn:updatePeriod>hourly</syn:updatePeriod>
- <items>
- <rdf:Seq>
- <rdf:li rdf:resource="http://sfbay.craigslist.org/sby/muc/2681301534.html"/>
- </rdf:Seq>
- </items>
- </channel>
- <item rdf:about="http://sfbay.craigslist.org/sby/muc/2681301534.html">
- <title><![CDATA[ Music Equipment Repair and Consignment ]]></title>
- <link>
-http://sfbay.craigslist.org/sby/muc/2681301534.html
-</link>
- <description><![CDATA[
-San Jose Rock Shop offers musical instrument repair and consignment! (408) 215-2065<br> <br> We are pleased to announce our NEW LOCATION: 1199 N 5th st. San Jose, ca 95112. Please call ahead, by appointment only.<br> <br> Recently featured by Metro Newspaper in their 2011 Best of the Silicon Valley edition see it online here:<br> <a href="http://www.metroactive.com/best-of-silicon-valley/2011/music-nightlife/editor-picks.html" rel="nofollow">http://www.metroactive.com/best-of-silicon-valley/2011/music-nightlife/editor-picks.html</a><br> <br> Guitar Set up (acoustic and electronic) $40!<!-- END CLTAGS -->
-]]></description>
- <dc:date>2011-11-04T09:35:17-07:00</dc:date>
- <dc:language>en-us</dc:language>
- <dc:rights>Copyright 2011 craigslist, inc.</dc:rights>
- <dc:source>
-http://sfbay.craigslist.org/sby/muc/2681301534.html
-</dc:source>
- <dc:title><![CDATA[ Music Equipment Repair and Consignment ]]></dc:title>
- <dc:type>text</dc:type>
- <dcterms:issued>2011-11-04T09:35:17-07:00</dcterms:issued>
- </item>
- <item rdf:about="http://sfbay.craigslist.org/eby/rid/2685010755.html">
- <title><![CDATA[
-Ride Offered - Oakland/BART to LA/SFV - TODAY 3PM 11/04 (oakland north / temescal)
-]]></title>
- <link>
-http://sfbay.craigslist.org/eby/rid/2685010755.html
-</link>
- <description><![CDATA[
-Im offering a lift for up to two people from Oakland (or near any BART station in the East Bay/580/880 Corridor, or San Jose/Morgan Hill, Gilroy) to the San Fernando Valley / Los Angeles area. Specifically, Im leaving from Oakland between 2:30 and 3:00pm (this is flexible, but if I leave too late my girlfriend will kill me), and heading to Woodland Hills via the 580, I-5, 405, and 101.<!-- END CLTAGS -->
-]]></description>
- <dc:date>2011-11-04T09:34:54-07:00</dc:date>
- <dc:language>en-us</dc:language>
- <dc:rights>Copyright 2011 craigslist, inc.</dc:rights>
- <dc:source>
-http://sfbay.craigslist.org/eby/rid/2685010755.html
-</dc:source>
- <dc:title><![CDATA[
-Ride Offered - Oakland/BART to LA/SFV - TODAY 3PM 11/04 (oakland north / temescal)
-]]></dc:title>
- <dc:type>text</dc:type>
- <dcterms:issued>2011-11-04T09:34:54-07:00</dcterms:issued>
- </item>
-</rdf:RDF>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Documents/RSS_Example.xml
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Documents/RSS_Example.xml b/node_modules/htmlparser2/test/Documents/RSS_Example.xml
deleted file mode 100644
index 0d1fde8..0000000
--- a/node_modules/htmlparser2/test/Documents/RSS_Example.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0"?>
-<!-- http://cyber.law.harvard.edu/rss/examples/rss2sample.xml -->
-<rss version="2.0">
- <channel>
- <title>Liftoff News</title>
- <link>http://liftoff.msfc.nasa.gov/</link>
- <description>Liftoff to Space Exploration.</description>
- <language>en-us</language>
- <pubDate>Tue, 10 Jun 2003 04:00:00 GMT</pubDate>
-
- <lastBuildDate>Tue, 10 Jun 2003 09:41:01 GMT</lastBuildDate>
- <docs>http://blogs.law.harvard.edu/tech/rss</docs>
- <generator>Weblog Editor 2.0</generator>
- <managingEditor>editor@example.com</managingEditor>
- <webMaster>webmaster@example.com</webMaster>
- <item>
-
- <title>Star City</title>
- <link>http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp</link>
- <description>How do Americans get ready to work with Russians aboard the International Space Station? They take a crash course in culture, language and protocol at Russia's <a href="http://howe.iki.rssi.ru/GCTC/gctc_e.htm">Star City</a>.</description>
- <pubDate>Tue, 03 Jun 2003 09:39:21 GMT</pubDate>
- <guid>http://liftoff.msfc.nasa.gov/2003/06/03.html#item573</guid>
-
- </item>
- <item>
- <description>Sky watchers in Europe, Asia, and parts of Alaska and Canada will experience a <a href="http://science.nasa.gov/headlines/y2003/30may_solareclipse.htm">partial eclipse of the Sun</a> on Saturday, May 31st.</description>
- <pubDate>Fri, 30 May 2003 11:06:42 GMT</pubDate>
- <guid>http://liftoff.msfc.nasa.gov/2003/05/30.html#item572</guid>
-
- </item>
- <item>
- <title>The Engine That Does More</title>
- <link>http://liftoff.msfc.nasa.gov/news/2003/news-VASIMR.asp</link>
- <description>Before man travels to Mars, NASA hopes to design new engines that will let us fly through the Solar System more quickly. The proposed VASIMR engine would do that.</description>
- <pubDate>Tue, 27 May 2003 08:37:32 GMT</pubDate>
- <guid>http://liftoff.msfc.nasa.gov/2003/05/27.html#item571</guid>
-
- </item>
- <item>
- <title>Astronauts' Dirty Laundry</title>
- <link>http://liftoff.msfc.nasa.gov/news/2003/news-laundry.asp</link>
- <description>Compared to earlier spacecraft, the International Space Station has many luxuries, but laundry facilities are not one of them. Instead, astronauts have other options.</description>
- <pubDate>Tue, 20 May 2003 08:56:02 GMT</pubDate>
- <guid>http://liftoff.msfc.nasa.gov/2003/05/20.html#item570</guid>
-
- </item>
- </channel>
-</rss>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/01-simple.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/01-simple.json b/node_modules/htmlparser2/test/Events/01-simple.json
deleted file mode 100644
index ab3076a..0000000
--- a/node_modules/htmlparser2/test/Events/01-simple.json
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- "name": "simple",
- "options": {
- "handler": {},
- "parser": {}
- },
- "html": "<h1 class=test>adsf</h1>",
- "expected": [
- {
- "event": "opentagname",
- "data": [
- "h1"
- ]
- },
- {
- "event": "attribute",
- "data": [
- "class",
- "test"
- ]
- },
- {
- "event": "opentag",
- "data": [
- "h1",
- {
- "class": "test"
- }
- ]
- },
- {
- "event": "text",
- "data": [
- "adsf"
- ]
- },
- {
- "event": "closetag",
- "data": [
- "h1"
- ]
- }
- ]
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/02-template.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/02-template.json b/node_modules/htmlparser2/test/Events/02-template.json
deleted file mode 100644
index df344b6..0000000
--- a/node_modules/htmlparser2/test/Events/02-template.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "name": "Template script tags",
- "options": {
- "handler": {},
- "parser": {}
- },
- "html": "<p><script type=\"text/template\"><h1>Heading1</h1></script></p>",
- "expected": [
- {
- "event": "opentagname",
- "data": [
- "p"
- ]
- },
- {
- "event": "opentag",
- "data": [
- "p",
- {}
- ]
- },
- {
- "event": "opentagname",
- "data": [
- "script"
- ]
- },
- {
- "event": "attribute",
- "data": [
- "type",
- "text/template"
- ]
- },
- {
- "event": "opentag",
- "data": [
- "script",
- {
- "type": "text/template"
- }
- ]
- },
- {
- "event": "text",
- "data": [
- "<h1>Heading1</h1>"
- ]
- },
- {
- "event": "closetag",
- "data": [
- "script"
- ]
- },
- {
- "event": "closetag",
- "data": [
- "p"
- ]
- }
- ]
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/03-lowercase_tags.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/03-lowercase_tags.json b/node_modules/htmlparser2/test/Events/03-lowercase_tags.json
deleted file mode 100644
index 9b58c59..0000000
--- a/node_modules/htmlparser2/test/Events/03-lowercase_tags.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "name": "Lowercase tags",
- "options": {
- "handler": {},
- "parser": {
- "lowerCaseTags": true
- }
- },
- "html": "<H1 class=test>adsf</H1>",
- "expected": [
- {
- "event": "opentagname",
- "data": [
- "h1"
- ]
- },
- {
- "event": "attribute",
- "data": [
- "class",
- "test"
- ]
- },
- {
- "event": "opentag",
- "data": [
- "h1",
- {
- "class": "test"
- }
- ]
- },
- {
- "event": "text",
- "data": [
- "adsf"
- ]
- },
- {
- "event": "closetag",
- "data": [
- "h1"
- ]
- }
- ]
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/04-cdata.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/04-cdata.json b/node_modules/htmlparser2/test/Events/04-cdata.json
deleted file mode 100644
index 6032b68..0000000
--- a/node_modules/htmlparser2/test/Events/04-cdata.json
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- "name": "CDATA",
- "options": {
- "handler": {},
- "parser": {"xmlMode": true}
- },
- "html": "<tag><![CDATA[ asdf ><asdf></adsf><> fo]]></tag><![CD>",
- "expected": [
- {
- "event": "opentagname",
- "data": [
- "tag"
- ]
- },
- {
- "event": "opentag",
- "data": [
- "tag",
- {}
- ]
- },
- {
- "event": "cdatastart",
- "data": []
- },
- {
- "event": "text",
- "data": [
- " asdf ><asdf></adsf><> fo"
- ]
- },
- {
- "event": "cdataend",
- "data": []
- },
- {
- "event": "closetag",
- "data": [
- "tag"
- ]
- },
- {
- "event": "processinginstruction",
- "data": [
- "![CD",
- "![CD"
- ]
- }
- ]
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/05-cdata-special.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/05-cdata-special.json b/node_modules/htmlparser2/test/Events/05-cdata-special.json
deleted file mode 100644
index 686cb1a..0000000
--- a/node_modules/htmlparser2/test/Events/05-cdata-special.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "name": "CDATA (inside special)",
- "options": {
- "handler": {},
- "parser": {}
- },
- "html": "<script>/*<![CDATA[*/ asdf ><asdf></adsf><> fo/*]]>*/</script>",
- "expected": [
- {
- "event": "opentagname",
- "data": [
- "script"
- ]
- },
- {
- "event": "opentag",
- "data": [
- "script",
- {}
- ]
- },
- {
- "event": "text",
- "data": [
- "/*<![CDATA[*/ asdf ><asdf></adsf><> fo/*]]>*/"
- ]
- },
- {
- "event": "closetag",
- "data": [
- "script"
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/06-leading-lt.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/06-leading-lt.json b/node_modules/htmlparser2/test/Events/06-leading-lt.json
deleted file mode 100644
index fcec852..0000000
--- a/node_modules/htmlparser2/test/Events/06-leading-lt.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "name": "leading lt",
- "options": {
- "handler": {},
- "parser": {}
- },
- "html": ">a>",
- "expected": [
- {
- "event": "text",
- "data": [
- ">a>"
- ]
- }
- ]
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/07-self-closing.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/07-self-closing.json b/node_modules/htmlparser2/test/Events/07-self-closing.json
deleted file mode 100644
index 49ed93b..0000000
--- a/node_modules/htmlparser2/test/Events/07-self-closing.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "name": "Self-closing tags",
- "options": {
- "handler": {
-
- },
- "parser": {
-
- }
- },
- "html": "<a href=http://test.com/>Foo</a><hr / >",
- "expected": [
- {
- "event": "opentagname",
- "data": [
- "a"
- ]
- },
- {
- "event": "attribute",
- "data": [
- "href",
- "http://test.com/"
- ]
- },
- {
- "event": "opentag",
- "data": [
- "a",
- {
- "href": "http://test.com/"
- }
- ]
- },
- {
- "event": "text",
- "data": [
- "Foo"
- ]
- },
- {
- "event": "closetag",
- "data": [
- "a"
- ]
- },
- {
- "event": "opentagname",
- "data": [
- "hr"
- ]
- },
- {
- "event": "opentag",
- "data": [
- "hr",
- {}
- ]
- },
- {
- "event": "closetag",
- "data": [
- "hr"
- ]
- }
- ]
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/08-implicit-close-tags.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/08-implicit-close-tags.json b/node_modules/htmlparser2/test/Events/08-implicit-close-tags.json
deleted file mode 100644
index 331e785..0000000
--- a/node_modules/htmlparser2/test/Events/08-implicit-close-tags.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "name": "Implicit close tags",
- "options": {},
- "html": "<ol><li class=test><div><table style=width:100%><tr><th>TH<td colspan=2><h3>Heading</h3><tr><td><div>Div</div><td><div>Div2</div></table></div><li><div><h3>Heading 2</h3></div></li></ol><p>Para<h4>Heading 4</h4>",
- "expected": [
- { "event": "opentagname", "data": [ "ol" ] },
- { "event": "opentag", "data": [ "ol", {} ] },
- { "event": "opentagname", "data": [ "li" ] },
- { "event": "attribute", "data": [ "class", "test" ] },
- { "event": "opentag", "data": [ "li", { "class": "test" } ] },
- { "event": "opentagname", "data": [ "div" ] },
- { "event": "opentag", "data": [ "div", {} ] },
- { "event": "opentagname", "data": [ "table" ] },
- { "event": "attribute", "data": [ "style", "width:100%" ] },
- { "event": "opentag", "data": [ "table", { "style": "width:100%" } ] },
- { "event": "opentagname", "data": [ "tr" ] },
- { "event": "opentag", "data": [ "tr", {} ] },
- { "event": "opentagname", "data": [ "th" ] },
- { "event": "opentag", "data": [ "th", {} ] },
- { "event": "text", "data": [ "TH" ] },
- { "event": "closetag", "data": [ "th" ] },
- { "event": "opentagname", "data": [ "td" ] },
- { "event": "attribute", "data": [ "colspan", "2" ] },
- { "event": "opentag", "data": [ "td", { "colspan": "2" } ] },
- { "event": "opentagname", "data": [ "h3" ] },
- { "event": "opentag", "data": [ "h3", {} ] },
- { "event": "text", "data": [ "Heading" ] },
- { "event": "closetag", "data": [ "h3" ] },
- { "event": "closetag", "data": [ "td" ] },
- { "event": "closetag", "data": [ "tr" ] },
- { "event": "opentagname", "data": [ "tr" ] },
- { "event": "opentag", "data": [ "tr", {} ] },
- { "event": "opentagname", "data": [ "td" ] },
- { "event": "opentag", "data": [ "td", {} ] },
- { "event": "opentagname", "data": [ "div" ] },
- { "event": "opentag", "data": [ "div", {} ] },
- { "event": "text", "data": [ "Div" ] },
- { "event": "closetag", "data": [ "div" ] },
- { "event": "closetag", "data": [ "td" ] },
- { "event": "opentagname", "data": [ "td" ] },
- { "event": "opentag", "data": [ "td", {} ] },
- { "event": "opentagname", "data": [ "div" ] },
- { "event": "opentag", "data": [ "div", {} ] },
- { "event": "text", "data": [ "Div2" ] },
- { "event": "closetag", "data": [ "div" ] },
- { "event": "closetag", "data": [ "td" ] },
- { "event": "closetag", "data": [ "tr" ] },
- { "event": "closetag", "data": [ "table" ] },
- { "event": "closetag", "data": [ "div" ] },
- { "event": "closetag", "data": [ "li" ] },
- { "event": "opentagname", "data": [ "li" ] },
- { "event": "opentag", "data": [ "li", {} ] },
- { "event": "opentagname", "data": [ "div" ] },
- { "event": "opentag", "data": [ "div", {} ] },
- { "event": "opentagname", "data": [ "h3" ] },
- { "event": "opentag", "data": [ "h3", {} ] },
- { "event": "text", "data": [ "Heading 2" ] },
- { "event": "closetag", "data": [ "h3" ] },
- { "event": "closetag", "data": [ "div" ] },
- { "event": "closetag", "data": [ "li" ] },
- { "event": "closetag", "data": [ "ol" ] },
- { "event": "opentagname", "data": [ "p" ] },
- { "event": "opentag", "data": [ "p", {} ] },
- { "event": "text", "data": [ "Para" ] },
- { "event": "closetag", "data": [ "p" ] },
- { "event": "opentagname", "data": [ "h4" ] },
- { "event": "opentag", "data": [ "h4", {} ] },
- { "event": "text", "data": [ "Heading 4" ] },
- { "event": "closetag", "data": [ "h4" ] }
- ]
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/09-attributes.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/09-attributes.json b/node_modules/htmlparser2/test/Events/09-attributes.json
deleted file mode 100644
index afa6e4a..0000000
--- a/node_modules/htmlparser2/test/Events/09-attributes.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "name": "attributes (no white space, no value, no quotes)",
- "options": {
- "handler": {},
- "parser": {}
- },
- "html": "<button class=\"test0\"title=\"test1\" disabled value=test2>adsf</button>",
- "expected": [
- {
- "event": "opentagname",
- "data": [
- "button"
- ]
- },
- {
- "event": "attribute",
- "data": [
- "class",
- "test0"
- ]
- },
- {
- "event": "attribute",
- "data": [
- "title",
- "test1"
- ]
- },
- {
- "event": "attribute",
- "data": [
- "disabled",
- ""
- ]
- },
- {
- "event": "attribute",
- "data": [
- "value",
- "test2"
- ]
- },
- {
- "event": "opentag",
- "data": [
- "button",
- {
- "class": "test0",
- "title": "test1",
- "disabled": "",
- "value": "test2"
- }
- ]
- },
- {
- "event": "text",
- "data": [
- "adsf"
- ]
- },
- {
- "event": "closetag",
- "data": [
- "button"
- ]
- }
- ]
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/10-crazy-attrib.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/10-crazy-attrib.json b/node_modules/htmlparser2/test/Events/10-crazy-attrib.json
deleted file mode 100644
index 00bad5f..0000000
--- a/node_modules/htmlparser2/test/Events/10-crazy-attrib.json
+++ /dev/null
@@ -1,52 +0,0 @@
-{
- "name": "crazy attribute",
- "options": {
- "handler": {},
- "parser": {}
- },
- "html": "<p < = '' FAIL>stuff</p><a",
- "expected": [
- {
- "event": "opentagname",
- "data": [
- "p"
- ]
- },
- {
- "event": "attribute",
- "data": [
- "<",
- ""
- ]
- },
- {
- "event": "attribute",
- "data": [
- "fail",
- ""
- ]
- },
- {
- "event": "opentag",
- "data": [
- "p",
- {
- "<": "",
- "fail": ""
- }
- ]
- },
- {
- "event": "text",
- "data": [
- "stuff"
- ]
- },
- {
- "event": "closetag",
- "data": [
- "p"
- ]
- }
- ]
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/11-script_in_script.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/11-script_in_script.json b/node_modules/htmlparser2/test/Events/11-script_in_script.json
deleted file mode 100644
index ddbb87c..0000000
--- a/node_modules/htmlparser2/test/Events/11-script_in_script.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "name": "Scripts creating other scripts",
- "options": {
- "handler": {},
- "parser": {}
- },
- "html": "<p><script>var str = '<script></'+'script>';</script></p>",
- "expected": [
- {
- "event": "opentagname",
- "data": [
- "p"
- ]
- },
- {
- "event": "opentag",
- "data": [
- "p",
- {}
- ]
- },
- {
- "event": "opentagname",
- "data": [
- "script"
- ]
- },
- {
- "event": "opentag",
- "data": [
- "script",
- {}
- ]
- },
- {
- "event": "text",
- "data": [
- "var str = '<script></'+'script>';"
- ]
- },
- {
- "event": "closetag",
- "data": [
- "script"
- ]
- },
- {
- "event": "closetag",
- "data": [
- "p"
- ]
- }
- ]
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/12-long-comment-end.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/12-long-comment-end.json b/node_modules/htmlparser2/test/Events/12-long-comment-end.json
deleted file mode 100644
index e81f307..0000000
--- a/node_modules/htmlparser2/test/Events/12-long-comment-end.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "name": "Long comment ending",
- "options": {
- "handler": {},
- "parser": {}
- },
- "html": "<meta id='before'><!-- text ---><meta id='after'>",
- "expected": [
- { "event": "opentagname", "data": [ "meta" ] },
- { "event": "attribute", "data": [ "id", "before" ] },
- { "event": "opentag", "data": [ "meta", {"id": "before"} ] },
- { "event": "closetag", "data": [ "meta" ] },
- { "event": "comment", "data": [ " text -" ] },
- { "event": "commentend", "data": [] },
- { "event": "opentagname", "data": [ "meta" ] },
- { "event": "attribute", "data": [ "id", "after" ] },
- { "event": "opentag", "data": [ "meta", {"id": "after"} ] },
- { "event": "closetag", "data": [ "meta" ] }
- ]
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/13-long-cdata-end.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/13-long-cdata-end.json b/node_modules/htmlparser2/test/Events/13-long-cdata-end.json
deleted file mode 100644
index 34b7b41..0000000
--- a/node_modules/htmlparser2/test/Events/13-long-cdata-end.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "name": "Long CDATA ending",
- "options": {
- "handler": {},
- "parser": {"xmlMode": true}
- },
- "html": "<before /><tag><![CDATA[ text ]]]></tag><after />",
- "expected": [
- { "event": "opentagname", "data": [ "before" ] },
- { "event": "opentag", "data": [ "before", {} ] },
- { "event": "closetag", "data": [ "before" ] },
- { "event": "opentagname", "data": [ "tag" ] },
- { "event": "opentag", "data": [ "tag", {} ] },
- { "event": "cdatastart", "data": [] },
- { "event": "text", "data": [ " text ]" ] },
- { "event": "cdataend", "data": [] },
- { "event": "closetag", "data": [ "tag" ] },
- { "event": "opentagname", "data": [ "after" ] },
- { "event": "opentag", "data": [ "after", {} ] },
- { "event": "closetag", "data": [ "after" ] }
- ]
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/14-implicit-open-tags.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/14-implicit-open-tags.json b/node_modules/htmlparser2/test/Events/14-implicit-open-tags.json
deleted file mode 100644
index f02b840..0000000
--- a/node_modules/htmlparser2/test/Events/14-implicit-open-tags.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "name": "Implicit open p and br tags",
- "options": {
- "handler": {},
- "parser": {}
- },
- "html": "<div>Hallo</p>World</br></ignore></div></p></br>",
- "expected": [
- { "event": "opentagname", "data": [ "div" ] },
- { "event": "opentag", "data": [ "div", {} ] },
- { "event": "text", "data": [ "Hallo" ] },
- { "event": "opentagname", "data": [ "p" ] },
- { "event": "opentag", "data": [ "p", {} ] },
- { "event": "closetag", "data": [ "p" ] },
- { "event": "text", "data": [ "World" ] },
- { "event": "opentagname", "data": [ "br" ] },
- { "event": "opentag", "data": [ "br", {} ] },
- { "event": "closetag", "data": [ "br" ] },
- { "event": "closetag", "data": [ "div" ] },
- { "event": "opentagname", "data": [ "p" ] },
- { "event": "opentag", "data": [ "p", {} ] },
- { "event": "closetag", "data": [ "p" ] },
- { "event": "opentagname", "data": [ "br" ] },
- { "event": "opentag", "data": [ "br", {} ] },
- { "event": "closetag", "data": [ "br" ] }
- ]
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/15-lt-whitespace.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/15-lt-whitespace.json b/node_modules/htmlparser2/test/Events/15-lt-whitespace.json
deleted file mode 100644
index aae6eb0..0000000
--- a/node_modules/htmlparser2/test/Events/15-lt-whitespace.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "name": "lt followed by whitespace",
- "options": {
- "handler": {},
- "parser": {}
- },
- "html": "a < b",
- "expected": [
- {
- "event": "text",
- "data": [
- "a < b"
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/16-double_attribs.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/16-double_attribs.json b/node_modules/htmlparser2/test/Events/16-double_attribs.json
deleted file mode 100644
index bed1d8f..0000000
--- a/node_modules/htmlparser2/test/Events/16-double_attribs.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- "name": "double attribute",
- "options": {
- "handler": {},
- "parser": {}
- },
- "html": "<h1 class=test class=boo></h1>",
- "expected": [
- {
- "event": "opentagname",
- "data": [
- "h1"
- ]
- },
- {
- "event": "attribute",
- "data": [
- "class",
- "test"
- ]
- },
- {
- "event": "attribute",
- "data": [
- "class",
- "boo"
- ]
- },
- {
- "event": "opentag",
- "data": [
- "h1",
- {
- "class": "test"
- }
- ]
- },
- {
- "event": "closetag",
- "data": [
- "h1"
- ]
- }
- ]
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/17-numeric_entities.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/17-numeric_entities.json b/node_modules/htmlparser2/test/Events/17-numeric_entities.json
deleted file mode 100644
index 23e0b26..0000000
--- a/node_modules/htmlparser2/test/Events/17-numeric_entities.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "name": "numeric entities",
- "options": {
- "handler": {},
- "parser": {"decodeEntities": true}
- },
- "html": "abcdfg&#x;h",
- "expected": [
- {
- "event": "text",
- "data": [
- "abcdfg&#x;h"
- ]
- }
- ]
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/18-legacy_entities.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/18-legacy_entities.json b/node_modules/htmlparser2/test/Events/18-legacy_entities.json
deleted file mode 100644
index 5f34e5b..0000000
--- a/node_modules/htmlparser2/test/Events/18-legacy_entities.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "name": "legacy entities",
- "options": {
- "handler": {},
- "parser": {"decodeEntities": true}
- },
- "html": "&elíe&eer;s<er",
- "expected": [
- {
- "event": "text",
- "data": [
- "&el\u00EDe&eer;s<er"
- ]
- }
- ]
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/19-named_entities.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/19-named_entities.json b/node_modules/htmlparser2/test/Events/19-named_entities.json
deleted file mode 100644
index d9068d5..0000000
--- a/node_modules/htmlparser2/test/Events/19-named_entities.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "name": "named entities",
- "options": {
- "handler": {},
- "parser": {"decodeEntities": true}
- },
- "html": "&el<er∳foo&bar",
- "expected": [
- {
- "event": "text",
- "data": [
- "&el<er\u2233foo&bar"
- ]
- }
- ]
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/20-xml_entities.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/20-xml_entities.json b/node_modules/htmlparser2/test/Events/20-xml_entities.json
deleted file mode 100644
index ce82300..0000000
--- a/node_modules/htmlparser2/test/Events/20-xml_entities.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "name": "xml entities",
- "options": {
- "handler": {},
- "parser": {"decodeEntities": true, "xmlMode": true}
- },
- "html": "&>&<üabcde",
- "expected": [
- {
- "event": "text",
- "data": [
- "&>&<üaجde"
- ]
- }
- ]
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/21-entity_in_attribute.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/21-entity_in_attribute.json b/node_modules/htmlparser2/test/Events/21-entity_in_attribute.json
deleted file mode 100644
index e0a3195..0000000
--- a/node_modules/htmlparser2/test/Events/21-entity_in_attribute.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- "name": "entity in attribute",
- "options": {
- "handler": {},
- "parser": {"decodeEntities": true}
- },
- "html": "<a href='http://example.com/page?param=value¶m2¶m3=<val&; & &'>",
- "expected": [
- {
- "event": "opentagname",
- "data": [
- "a"
- ]
- },
- {
- "event": "attribute",
- "data": [
- "href",
- "http://example.com/page?param=value¶m2¶m3=<val&; & &"
- ]
- },
- {
- "event": "opentag",
- "data": [
- "a",
- {
- "href": "http://example.com/page?param=value¶m2¶m3=<val&; & &"
- }
- ]
- },
- {
- "event": "closetag",
- "data": [
- "a"
- ]
- }
- ]
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/22-double_brackets.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/22-double_brackets.json b/node_modules/htmlparser2/test/Events/22-double_brackets.json
deleted file mode 100644
index 38a513b..0000000
--- a/node_modules/htmlparser2/test/Events/22-double_brackets.json
+++ /dev/null
@@ -1,41 +0,0 @@
-{
- "name": "double brackets",
- "options": {
- "handler": {},
- "parser": {}
- },
- "html": "<<princess-purpose>>testing</princess-purpose>",
- "expected": [
- {
- "event": "text",
- "data": [
- "<"
- ]
- },
- {
- "event": "opentagname",
- "data": [
- "princess-purpose"
- ]
- },
- {
- "event": "opentag",
- "data": [
- "princess-purpose",
- {}
- ]
- },
- {
- "event": "text",
- "data": [
- ">testing"
- ]
- },
- {
- "event": "closetag",
- "data": [
- "princess-purpose"
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/23-legacy_entity_fail.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/23-legacy_entity_fail.json b/node_modules/htmlparser2/test/Events/23-legacy_entity_fail.json
deleted file mode 100644
index 4b4320b..0000000
--- a/node_modules/htmlparser2/test/Events/23-legacy_entity_fail.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "name": "legacy entities",
- "options": {
- "handler": {},
- "parser": {"decodeEntities": true}
- },
- "html": "M&M",
- "expected": [
- {
- "event": "text",
- "data": [
- "M&M"
- ]
- }
- ]
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/24-special_special.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/24-special_special.json b/node_modules/htmlparser2/test/Events/24-special_special.json
deleted file mode 100644
index e80731f..0000000
--- a/node_modules/htmlparser2/test/Events/24-special_special.json
+++ /dev/null
@@ -1,133 +0,0 @@
-{
- "name": "Special special tags",
- "options": {},
- "html": "<sCriPT></scripter</soo</sCript><STyLE></styler</STylE><sCiPt><stylee><scriptee><soo>",
- "expected": [
- {
- "event": "opentagname",
- "data": [
- "script"
- ]
- },
- {
- "event": "opentag",
- "data": [
- "script",
- {}
- ]
- },
- {
- "event": "text",
- "data": [
- "</scripter</soo"
- ]
- },
- {
- "event": "closetag",
- "data": [
- "script"
- ]
- },
- {
- "event": "opentagname",
- "data": [
- "style"
- ]
- },
- {
- "event": "opentag",
- "data": [
- "style",
- {}
- ]
- },
- {
- "event": "text",
- "data": [
- "</styler"
- ]
- },
- {
- "event": "closetag",
- "data": [
- "style"
- ]
- },
- {
- "event": "opentagname",
- "data": [
- "scipt"
- ]
- },
- {
- "event": "opentag",
- "data": [
- "scipt",
- {}
- ]
- },
- {
- "event": "opentagname",
- "data": [
- "stylee"
- ]
- },
- {
- "event": "opentag",
- "data": [
- "stylee",
- {}
- ]
- },
- {
- "event": "opentagname",
- "data": [
- "scriptee"
- ]
- },
- {
- "event": "opentag",
- "data": [
- "scriptee",
- {}
- ]
- },
- {
- "event": "opentagname",
- "data": [
- "soo"
- ]
- },
- {
- "event": "opentag",
- "data": [
- "soo",
- {}
- ]
- },
- {
- "event": "closetag",
- "data": [
- "soo"
- ]
- },
- {
- "event": "closetag",
- "data": [
- "scriptee"
- ]
- },
- {
- "event": "closetag",
- "data": [
- "stylee"
- ]
- },
- {
- "event": "closetag",
- "data": [
- "scipt"
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/25-empty_tag_name.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/25-empty_tag_name.json b/node_modules/htmlparser2/test/Events/25-empty_tag_name.json
deleted file mode 100644
index b3b340c..0000000
--- a/node_modules/htmlparser2/test/Events/25-empty_tag_name.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "name": "Empty tag name",
- "options": {},
- "html": "< ></ >",
- "expected": [
- {
- "event": "text",
- "data": [
- "< ></ >"
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/26-not-quite-closed.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/26-not-quite-closed.json b/node_modules/htmlparser2/test/Events/26-not-quite-closed.json
deleted file mode 100644
index 8504440..0000000
--- a/node_modules/htmlparser2/test/Events/26-not-quite-closed.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "name": "Not quite closed",
- "options": {},
- "html": "<foo /bar></foo bar>",
- "expected": [
- {
- "event": "opentagname",
- "data": [
- "foo"
- ]
- },
- {
- "event": "attribute",
- "data": [
- "bar",
- ""
- ]
- },
- {
- "event": "opentag",
- "data": [
- "foo",
- {
- "bar": ""
- }
- ]
- },
- {
- "event": "closetag",
- "data": [
- "foo"
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/27-entities_in_attributes.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/27-entities_in_attributes.json b/node_modules/htmlparser2/test/Events/27-entities_in_attributes.json
deleted file mode 100644
index b03cbdf..0000000
--- a/node_modules/htmlparser2/test/Events/27-entities_in_attributes.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "name": "Entities in attributes",
- "options": {
- "handler": {},
- "parser": {"decodeEntities": true}
- },
- "html": "<foo bar=& baz=\"&\" boo='&' noo=>",
- "expected": [
- {
- "event": "opentagname",
- "data": [
- "foo"
- ]
- },
- {
- "event": "attribute",
- "data": [
- "bar",
- "&"
- ]
- },
- {
- "event": "attribute",
- "data": [
- "baz",
- "&"
- ]
- },
- {
- "event": "attribute",
- "data": [
- "boo",
- "&"
- ]
- },
- {
- "event": "attribute",
- "data": [
- "noo",
- ""
- ]
- },
- {
- "event": "opentag",
- "data": [
- "foo",
- {
- "bar": "&",
- "baz": "&",
- "boo": "&",
- "noo": ""
- }
- ]
- },
- {
- "event": "closetag",
- "data": [
- "foo"
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/28-cdata_in_html.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/28-cdata_in_html.json b/node_modules/htmlparser2/test/Events/28-cdata_in_html.json
deleted file mode 100644
index 80c033b..0000000
--- a/node_modules/htmlparser2/test/Events/28-cdata_in_html.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "CDATA in HTML",
- "options": {},
- "html": "<![CDATA[ foo ]]>",
- "expected": [
- { "event": "comment", "data": [ "[CDATA[ foo ]]" ] },
- { "event": "commentend", "data": [] }
- ]
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/29-comment_edge-cases.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/29-comment_edge-cases.json b/node_modules/htmlparser2/test/Events/29-comment_edge-cases.json
deleted file mode 100644
index 9d9709a..0000000
--- a/node_modules/htmlparser2/test/Events/29-comment_edge-cases.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "name": "Comment edge-cases",
- "options": {},
- "html": "<!-foo><!-- --- --><!--foo",
- "expected": [
- {
- "event": "processinginstruction",
- "data": [
- "!-foo",
- "!-foo"
- ]
- },
- { "event": "comment", "data": [ " --- " ] },
- { "event": "commentend", "data": [] },
- { "event": "comment", "data": [ "foo" ] },
- { "event": "commentend", "data": [] }
- ]
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/30-cdata_edge-cases.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/30-cdata_edge-cases.json b/node_modules/htmlparser2/test/Events/30-cdata_edge-cases.json
deleted file mode 100644
index d226f09..0000000
--- a/node_modules/htmlparser2/test/Events/30-cdata_edge-cases.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "name": "CDATA edge-cases",
- "options": {
- "parser": {"recognizeCDATA": true}
- },
- "html": "<![CDATA><![CDATA[[]]sdaf]]><![CDATA[foo",
- "expected": [
- {
- "event": "processinginstruction",
- "data": [
- "![cdata",
- "![CDATA"
- ]
- },
- { "event": "cdatastart", "data": [] },
- { "event": "text", "data": [ "[]]sdaf" ] },
- { "event": "cdataend", "data": [] },
- { "event": "cdatastart", "data": [] },
- { "event": "text", "data": [ "foo" ] },
- { "event": "cdataend", "data": [] }
- ]
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Events/31-comment_false-ending.json
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Events/31-comment_false-ending.json b/node_modules/htmlparser2/test/Events/31-comment_false-ending.json
deleted file mode 100644
index 6658428..0000000
--- a/node_modules/htmlparser2/test/Events/31-comment_false-ending.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "Comment false ending",
- "options": {},
- "html": "<!-- a-b-> -->",
- "expected": [
- { "event": "comment", "data": [ " a-b-> " ] },
- { "event": "commentend", "data": [] }
- ]
-}
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Feeds/01-rss.js
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Feeds/01-rss.js b/node_modules/htmlparser2/test/Feeds/01-rss.js
deleted file mode 100644
index a3aae47..0000000
--- a/node_modules/htmlparser2/test/Feeds/01-rss.js
+++ /dev/null
@@ -1,34 +0,0 @@
-exports.name = "RSS (2.0)";
-exports.file = "/RSS_Example.xml";
-exports.expected = {
- type: "rss",
- id: "",
- title: "Liftoff News",
- link: "http://liftoff.msfc.nasa.gov/",
- description: "Liftoff to Space Exploration.",
- updated: new Date("Tue, 10 Jun 2003 09:41:01 GMT"),
- author: "editor@example.com",
- items: [{
- id: "http://liftoff.msfc.nasa.gov/2003/06/03.html#item573",
- title: "Star City",
- link: "http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp",
- description: "How do Americans get ready to work with Russians aboard the International Space Station? They take a crash course in culture, language and protocol at Russia's <a href=\"http://howe.iki.rssi.ru/GCTC/gctc_e.htm\">Star City</a>.",
- pubDate: new Date("Tue, 03 Jun 2003 09:39:21 GMT")
- }, {
- id: "http://liftoff.msfc.nasa.gov/2003/05/30.html#item572",
- description: "Sky watchers in Europe, Asia, and parts of Alaska and Canada will experience a <a href=\"http://science.nasa.gov/headlines/y2003/30may_solareclipse.htm\">partial eclipse of the Sun</a> on Saturday, May 31st.",
- pubDate: new Date("Fri, 30 May 2003 11:06:42 GMT")
- }, {
- id: "http://liftoff.msfc.nasa.gov/2003/05/27.html#item571",
- title: "The Engine That Does More",
- link: "http://liftoff.msfc.nasa.gov/news/2003/news-VASIMR.asp",
- description: "Before man travels to Mars, NASA hopes to design new engines that will let us fly through the Solar System more quickly. The proposed VASIMR engine would do that.",
- pubDate: new Date("Tue, 27 May 2003 08:37:32 GMT")
- }, {
- id: "http://liftoff.msfc.nasa.gov/2003/05/20.html#item570",
- title: "Astronauts' Dirty Laundry",
- link: "http://liftoff.msfc.nasa.gov/news/2003/news-laundry.asp",
- description: "Compared to earlier spacecraft, the International Space Station has many luxuries, but laundry facilities are not one of them. Instead, astronauts have other options.",
- pubDate: new Date("Tue, 20 May 2003 08:56:02 GMT")
- }]
-};
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-create/blob/9fb2883e/node_modules/htmlparser2/test/Feeds/02-atom.js
----------------------------------------------------------------------
diff --git a/node_modules/htmlparser2/test/Feeds/02-atom.js b/node_modules/htmlparser2/test/Feeds/02-atom.js
deleted file mode 100644
index 5b5d88e..0000000
--- a/node_modules/htmlparser2/test/Feeds/02-atom.js
+++ /dev/null
@@ -1,18 +0,0 @@
-exports.name = "Atom (1.0)";
-exports.file = "/Atom_Example.xml";
-exports.expected = {
- type: "atom",
- id: "urn:uuid:60a76c80-d399-11d9-b91C-0003939e0af6",
- title: "Example Feed",
- link: "http://example.org/feed/",
- description: "A subtitle.",
- updated: new Date("2003-12-13T18:30:02Z"),
- author: "johndoe@example.com",
- items: [{
- id: "urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a",
- title: "Atom-Powered Robots Run Amok",
- link: "http://example.org/2003/12/13/atom03",
- description: "Some content.",
- pubDate: new Date("2003-12-13T18:30:02Z")
- }]
-};
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org