diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2009-11-21 17:01:50 +0000 |
---|---|---|
committer | Adam Kocoloski <kocolosk@apache.org> | 2009-11-21 17:01:50 +0000 |
commit | 3a4fad07cb5097598eefd0cd7f588c5881a61c8f (patch) | |
tree | 6945d805eb72a37a5b27ae14a7ec2d1e8690fdac /src/mochiweb/mochiweb_html.erl | |
parent | a2ebd6155b8171befd8f55b42c48bc563bb330b0 (diff) |
upgrade mochiweb to r113, use hooks instead of forking mochijson2. COUCHDB-474
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@882941 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/mochiweb/mochiweb_html.erl')
-rw-r--r-- | src/mochiweb/mochiweb_html.erl | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/mochiweb/mochiweb_html.erl b/src/mochiweb/mochiweb_html.erl index 0e030c13..77100d50 100644 --- a/src/mochiweb/mochiweb_html.erl +++ b/src/mochiweb/mochiweb_html.erl @@ -305,6 +305,18 @@ test_tokens() -> {data, <<" A= B <= C ">>, false}, {end_tag, <<"script">>}] = tokens(<<"<script type=\"text/javascript\"> A= B <= C </script>">>), + [{start_tag, <<"script">>, [{<<"type">>, <<"text/javascript">>}], false}, + {data, <<" A= B <= C ">>, false}, + {end_tag, <<"script">>}] = + tokens(<<"<script type =\"text/javascript\"> A= B <= C </script>">>), + [{start_tag, <<"script">>, [{<<"type">>, <<"text/javascript">>}], false}, + {data, <<" A= B <= C ">>, false}, + {end_tag, <<"script">>}] = + tokens(<<"<script type = \"text/javascript\"> A= B <= C </script>">>), + [{start_tag, <<"script">>, [{<<"type">>, <<"text/javascript">>}], false}, + {data, <<" A= B <= C ">>, false}, + {end_tag, <<"script">>}] = + tokens(<<"<script type= \"text/javascript\"> A= B <= C </script>">>), [{start_tag, <<"textarea">>, [], false}, {data, <<"<html></body>">>, false}, {end_tag, <<"textarea">>}] = @@ -672,7 +684,8 @@ tokenize_attr_value(Attr, B, S) -> O = S1#decoder.offset, case B of <<_:O/binary, "=", _/binary>> -> - tokenize_word_or_literal(B, ?INC_COL(S1)); + S2 = skip_whitespace(B, ?INC_COL(S1)), + tokenize_word_or_literal(B, S2); _ -> {Attr, S1} end. |