mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibXML+LibWeb: Store the XML document's original source
Similar to how we store an HTML document's original source. This allows the source to be inspected with "View Source" in the Browser.
This commit is contained in:
committed by
Linus Groh
parent
e7412717b4
commit
b10bbac061
Notes:
sideshowbarker
2024-07-17 04:50:07 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/b10bbac061 Pull-request: https://github.com/SerenityOS/serenity/pull/15905 Reviewed-by: https://github.com/alimpfard ✅ Reviewed-by: https://github.com/linusg ✅
@@ -29,6 +29,7 @@ public:
|
||||
bool has_error() const { return m_has_error; }
|
||||
|
||||
private:
|
||||
virtual void set_source(String) override;
|
||||
virtual void element_start(XML::Name const& name, HashMap<XML::Name, String> const& attributes) override;
|
||||
virtual void element_end(XML::Name const& name) override;
|
||||
virtual void text(String const& data) override;
|
||||
|
||||
Reference in New Issue
Block a user