mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:48:10 +00:00
LibWeb: Handle javascript: URLs inside LibWeb :^)
This patch makes it possible to execute JavaScript by clicking on an anchor element with href="javascript:your_script_here()".
This commit is contained in:
parent
5e40aa182b
commit
9b0bfcb8b7
4 changed files with 31 additions and 2 deletions
|
@ -121,6 +121,8 @@ public:
|
|||
|
||||
JS::Interpreter& interpreter();
|
||||
|
||||
JS::Value run_javascript(const StringView&);
|
||||
|
||||
private:
|
||||
virtual RefPtr<LayoutNode> create_layout_node(const StyleProperties* parent_style) const override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue