Repository navigation
1.2.0
Released on Friday, November 6 2026.
What's Changed
- Fixed
window.originbeingnullfor a frame without an address of its own instead of the origin of its creator - Fixed text given to
append,prependand the like failing instead of becoming a text node - Fixed a class deriving from a type of the DOM not having its instances on its prototype chain
- Fixed an object with
handleEventnot being accepted as an event listener, or one withacceptNodeas a filter of aTreeWalkerorNodeIterator - Fixed a function not being accepted as a callback whose result is waited for, e.g. of
navigator.locks.request: it runs on the event loop and is followed to its promise - Fixed promise jobs not running after a timer, a listener or any other callback of the host: they waited for something else to run them, so
awaitcould hang - Fixed a
DOMExceptionwith a name having no code (e.g.NotAllowedError) being namedErrorfor script - Fixed a date from the DOM not being a
Datefor script, and bytes not surviving a structured clone - Fixed a function not being accepted as a callback with a result, e.g. as a filter of a
TreeWalker - Fixed a worker that failed to start throwing from
postMessageinstead of firing anerrorevent - Fixed collections from attributes, e.g.
document.linksorelement.children, not being iterable - Fixed
classListnot being iterable and having noforEach,entries,keysandvalues - Fixed a member of an options dictionary without a default becoming
undefinedin text - Fixed members of the DOM being read-only and copied onto every prototype, so polyfills could neither replace them nor reach derived types (e.g. patching
Element.prototype.querySelector): each is now on the prototype of the interface declaring it, as WebIDL says (writable, enumerable and configurable) - Fixed interface objects of the window being read-only and enumerable:
window.Node = ...now also changesNode, as WebIDL says - Fixed bound functions and callable proxies not being accepted as callbacks (e.g.
setTimeout(f.bind(x)),addEventListener('click', f.bind(x)),requestAnimationFrame(f.bind(x)),onclick), failing withCould not find corresponding cast target - Fixed
removeEventListenernot removing listeners, as a function was turned into another listener each time - Fixed errors of event listeners not reaching the
errorlisteners of the window; an error thrown by such a listener goes to the browsing context - Fixed the address of a script getting lost, so errors and stack traces named
<anonymous>: they tell the resolved address of the script, or of the document for one written into it - Fixed scripts written into a document telling lines and columns of their own in errors and stack traces instead of the ones in the document
- Fixed errors of scripts and of callbacks (e.g. timers, animation frames) not reaching the
errorlisteners of the window; what they don't handle bypreventDefaultgoes to the browsing context - Fixed
onerrorof the window getting the event instead of the message, source, line, column and error, and returningtruenot handling the error - Fixed
errorof anErrorEventbeing a .NET exception instead of what script threw - Fixed an
onclickand the like throwing taking down the process and skipping the other listeners, as it was not reported like a listener - Fixed a
TypeErroror the like thrown for script by a member of the DOM becoming a plainError - Fixed modules being read from the local disk; every module is loaded through the configured requesters (#153) @michaelthyregod
- Fixed modules imported by a relative address being requested from the wrong address (e.g.
./a.jsof/dir/page.htmlfrom/dir/page.html/a.js, and the imports of a module of another origin from the own origin); they are resolved against what imports them (#153) @michaelthyregod - Fixed modules being known by the path of their address, so errors didn't tell the whole address, and imports of an imported module were looked for from the wrong place
- Fixed a module written into a document telling lines and columns of its own, and importing from somewhere other than the base address of the document
- Fixed an error of a module being reported twice
- Fixed an event handler (e.g.
onclick) returningfalsenot cancelling the event - Fixed an event handler attribute being added on top of the previous one when it changed, staying when it was removed, and throwing a syntax error at whoever set the attribute instead of reporting it
- Fixed only the first of several methods or constructors of the same name being callable (e.g.
new URLSearchParams('a=1'),register(url, options)); the one fitting the arguments is called - Fixed static members not being reachable (e.g.
DOMRect.fromRect); they are on the constructor and may take the window as first parameter - Fixed members of classes marked with
DomExposedending up on what they are exposed to (e.g. the members of a constructor onwindow); only extension methods do - Fixed arrays and other iterables not converting to sequences (arrays and the interfaces they implement)
- Fixed
ArrayBuffer, typed arrays, andDataViewnot converting toByte[],ArraySegment<Byte>, andObject(e.g. a request body being sent as[object Uint8Array]) - Fixed numbers not converting from and to
Int64,UInt64,Int16,Byte,SByte,Single(only from), andDecimal, as well as nullable forms of all value types - Fixed values of
DomLiteralsenums being numbers instead of strings (e.g.shadowRoot.mode), and such enums being exposed as objects - Fixed
Byte[]being given as an array of numbers instead of anArrayBuffer - Fixed errors thrown by constructors losing their message
- Fixed WebIDL stringifiers (
URL,URLSearchParams,Location,Range,DOMTokenList,DOMMatrix) answeringString(x)with[object X]; a type overridingToStringhas atoString - Fixed sandboxed browsing contexts without
allow-scriptsrunning scripts and event handler attributes - Fixed
postMessageignoringtargetOrigin, giving it as the origin of the event, turning objects into strings, and not having asource; messages are copied by the structured clone algorithm, and the options form is supported - Added
clearResourceTimingsandsetResourceTimingBufferSizetoperformance - Added
{ type: 'module' }andonerrortoWorker, with imports being loaded by the worker - Added
MessageChannelwith queued message delivery, structured cloning, and transferable ports for windows and workers - Added
IScriptValueCloner, so that values of script can be kept, e.g. by IndexedDB - Added
structuredClone,origin,isSecureContextandlengthto the window - Added
DOMException, which is what the DOM now throws for scripts: anErrorwith thenameandcodeof the standard, also available as a constructor and with its constants - Added
TextEncoderandTextDecoder - Added the iterator of a type giving
entries(WebIDLiterable<K, V>), so that e.g.for (const [k, v] of new URLSearchParams(s))works - Added overloads brought by extensions for the methods of the DOM, as
addEventListenerwith options has them - Added
cryptowithgetRandomValuesandrandomUUID, but withoutsubtle - Added
requestIdleCallbackandcancelIdleCallback - Fixed
DOMParserreplacing the document of the page with what it parsed, and running its scripts - Added
PerformanceObserver, for the marks and measures ofperformance - Added custom elements, run for the registry of AngleSharp: classes deriving from
HTMLElementor another element, with their callbacks running when the call of a script returns (requires AngleSharp 1.10) - Fixed classes deriving from a DOM type taking every object of that type for an instance of them
- Added what a promise rejects with being a
DOMExceptionor what was thrown, if the task behind it failed with one - Added
import.meta.urlto modules; without it, e.g., webpack stopped withAutomatic publicPath is not supported in this browser - Added
ArraySegment<Byte>being given as aUint8Array - Added classes with implicit conversions standing for a WebIDL union, e.g. of a string and a sequence of strings, which fixes such conversions failing; an implicit conversion from such a class is what a script receives for it
- Added the same-origin policy: script gets
nullfor a node of another origin, and for its window aCrossOriginWindowwith onlywindow,self,frames,parent,top,closed,length,location(only to be set, and only for frames inside the own document),postMessage,focus,blurandclose - Added
performance.mark,measure,getEntries,getEntriesByName,getEntriesByType,clearMarks,clearMeasures, along withPerformanceEntry,PerformanceMarkandPerformanceMeasure - Released 1.2.0 by @FlorianRappl in #154
New Contributors
- @FlorianRappl with @Copilot made their first contribution in #149
- @michaelthyregod made their first contribution in #153
Full Changelog: v1.1.4...v1.2.0