1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:18:12 +00:00
serenity/Userland/Libraries/LibWeb
Luke be47a94876 LibWeb: Only prepare scripts on insertion if they're not parser inserted
Also updates the "inserted_into" function as per the previous commit.

Changes the FIXME, as according to the spec there is no notification
system to be notified of things such as the node becoming connected.

Instead, "becomes connected" means when the insertion steps are run,
the element is now connected when it previously wasn't.

https://html.spec.whatwg.org/multipage/infrastructure.html#becomes-connected

This is done in this PR because the insertion steps are run when the
start tag is inserted. This made it try to prepare the script too early
for inline scripts.

The order of operations in the HTML document parser ensures that
the parser document is set before the insertion steps are run.
2021-04-06 21:42:00 +02:00
..
Bindings LibWeb: Add ProcessingInstruction node 2021-04-06 21:42:00 +02:00
CodeGenerators LibWeb: Support "pseudo" CSS properties 2021-04-05 18:49:04 +02:00
CSS LibWeb: Support the :last-of-type CSS selector :^) 2021-04-06 13:06:42 +02:00
DOM LibWeb: Make the node mutation event functions spec compliant 2021-04-06 21:42:00 +02:00
DumpLayoutTree Everywhere: Remove klog(), dbg() and purge all LogStream usage :^) 2021-03-12 17:29:37 +01:00
HighResolutionTime LibWeb: Stub out the PerformanceTiming object from Navigation Timing 2021-01-18 15:11:20 +01:00
HTML LibWeb: Only prepare scripts on insertion if they're not parser inserted 2021-04-06 21:42:00 +02:00
Layout LibWeb: Support two-value background-repeat 2021-04-05 18:49:04 +02:00
Loader LibWeb: Pass optional status code to ResourceLoader callbacks 2021-04-03 16:34:34 +02:00
NavigationTiming LibWeb: Stub out the PerformanceTiming object from Navigation Timing 2021-01-18 15:11:20 +01:00
Page LibWeb+WebContent: Keep track of screen rect 2021-04-04 00:37:54 +02:00
Painting LibWeb: Don't hit test a stacked child if it is behind its parent 2021-03-31 23:53:15 +02:00
Scripts Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
SVG Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
Tests Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
UIEvents LibWeb: Dispatch "resize" events on the Window object 2021-03-16 18:10:21 +01:00
XHR LibWeb: Implement XMLHttpRequest.getResponseHeader() 2021-04-03 16:34:34 +02:00
CMakeLists.txt LibWeb: Add ProcessingInstruction node 2021-04-06 21:42:00 +02:00
DOMTreeModel.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
DOMTreeModel.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Dump.cpp LibWeb: Support the :last-of-type CSS selector :^) 2021-04-06 13:06:42 +02:00
Dump.h LibWeb: Rename StyleRule => CSSStyleRule 2021-03-07 17:45:15 +01:00
FontCache.cpp Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
FontCache.h Libraries: Add missing headers 2021-01-22 21:49:54 +01:00
Forward.h LibWeb: Add ProcessingInstruction node 2021-04-06 21:42:00 +02:00
InProcessWebView.cpp LibWeb: Make tiled backgrounds scroll with content 2021-03-07 13:49:20 +01:00
InProcessWebView.h LibWeb+WebContent: Keep track of screen rect 2021-04-04 00:37:54 +02:00
LayoutTreeModel.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
LayoutTreeModel.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Namespace.cpp Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Namespace.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Origin.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
OutOfProcessWebView.cpp LibWeb+WebContent: Keep track of screen rect 2021-04-04 00:37:54 +02:00
OutOfProcessWebView.h LibWeb+WebContent: Keep track of screen rect 2021-04-04 00:37:54 +02:00
QualifiedName.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
StylePropertiesModel.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
StylePropertiesModel.h Libraries: Add missing headers 2021-01-22 21:49:54 +01:00
TreeNode.h LibWeb: Sever parent/child connections in ~TreeNode() 2021-04-06 15:51:55 +02:00
URLEncoder.cpp Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
URLEncoder.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
WebContentClient.cpp LibWeb+WebContent: Support displaying tooltips in OOPWV 2021-03-30 21:21:17 +02:00
WebContentClient.h LibWeb+WebContent: Support displaying tooltips in OOPWV 2021-03-30 21:21:17 +02:00
WebViewHooks.h LibWeb: Add in all of the plumbing required to use the JS console over IPC 2021-02-28 15:30:17 +01:00