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

WAT extractor: add attributes of the <html> element as metadata #35

Open
sebastian-nagel opened this issue Jun 5, 2024 · 0 comments
Open

Comments

@sebastian-nagel
Copy link

The element allows for a couple of attributes (global attributes) which might qualify to be added as metadata to the WAT JSON data.

Specifically, it's about the "lang" attribute, here a few examples:

<html lang="es-MX">
<html lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml">
<html dir="ltr" lang="cs-cz">
<html xml:lang="en-gb" lang="en-gb" >
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es-MX">
<html xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://ogp.me/ns#" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" style="overflow-x: hidden !important;">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant