mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-04 01:12:56 +00:00
LibWeb: Add position tracking information to HTML tokens
This commit is contained in:
parent
fd982f6562
commit
aa7939bc6c
Notes:
sideshowbarker
2024-07-18 17:42:03 +09:00
Author: https://github.com/alimpfard
Commit: aa7939bc6c
Pull-request: https://github.com/SerenityOS/serenity/pull/7322
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