Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to add element inconsistent with browser results #979

Closed
2516455367 opened this issue Jul 12, 2023 · 0 comments
Closed

Failed to add element inconsistent with browser results #979

2516455367 opened this issue Jul 12, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@2516455367
Copy link

const {Window} = require('happy-dom');

const window = new Window({
url: "https://www.example.com"
});
document = window.document
document.write(<!DOCTYPE html><html><head><meta charset="UTF-8"><title></title></head><body></body></html>)
var id = Math.floor(Math.random() * 100000000)
console.log(id)
var span = document.createElement('span')
console.log(span.setAttribute)
console.log(span.removeAttribute)
console.log(span.removeChild)
span.setAttribute('id', id)
document.body.appendChild(span)
var ele = document.getElementById(id)
console.log(ele)

@2516455367 2516455367 added the bug Something isn't working label Jul 12, 2023
2516455367 referenced this issue Jul 18, 2023
…ad-properties-of-undefined-reading-write

#992@patch: Fixes problem where HTMLIFrameElement fails to load page …
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant