summaryrefslogtreecommitdiff
path: root/libs/litehtml/src/el_base.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/litehtml/src/el_base.cpp')
-rw-r--r--libs/litehtml/src/el_base.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/litehtml/src/el_base.cpp b/libs/litehtml/src/el_base.cpp
new file mode 100644
index 0000000000..baf0256539
--- /dev/null
+++ b/libs/litehtml/src/el_base.cpp
@@ -0,0 +1,13 @@
+#include "html.h"
+#include "el_base.h"
+#include "document.h"
+
+litehtml::el_base::el_base(const std::shared_ptr<document>& doc) : html_tag(doc)
+{
+
+}
+
+void litehtml::el_base::parse_attributes()
+{
+ get_document()->container()->set_base_url(get_attr("href"));
+}