Timothy Flynn
7aee254708
LibJS: Use correct epoch offset in InterpretISODateTimeOffset
2024-11-26 15:02:00 -05:00
Tim Ledbetter
9face18ab2
LibWeb: Use correct integer parsing rules in HTMLOListElement::start()
2024-11-26 19:09:24 +01:00
Tim Ledbetter
a61883ae88
LibWeb: Use correct integer parsing rules in HTMLLIElement::value()
2024-11-26 19:09:24 +01:00
Tim Ledbetter
67d05b0104
LibWeb: Use [URL]
extended attribute for HTMLVideoElement.poster
2024-11-26 19:07:53 +01:00
Tim Ledbetter
8ad3479e0e
LibWeb: Update Screen
IDL definition to not inherit from EventTarget
2024-11-26 18:44:26 +01:00
Tim Ledbetter
d73f809af5
LibWeb: Implement HTMLElement.enterKeyHint
...
This reflects the value of the `enterkeyhint` content attribute
2024-11-26 18:38:38 +01:00
Tim Ledbetter
12fc1de9ca
LibWeb: Implement HTMLElement.inputMode
...
This reflects the value of the `inputmode` content attribute
2024-11-26 18:38:38 +01:00
Andreas Kling
733c6b14ff
LibWeb: Teach HTMLObjectElement to negotiate natural size with SVGs
...
We do this by generalizing the code previously used for SVGSVGBox into
something that can be used for NavigableViewportContainer as well.
2024-11-26 18:32:48 +01:00
Andreas Kling
2405805ddf
LibWeb: Delay load event in more HTMLObjectElement situation
2024-11-26 18:32:48 +01:00
Andreas Kling
e88286b337
LibWeb: Mark HTMLObjectElement as potentially delaying the load event
2024-11-26 18:32:48 +01:00
Andreas Kling
b859a6f2e0
LibWeb: Recurse into NavigableContentViewport in layout dumps
2024-11-26 18:32:48 +01:00
Andreas Kling
3ebc7fbd28
LibWeb: Create layout node for HTMLObjectElement navigable containers
...
This makes SVGs in object elements actually render!
2024-11-26 18:32:48 +01:00
Andreas Kling
dd7623eb30
LibWeb: Rename NestedBrowsingContextP => NavigableContainerViewportP
...
...where P is for Paintable :^)
2024-11-26 18:32:48 +01:00
Andreas Kling
11d966f3ba
LibWeb: Make NavigableContainerViewport always have a NavigableContainer
...
Let's not limit this to only corresponding to an HTMLIFrameElement.
2024-11-26 18:32:48 +01:00
Andreas Kling
443a8539e9
LibWeb: Rename Layout::FrameBox => NavigableContainerViewport
2024-11-26 18:32:48 +01:00
Andreas Kling
eadeec8b8d
Tests: Import some svg-in-object-element tests from WPT
2024-11-26 18:32:48 +01:00
Timothy Flynn
a93d32a306
LibJS: Alphabetically sort property keys and error types
...
And make ErrorType definitions use a better hanging-indent style, to
make it easier to maintain going forward.
i.e. instead of:
M(VeryLongErrorNameHere, "very long error "
"message across multiple "
"lines"
We now have:
M(VeryLongErrorNameHere,
"very long error message across multiple "
"lines")
2024-11-26 11:35:15 -05:00
Timothy Flynn
6a9aec29d5
LibJS: Remove unused property names and error types
...
Held off on this during the Temporal rewrite in favor of just removing
these all in one go.
2024-11-26 11:35:15 -05:00
Timothy Flynn
ade510fe17
LibJS: Pass ISO types by value vs. const-reference more correctly
...
We were passing types like ISODate by reference so that they could be
used as forward-declarations. But after commit 021a5f4ded
, we now have
their full definitions anywhere they're needed. So let's pass ISODate by
value everywhere consistently - it is only 8 bytes.
2024-11-26 11:35:15 -05:00
Timothy Flynn
2d9405e5d7
LibJS: Use the TimeDuration alias a bit less in Temporal
...
It was a bit of a semantic mistake too use this alias too eagerly.
Namely, it should not be used to refer to epoch nanoseconds. We now only
use the TimeDuration alias where the spec refers to a value as a time
duration.
2024-11-26 11:35:15 -05:00
Jelle Raaijmakers
06863479be
LibWeb: Fix various local names for custom elements
...
This fixes the typo in `HTMLFieldSetElement` and adds valid local names
for `<meta>`, `<ol>` and `<optgroup>`.
2024-11-26 15:52:54 +01:00
stelar7
74828bbd10
LibWeb: Import WPT for idbfactory.open
2024-11-26 14:50:27 +01:00
stelar7
6c9a8362d6
LibWeb: Implement the wait step for open_a_database_connection
2024-11-26 14:50:27 +01:00
stelar7
4357c3229c
LibWeb: Implement legacyOutputDidListenersThrowFlag
2024-11-26 14:50:27 +01:00
stelar7
932fb2024e
LibWeb: Store IndexedDB Databases mappings properly
2024-11-26 14:50:27 +01:00
stelar7
1656d8fe07
LibWeb: Implement most of upgrade_a_database for IndexedDB
2024-11-26 14:50:27 +01:00
stelar7
ca25f76ccc
LibWeb: Remove old FIXMEs
2024-11-26 14:50:27 +01:00
stelar7
9aebe5f2eb
LibWeb: Dont take a reference to the request in IDBFactory::open()
2024-11-26 14:50:27 +01:00
stelar7
bb31b682a5
LibWeb: Implement IDBDatabase::close()
2024-11-26 14:50:27 +01:00
stelar7
49ad27816b
LibWeb: Properly implement IDBRequest::result()
2024-11-26 14:50:27 +01:00
stelar7
204d776cdb
LibWeb: Properly implement IDBRequest::error()
2024-11-26 14:50:27 +01:00
stelar7
29ddaa76e7
LibWeb: Implement IDBRequest::ready_state()
2024-11-26 14:50:27 +01:00
stelar7
a4b876b43e
LibWeb: Implement IDBRequest::source()
2024-11-26 14:50:27 +01:00
stelar7
48fae7b64f
LibWeb: Add IDBKeyRange
2024-11-26 14:50:27 +01:00
stelar7
20a92a81c4
LibWeb: Add IDBTransaction
2024-11-26 14:50:27 +01:00
stelar7
16ce2b975a
LibWeb: Add IDBObjectStore
2024-11-26 14:50:27 +01:00
stelar7
297c775b34
LibWeb: Add IDBIndex
2024-11-26 14:50:27 +01:00
stelar7
71772d97dc
LibWeb: Add IDBCursor
2024-11-26 14:50:27 +01:00
Jelle Raaijmakers
614b93beca
Meta: Set constructor prototype in IDLGenerators
...
Without this, retrieving `__proto__` from any interface will always
yield an instance of `FunctionPrototype`.
2024-11-26 12:44:05 +00:00
Jelle Raaijmakers
db43ed03a8
Meta: Use namespaced JS::call
invocations in IDLGenerators
...
When experimenting with different inheritance structures, I ended up
seeing compilation failures whenever a parent class defined a `call`
method. This seems more in line with the rest of the code.
2024-11-26 12:44:05 +00:00
Jelle Raaijmakers
872a214f80
LibJS: Make FunctionPrototype's name empty per the spec
2024-11-26 12:44:05 +00:00
Jelle Raaijmakers
74614a10d1
LibJS: Correct spec table number for FunctionObject
2024-11-26 12:44:05 +00:00
Glenn Skrzypczak
74645facae
LibWeb/HTML: Implement cite attribute according to spec
...
Implements the cite attribute of `q`, `blockqoute`, `ins` and `del`
elements according to spec by returning a valid URL.
2024-11-26 11:40:42 +00:00
Khaled Lakehal
2f51e9a98e
LibWeb/HTML: Use default input size (20) when value is 0
...
According to the HTML specification, the `size` attribute of an input
element must be a valid non-negative integer greater than zero. If the
value is invalid or set to `0`, the default size of `20` should be used.
This small change fixes one issue identified in
https://wpt.live/html/rendering/widgets/input-text-size.html
The WPT test suite was also automatically imported.
2024-11-26 10:01:57 +00:00
Timothy Flynn
58828ffd62
LibJS: Implement Temporal.ZonedDateTime.prototype.to*
...
Includes:
Temporal.ZonedDateTime.prototype.toInstant
Temporal.ZonedDateTime.prototype.toPlainDate
Temporal.ZonedDateTime.prototype.toPlainTime
Temporal.ZonedDateTime.prototype.toPlainDateTime
2024-11-26 11:00:56 +01:00
Timothy Flynn
b95528d7b5
LibJS: Stub out Temporal.ZonedDateTime.prototype.getTimeZoneTransition
...
We will have to add facilities to determine next/previous time zone
transitions. Ideally, ICU can provide this.
2024-11-26 11:00:56 +01:00
Timothy Flynn
6d78f1327e
LibJS: Implement Temporal.ZonedDateTime.prototype.startOfDay
2024-11-26 11:00:56 +01:00
Timothy Flynn
3d0f384e01
LibJS: Implement Temporal.ZonedDateTime.prototype.with*
...
Includes:
Temporal.ZonedDateTime.prototype.with
Temporal.ZonedDateTime.prototype.withPlainTime
Temporal.ZonedDateTime.prototype.withCalendar
Temporal.ZonedDateTime.prototype.withTimeZone
2024-11-26 11:00:56 +01:00
Timothy Flynn
f2ab9e1aa9
LibJS: Implement Temporal.ZonedDateTime.prototype.round
2024-11-26 11:00:56 +01:00
Timothy Flynn
eadd0c40c9
LibJS: Implement Temporal.ZonedDateTime.prototype.since/until
2024-11-26 11:00:56 +01:00