Replies: 2 comments 2 replies
-
I've been playing around with the document output from the parser to understand how it works since i'm kinda interested in working with this (and also trying to learn Rust at the same time) Was that the purpose of the |
Beta Was this translation helpful? Give feedback.
-
Was reading through the spec this morning at work, I think I will try to cover some of the missing/incomplete interfaces (node, attributes, document) which will help with building out the whole DOM tree. Will probably create some PRs with small chunks at a time so I don't overload with a 10,000 line commit |
Beta Was this translation helpful? Give feedback.
-
At this moment, the parser will output a node tree that is based on html5_paser/node structure. However, we ultimately need a DOM tree that allows user-agents to parse them. Also, during parsing, we might need the current DOM tree as well, as javascripts can be executed DURING the html5 parsing and change the dom.
The current node structure and DOM structure are both trees, and we might be able to generate a DOM tree straight away in the parser. But there are all kind of interfaces that we need to implement (this way, javascript can process the dom tree). This is still uncharted territory for me so any help and research is appreciated!
Beta Was this translation helpful? Give feedback.
All reactions