From 2089f280f36292f51ea516dc037c6f7e969bd5dd Mon Sep 17 00:00:00 2001 From: adon Date: Tue, 11 Aug 2015 13:25:32 +0800 Subject: [PATCH 1/7] commenting out TransitionsSparse table --- src/derived-states.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/derived-states.js b/src/derived-states.js index 109583c..a4c083c 100644 --- a/src/derived-states.js +++ b/src/derived-states.js @@ -8,6 +8,9 @@ See the accompanying LICENSE file for terms. // this will eventually move to context parser and it will not be a sparse matrix // Transition table based on https://html.spec.whatwg.org/multipage/syntax.html var DerivedState = {}; + +/* +// used to generate DerivedState.Transitions DerivedState.TransitionsSparse = { 1: {1: 1}, 10: {1: 2, 43: 6}, @@ -24,6 +27,7 @@ DerivedState.TransitionsSparse = { 42: {1: 2, 43: 6}, 43: {1: 2}, }; +*/ DerivedState.TransitionName = {}; From f8da8bf906c3557a71fb9edc8fd59fdf803b64c6 Mon Sep 17 00:00:00 2001 From: adon Date: Tue, 11 Aug 2015 16:55:05 +0800 Subject: [PATCH 2/7] added test-vectors from branch preserve-quoting https://github.com/yahoo/html-purify/blob/preserve-quoting/tests/test-ve ctors.js --- tests/test-vectors.js | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/tests/test-vectors.js b/tests/test-vectors.js index 7db885a..9d9523b 100644 --- a/tests/test-vectors.js +++ b/tests/test-vectors.js @@ -55,7 +55,7 @@ var html5secVectors = [ { id: 10, input: "", - output: "" + output: "" }, { id: 11, @@ -75,7 +75,7 @@ var html5secVectors = [ { id: 14, input: "", - output: "" + output: "" }, { id: 15, @@ -120,7 +120,7 @@ var html5secVectors = [ { id: 23, input: "
", - output: "
" + output: "
" }, { id: 24, @@ -180,7 +180,7 @@ var html5secVectors = [ { id: 35, input: "1", - output: "1" + output: "1" }, { id: 36, @@ -190,7 +190,7 @@ var html5secVectors = [ { id: 37, input: "", - output: "" + output: "" }, { id: 38, @@ -205,7 +205,7 @@ var html5secVectors = [ { id: 40, input: "", - output: "" + output: "" }, { id: 41, @@ -490,12 +490,12 @@ var html5secVectors = [ { id: 98, input: "\r\n