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:
parent
fd982f6562
commit
aa7939bc6c
4 changed files with 108 additions and 21 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue