summaryrefslogtreecommitdiff
path: root/src/tokeniser/tokeniser.c
diff options
context:
space:
mode:
authorAndrew Sidwell <andy@entai.co.uk>2008-08-04 00:46:18 +0000
committerAndrew Sidwell <andy@entai.co.uk>2008-08-04 00:46:18 +0000
commitb4760da5d776ca41efb612f373b0545590ef4df3 (patch)
tree5f8bbc502e8d4bb4d13ebdddd6240a4b18fe518f /src/tokeniser/tokeniser.c
parent36ac9bb2c31c56a29e3dac2dbcaba821707b374e (diff)
downloadlibhubbub-b4760da5d776ca41efb612f373b0545590ef4df3.tar.gz
libhubbub-b4760da5d776ca41efb612f373b0545590ef4df3.tar.bz2
Fix bug in hubbub & html5lib tests relating to parsing entities ending without semicolons in attribute values.
svn path=/trunk/hubbub/; revision=4892
Diffstat (limited to 'src/tokeniser/tokeniser.c')
-rw-r--r--src/tokeniser/tokeniser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tokeniser/tokeniser.c b/src/tokeniser/tokeniser.c
index a756a72..1f1ae40 100644
--- a/src/tokeniser/tokeniser.c
+++ b/src/tokeniser/tokeniser.c
@@ -2811,7 +2811,7 @@ bool hubbub_tokeniser_handle_named_entity(hubbub_tokeniser *tokeniser)
return false;
cptr = parserutils_inputstream_peek(tokeniser->input,
- ctx->match_entity.offset + ctx->match_entity.length,
+ ctx->match_entity.offset + ctx->match_entity.length - 1,
&len);
c = CHAR(cptr);