Skip to content

JavaScript and XML in Python #175

Open

Description

@jamesconwaydev

What we'd like: parsec.js.parse() returning the ESTree as Python objects, parsec.js.page_state(html) for M12, and parsec.xml.parse() with the node API HTML has, on free-threaded Python too.

Done when: pytest covers each in CI.

Activity

  1. added
    pythonThe Python package
    javascriptThe JavaScript parser, parsec-js
    xmlThe XML parser, parsec-xml
    on Nov 21, 2026
  2. updated Priority Medium and Effort Medium on Nov 21, 2026
  3. jamesconwaydev commented on Nov 22, 2026

    @jamesconwaydev
    CollaboratorAuthor

    The JavaScript half is in #219: parsec_html.js.parse() and parsec_html.js.page_state(), which takes one script's text, with HTMLParser(html).page_state() for a whole page, tested on free-threaded 3.14t too. parsec.xml.parse() waits for the XML parser, so I'll leave this open for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    javascriptThe JavaScript parser, parsec-jspythonThe Python packagexmlThe XML parser, parsec-xml

    Fields

    Priority

    Medium

    Effort

    Medium

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions