mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00: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:
parent
e7412717b4
commit
b10bbac061
4 changed files with 8 additions and 0 deletions
|
@ -46,6 +46,11 @@ XMLDocumentBuilder::XMLDocumentBuilder(DOM::Document& document, XMLScriptingSupp
|
|||
{
|
||||
}
|
||||
|
||||
void XMLDocumentBuilder::set_source(String source)
|
||||
{
|
||||
m_document.set_source(move(source));
|
||||
}
|
||||
|
||||
void XMLDocumentBuilder::element_start(const XML::Name& name, HashMap<XML::Name, String> const& attributes)
|
||||
{
|
||||
if (m_has_error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue