linkedom
linkedom copied to clipboard
A triple-linked lists based DOM implementation.
Fixes #153 by adding an `urlAttribute` helper to use in IDL properties that need to reflect HTML attributes representing an URL, such as `HTMLAnchorElement.href`, `HTMLImageElement.src`, etc.
[`Node.baseURI`](https://developer.mozilla.org/en-US/docs/Web/API/Node/baseURI) should be used when getting the `HTMLAnchorElement.href` property. (It maybe needed for other properties as well, will add them here once I investigate.)
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/pathname
Currently `HTMLSlotElement.assignedNodes()` doesn't seem to be supported, I have a couple of components that I'd like to SSR that make use of this API. Do you think `assignedNodes()` could at...
What is the best way to patch viewBox attributes in SVGs to implement baseVal? https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/viewBox
Hi Andrea, ...hope you're doing well! I remember reading your emails on the ES mailing list years ago :) Well... fast-forward; a few days ago I discovered your beautiful DOM...
This is an attempt to fix #167 I do not believe it's correct to suggest the DOMParser implements `globalThis.DOMParser`, the `HTMLElement` implements `globalThis.HTMLElement`, etc. I think these changes should be...
Hi there, I'm running into loads of type errors from linkedom when using the library in a typescript project. These type errors appear to all be either missing properties or...
Due to some TypeScript code that uses `instanceof Location` to tell an argument apart from other types of URLs, I'd need this global class. I was unable to locate where...
Hello! I think I have found a slight issue with how text is escaped. using this code: ```js import { parseHTML } from "https://esm.sh/linkedom" const { document } = parseHTML('')...