mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28:12 +00:00
LibWeb: Fix tokenizing scripts with '<' in them
The EMIT_CHARACTER_AND_RECONSUME_IN was emitting the current token instead of the specified codepoint.
This commit is contained in:
parent
f3799b501e
commit
a3936f10eb
1 changed files with 6 additions and 6 deletions
|
@ -86,7 +86,7 @@
|
|||
|
||||
#define EMIT_CHARACTER_AND_RECONSUME_IN(codepoint, new_state) \
|
||||
do { \
|
||||
m_queued_tokens.enqueue(m_current_token); \
|
||||
m_queued_tokens.enqueue(HTMLToken::make_character(codepoint)); \
|
||||
will_reconsume_in(State::new_state); \
|
||||
m_state = State::new_state; \
|
||||
goto new_state; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue