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

HTMLTimeElement losts dateTime property #270

Closed
TechQuery opened this issue May 20, 2024 · 1 comment · Fixed by #272
Closed

HTMLTimeElement losts dateTime property #270

TechQuery opened this issue May 20, 2024 · 1 comment · Fixed by #272
Labels
enhancement New feature or request

Comments

@TechQuery
Copy link
Contributor

Reproduce bug

import { parseHTML } from 'linkedom';

const { document } = parseHTML(
    '<time datetime="1989-06-03 16:00:00">A big event</time>'
);
const { dateTime } = document.querySelector('time');

console.log(dateTime);  // undefined in LinkeDOM

Web standard

https://developer.mozilla.org/en-US/docs/Web/API/HTMLTimeElement/dateTime

@WebReflection
Copy link
Owner

it's not lost, it's just not defined anywhere, there's no special treatment for the time element so this is a feature request, and this is how you'd do it: https://github.com/WebReflection/linkedom/blob/main/how-to-contribute.md#htmlclasses-contributions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants