LibWeb: Add position tracking information to HTML tokens

This commit is contained in:
Ali Mohammad Pur 2021-05-20 23:11:41 +04:30 committed by Andreas Kling
parent fd982f6562
commit aa7939bc6c
Notes: sideshowbarker 2024-07-18 17:42:03 +09:00
4 changed files with 108 additions and 21 deletions

View file

@ -57,6 +57,10 @@ String HTMLToken::to_string() const
builder.append("' }");
}
builder.appendff("@{}:{}-{}:{}",
m_start_position.line, m_start_position.column,
m_end_position.line, m_end_position.column);
return builder.to_string();
}