diff options
author | Andrew Sidwell <andy@entai.co.uk> | 2008-06-19 01:49:02 +0000 |
---|---|---|
committer | Andrew Sidwell <andy@entai.co.uk> | 2008-06-19 01:49:02 +0000 |
commit | 28b06ed590c8e0d2acb4a0d42e4eca4d6f0aef3c (patch) | |
tree | 9f751d125edc733ef13a962348fbeb19af815e4e /src | |
parent | 1db020fb0e52995b2938512496740c11b81d61a3 (diff) | |
download | libhubbub-28b06ed590c8e0d2acb4a0d42e4eca4d6f0aef3c.tar.gz libhubbub-28b06ed590c8e0d2acb4a0d42e4eca4d6f0aef3c.tar.bz2 |
Add CDATA tests and the infrastructure to support them.
svn path=/trunk/hubbub/; revision=4410
Diffstat (limited to 'src')
-rw-r--r-- | src/tokeniser/tokeniser.c | 3 | ||||
-rw-r--r-- | src/tokeniser/tokeniser.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/tokeniser/tokeniser.c b/src/tokeniser/tokeniser.c index 1c73e9d..2fe00ac 100644 --- a/src/tokeniser/tokeniser.c +++ b/src/tokeniser/tokeniser.c @@ -361,6 +361,9 @@ hubbub_error hubbub_tokeniser_setopt(hubbub_tokeniser *tokeniser, case HUBBUB_TOKENISER_CONTENT_MODEL: tokeniser->content_model = params->content_model.model; break; + case HUBBUB_TOKENISER_PROCESS_CDATA: + tokeniser->process_cdata_section = params->process_cdata; + break; } return HUBBUB_OK; diff --git a/src/tokeniser/tokeniser.h b/src/tokeniser/tokeniser.h index 20bbe20..2292cd7 100644 --- a/src/tokeniser/tokeniser.h +++ b/src/tokeniser/tokeniser.h @@ -27,6 +27,7 @@ typedef enum hubbub_tokeniser_opttype { HUBBUB_TOKENISER_BUFFER_HANDLER, HUBBUB_TOKENISER_ERROR_HANDLER, HUBBUB_TOKENISER_CONTENT_MODEL, + HUBBUB_TOKENISER_PROCESS_CDATA } hubbub_tokeniser_opttype; /** @@ -51,6 +52,8 @@ typedef union hubbub_tokeniser_optparams { struct { hubbub_content_model model; } content_model; + + bool process_cdata; } hubbub_tokeniser_optparams; /* Create a hubbub tokeniser */ |