1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-01 11:12:07 +00:00

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
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();
}