srctree
repos
owner
network
issues
0
diffs
0
Public
Robin Linden
parent
3007848c
dfe3c134
html2: Make tokenizer state a scoped enum
inline
split
html2/tokenizer.cpp
added: 4, removed: 4, total 0
@@ -293,7 +293,7 @@ void Tokenizer::run() {
case State::BeforeAttributeValue: {
auto c = consume_next_input_character();
if (!c) {
reconsume_in(AttributeValueUnquoted);
reconsume_in(State::AttributeValueUnquoted);
continue;
}
html2/tokenizer.h
added: 4, removed: 4, total 0
@@ -16,7 +16,7 @@
namespace html2 {
// https://html.spec.whatwg.org/multipage/parsing.html#tokenization
enum State {
enum class State {
Data = 1, // So the state enum values match the number in the spec.
Rcdata,
Rawtext,