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

Have some "simple" examples/functions to parse data #520

Open
jaytaph opened this issue Jul 17, 2024 · 1 comment
Open

Have some "simple" examples/functions to parse data #520

jaytaph opened this issue Jul 17, 2024 · 1 comment

Comments

@jaytaph
Copy link
Member

jaytaph commented Jul 17, 2024

Suppose i want to simply convert a small part of HTML into a DomDocument(Part):

<h1>Hello</h1>
<p>World</p>

I want something simple like: Html5::ParsePartialHtml(data) -> DomDocumentPart

The same with CSS3:

Css3::ParseValue("10x solid black")
Css3::ParseProperty("color: black");
Css3::ParseDeclaration("a { color: black; border: 1px solid } ");

This should return the given CSSValue things

@Sharktheone
Copy link
Member

Sharktheone commented Jul 17, 2024

I haven't worked with the html and css parser yet, so it might be smart to transfer some knowledge. If no one else wants to do it, I'd do it.

I'm currently not home, though, which means the earliest I can really start is by Friday

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📝 Todo
Development

No branches or pull requests

2 participants