You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pathname field is undefined when create an a element. I expected empty string.
import{DOMParser}from"https://deno.land/x/deno_dom/deno-dom-wasm.ts";constdocument=newDOMParser().parseFromString("<!DOCTYPE html><html></html>","text/html");consta=document.createElement('a')console.log(a.pathname);// on browser(chrome): '', on deno-dom: undefined
The text was updated successfully, but these errors were encountered:
5d-jh
changed the title
pathname in a element is undefineda.pathname is undefined
Oct 17, 2023
Yeah, that's an HTMLAnchorElement specific property—a subclass of HTMLElement—but deno-dom has only implemented its parent class HTMLElement. When I get some time I'll go and implement the various subclasses including HTMLAnchorElement
Ideally I'd like to maybe automatically generate them from Web IDL... Gotta look into that
pathname
field is undefined when create ana
element. I expected empty string.The text was updated successfully, but these errors were encountered: