1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:38:12 +00:00
serenity/Libraries/LibHTML/Parser
Andreas Kling b083a233d8 LibHTML: Add Comment and CharacterData nodes and improve HTML parsing
This patch adds the CharacterData subclass of Node, which is now the
parent class of Text and a new Comment class.

A Comment node is one of these in HTML: <!--hello friends-->
Since these occur somewhat frequently on the web, we need to be able
to parse them.

This patch also adds a child rejection mechanism to the DOM tree.
Nodes can now override is_child_allowed(Node) and return false if they
don't want a particular Node to become a child of theirs. This is used
to prevent Document from taking on unwanted children.
2019-10-12 23:34:05 +02:00
..
CSSParser.cpp LibHTML: Handle CSS declarations that don't end in ';' 2019-10-09 18:42:08 +02:00
CSSParser.h LibHTML: Make the CSS and HTML parsers take StringViews 2019-10-07 19:11:33 +02:00
HTMLParser.cpp LibHTML: Add Comment and CharacterData nodes and improve HTML parsing 2019-10-12 23:34:05 +02:00
HTMLParser.h LibHTML: Make the CSS and HTML parsers take StringViews 2019-10-07 19:11:33 +02:00