Pierre Tachoire
4a9a4cbc01
add CompilationCallback
...
and load polyfill depending the source content
2025-07-11 17:20:52 -07:00
Karl Seguin
818f4540fd
Add basic ShadowRoot implementation, polyfill webcomponents
2025-07-11 17:32:01 +08:00
Karl Seguin
d6ace3f695
Merge pull request #863 from lightpanda-io/innerHTML_head
...
e2e-test / zig build release (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
e2e-test / cdp-and-hyperfine-bench (push) Has been cancelled
e2e-test / perf-fmt (push) Has been cancelled
zig-test / zig build dev (push) Has been cancelled
zig-test / browser fetch (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
nightly build / build-linux-x86_64 (push) Has been cancelled
nightly build / build-linux-aarch64 (push) Has been cancelled
nightly build / build-macos-aarch64 (push) Has been cancelled
nightly build / build-macos-x86_64 (push) Has been cancelled
wpt / web platform tests json output (push) Has been cancelled
wpt / perf-fmt (push) Has been cancelled
Setting innerHTML now captures head elements
2025-07-11 08:03:14 +08:00
Karl Seguin
dd04759de7
Merge pull request #869 from lightpanda-io/performance_observer
...
more PerformnaceObserver placeholders
2025-07-11 08:03:01 +08:00
Pierre Tachoire
10fbde84ba
Merge pull request #879 from lightpanda-io/css-parser-error
...
Fix parser identifier with escaped string
2025-07-10 16:10:14 -07:00
Pierre Tachoire
2b5652e1e4
wip
2025-07-10 16:01:36 -07:00
Pierre Tachoire
18796ae44e
css: allow escaped first char in identifier name
2025-07-10 15:44:04 -07:00
Pierre Tachoire
a67692dc29
Merge pull request #877 from lightpanda-io/visible-pseudoclass
...
Visible Psuedoclass
2025-07-10 14:18:10 -07:00
Muki Kiboigo
1efd756a55
add visible pseudoclass
2025-07-10 12:40:44 -07:00
Pierre Tachoire
29671acdb6
Merge pull request #847 from lightpanda-io/name-property-handler
...
e2e-test / zig build release (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
e2e-test / cdp-and-hyperfine-bench (push) Has been cancelled
e2e-test / perf-fmt (push) Has been cancelled
zig-test / zig build dev (push) Has been cancelled
zig-test / browser fetch (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
enable conditionnal loading for polyfill
2025-07-10 09:18:29 -07:00
Karl Seguin
e82240a60e
Setting innerHTML now captures head elements
...
I couldn't find where the behavior is described. AND, browsers seem to behave
differently depending on the state of the page (blank document vs actual page).
Still, some sites use innerHTML to load <script> tags, and, in libdom at least,
these are created in the implicit head. We cannot just copy the body nodes. To
keep it simple, I now copy all head and body elements.
2025-07-10 22:19:53 +08:00
Karl Seguin
72083c8614
Merge pull request #868 from lightpanda-io/element_hasAttributes_fix
...
Fix element.hasAttributes
2025-07-10 21:46:33 +08:00
Karl Seguin
8c2c1e534c
Merge pull request #865 from lightpanda-io/document_domain
...
Fix document.domain
2025-07-10 21:46:15 +08:00
Karl Seguin
bfc01d957b
Merge pull request #874 from lightpanda-io/document_styleSheets
...
add dummy document.get_styleSheets
2025-07-10 21:46:00 +08:00
Karl Seguin
2d78b2c219
add TODO note for dummy implementation
2025-07-10 17:03:51 +08:00
Karl Seguin
34ab8152fb
add dummy document.get_styleSheets
2025-07-10 13:45:49 +08:00
Karl Seguin
fb58c50fb7
Merge pull request #870 from lightpanda-io/popover_open_pseudo_selector
...
e2e-test / zig build release (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
e2e-test / cdp-and-hyperfine-bench (push) Has been cancelled
e2e-test / perf-fmt (push) Has been cancelled
zig-test / zig build dev (push) Has been cancelled
zig-test / browser fetch (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
nightly build / build-linux-x86_64 (push) Has been cancelled
nightly build / build-linux-aarch64 (push) Has been cancelled
nightly build / build-macos-aarch64 (push) Has been cancelled
nightly build / build-macos-x86_64 (push) Has been cancelled
wpt / web platform tests json output (push) Has been cancelled
wpt / perf-fmt (push) Has been cancelled
Accept popover-over pseudo selector
2025-07-10 08:27:43 +08:00
Pierre Tachoire
955f917015
Merge pull request #873 from lightpanda-io/macos-build
...
ci: fix macos version for building
2025-07-09 15:35:09 -07:00
Pierre Tachoire
12c7df98e4
ci: fix macos version for building
2025-07-09 15:26:07 -07:00
Pierre Tachoire
889c29a163
Merge pull request #871 from lightpanda-io/ws-http-max
...
ws: increase max http message from 2kb to 4kb
2025-07-09 15:13:50 -07:00
Pierre Tachoire
886c1370e7
ws: increase max http message from 2kb to 4kb
2025-07-09 15:02:40 -07:00
Karl Seguin
febcc0a673
Merge pull request #864 from lightpanda-io/link_href
...
e2e-test / zig build release (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
e2e-test / cdp-and-hyperfine-bench (push) Has been cancelled
e2e-test / perf-fmt (push) Has been cancelled
zig-test / zig build dev (push) Has been cancelled
zig-test / browser fetch (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
add HTMLElementLink get/set href
2025-07-09 18:48:17 +08:00
Karl Seguin
98cad6bf8d
Accept popover-over pseudo selector
...
Optimize pseudo-selector parsing. Make comparison case insensitive, bucket
comparisons by length, and process input as integers.
2025-07-09 18:45:28 +08:00
Karl Seguin
7e5daedc8c
more PerformnaceObserver placeholders
2025-07-09 18:10:23 +08:00
Karl Seguin
da3fe6f7ea
fix test
2025-07-09 17:41:05 +08:00
Karl Seguin
f612ce262f
Update src/browser/html/elements.zig
...
Co-authored-by: Sjors <72333389+sjorsdonkers@users.noreply.github.com >
2025-07-09 16:16:45 +08:00
Karl Seguin
24ccfca279
Fix element.hasAttributes
...
libdom's hasAttributes is based on the type. Elements, according to libdom,
always have attributes, thus hasAttributes always return true, even when the
element in question has no attribute. Change our _hasAttributes to only return
true if the attribute count > 0.
2025-07-09 16:14:53 +08:00
Karl Seguin
34b3c3982b
Fix document.domain
...
Currently seems to always return null. Doesn't seem to be a way in libdom to
change this. The property is deprecated, and MDN recommends using location.host
instead, so change document.get_domain to wrap location.host.
2025-07-09 14:29:05 +08:00
Karl Seguin
7f732c94da
add HTMLElementLink get/set href
2025-07-09 13:28:32 +08:00
Karl Seguin
bdc49a65aa
Merge pull request #859 from lightpanda-io/document_fragment_query_selector
...
e2e-test / zig build release (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
e2e-test / cdp-and-hyperfine-bench (push) Has been cancelled
e2e-test / perf-fmt (push) Has been cancelled
zig-test / zig build dev (push) Has been cancelled
zig-test / browser fetch (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
Add querySelect and querySelectorAll to DocumentFragment
2025-07-09 10:25:35 +08:00
Karl Seguin
73d82dd0ba
I guess we can't use the call_arena for querySelectorAll
2025-07-09 10:19:16 +08:00
Karl Seguin
dfa4403c8a
arena -> call_arena for querySelectorAll
2025-07-09 10:11:26 +08:00
Karl Seguin
b8f3b19499
Merge pull request #857 from lightpanda-io/improved_native_proto
...
Improve prototype resolution for native types
2025-07-09 10:01:38 +08:00
Karl Seguin
448718d112
Merge pull request #858 from lightpanda-io/callback_with_new_this
...
Allow JS Callback to be called with a previously-unseen this.
2025-07-09 09:34:14 +08:00
Pierre Tachoire
6de55df4bc
Merge pull request #856 from lightpanda-io/resize_observer
...
e2e-test / zig build release (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
e2e-test / cdp-and-hyperfine-bench (push) Has been cancelled
e2e-test / perf-fmt (push) Has been cancelled
zig-test / zig build dev (push) Has been cancelled
zig-test / browser fetch (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
nightly build / build-linux-x86_64 (push) Has been cancelled
nightly build / build-linux-aarch64 (push) Has been cancelled
nightly build / build-macos-aarch64 (push) Has been cancelled
nightly build / build-macos-x86_64 (push) Has been cancelled
wpt / web platform tests json output (push) Has been cancelled
wpt / perf-fmt (push) Has been cancelled
add dummy ResizeObserver
2025-07-08 15:50:08 -07:00
Pierre Tachoire
189fe26667
Merge pull request #862 from lightpanda-io/macos-14
...
ci: use macos-14 for nightly builds
2025-07-08 15:49:47 -07:00
Pierre Tachoire
7230884116
ci: use macos-14 for nightly builds
2025-07-08 08:27:45 -07:00
Karl Seguin
d7fba81f8f
Add querySelect and querySelectorAll to DocumentFragment
2025-07-08 19:24:35 +08:00
Karl Seguin
29ac13185c
Allow JS Callback to be called with a previously-unseen this.
2025-07-08 19:17:59 +08:00
Karl Seguin
3a49ee83ce
Improve prototype resolution for native types
...
Prototype resolution of Zig types previously had 2 limitations (bug?). The first
was that the Zig prototype chain could only be 1 deep. You couldn't do A->B->C
where each of those was a Zig type (but you could do A->B->C->D->E ... so long
as every other type was a C opaque value).
The other limitation was that Zig prototypes only worked when the nested field
was directly embedded in the struct (i.e. not a pointer). So you could do:
```zig
const X = struct {
proto: XParent,
};
```
But not:
```zig
const X = struct {
proto: *XParent,
};
```
This addresses both limitations. The first issue is solved by keeping track
of the cumulative offset
2025-07-08 18:37:24 +08:00
Karl Seguin
95cbbc3b45
add dummy ResizeObserver
2025-07-08 18:35:25 +08:00
Karl Seguin
2a5c7d139f
Merge pull request #855 from lightpanda-io/zig_fmt
...
e2e-test / zig build release (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
e2e-test / cdp-and-hyperfine-bench (push) Has been cancelled
e2e-test / perf-fmt (push) Has been cancelled
zig-test / zig build dev (push) Has been cancelled
zig-test / browser fetch (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
zig fmt
2025-07-08 18:34:14 +08:00
Karl Seguin
b74863873b
zig fmt
2025-07-08 18:28:21 +08:00
Karl Seguin
7b46fe9cc8
Merge pull request #848 from lightpanda-io/fix_insecure_forward_proxy
...
e2e-test / zig build release (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
e2e-test / cdp-and-hyperfine-bench (push) Has been cancelled
e2e-test / perf-fmt (push) Has been cancelled
zig-test / zig build dev (push) Has been cancelled
zig-test / browser fetch (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
Fix non-tls forward-proxy
2025-07-08 09:52:23 +08:00
Karl Seguin
afc8c69a82
Merge pull request #854 from lightpanda-io/remove_debug_log
...
remove std.debug.print
2025-07-08 09:39:19 +08:00
Karl Seguin
38bbad6e88
Revert "fix secure connection logic"
...
This reverts commit b6132f2497 .
2025-07-08 09:33:53 +08:00
Karl Seguin
1df47fd415
remove std.debug.print
2025-07-08 09:33:19 +08:00
Pierre Tachoire
faf21c5fff
Merge pull request #853 from lightpanda-io/typo-fix
...
typo fix
2025-07-07 17:24:28 -07:00
Karl Seguin
2aee580795
Merge pull request #849 from lightpanda-io/mutation_observer_loop
...
Rework MutationObserver callback.
2025-07-08 08:15:02 +08:00
Pierre Tachoire
404c027546
typo fix
2025-07-07 17:14:52 -07:00