Giter Club home page Giter Club logo

Comments (1)

domfarolino avatar domfarolino commented on June 16, 2024

So basically as per IRC conversations, we want to create a parser that works for a rather strict subset of HTML elements. We should try and decide what elements we'll want to include. We can make this an incredibly basic list and keep expanding on it as we go I think. And it doesn't have to follow the standard perfectly if that makes our job easier (said no real browser vendor ever, actually...well...not true lol).

I think this is a good idea because I don't know anything about parsing and it would be fun to build this! I'm going to find a basic tutorial on parsing and then we can figure out how to go from there. Below is a list of HTML elements I have in mind:

  • h1, h2, h3, h4, h5, h6
  • p
  • ...continue adding more

Since this browser is going to be super basic we shouldn't worry about styles or a CSS equivalent thing at all probably. This is more of a concern for the graphics stuff, but it links in here a little bit because we don't want to add elements whose default UA styles are too complex for us to implement in the graphics stack. For example, it might make sense to only include block elements until we can flesh out more of our graphics work and add easy support for inlining elements, vertical and horizontal aligning, and things like inline styles maybe.

from html-parser.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.