Yorick Peterse
ecf6851711
Revert "Move linking of child nodes to a dedicated mixin."
...
This doesn't actually make things any easier. It also introduces a weirdly
named mixin.
This reverts commit 0968465f0c
.
2014-04-24 21:16:31 +02:00
Yorick Peterse
0968465f0c
Move linking of child nodes to a dedicated mixin.
2014-04-24 09:43:50 +02:00
Yorick Peterse
08d412da7e
First shot at removing the AST layer.
...
The AST layer is being removed because it doesn't really serve a useful
purpose. In particular when creating a streaming parser the AST nodes would
only introduce extra overhead.
As a result of this the parser will instead emit a DOM tree directly instead of
first emitting an AST.
2014-04-21 23:05:39 +02:00
Yorick Peterse
25edd2de00
Use a Set for storing void element names.
2014-04-10 12:28:47 +02:00
Yorick Peterse
c077988dd6
Tree building of doctypes.
2014-04-03 22:44:00 +02:00
Yorick Peterse
bdb76cefc5
Dedicated handling of XML declaration nodes.
2014-04-02 22:30:45 +02:00
Yorick Peterse
6d866523b8
Renamed XML::Builder to XML::TreeBuilder.
2014-03-28 16:37:37 +01:00
Yorick Peterse
e141c084f9
Dedicated DOM builder class for CDATA tags.
2014-03-28 09:27:53 +01:00
Yorick Peterse
2b250bbf42
Rough DOM building setup.
2014-03-28 08:59:48 +01:00
Yorick Peterse
6ae52c1b12
Initial rough sketches for the DOM API.
2014-03-26 18:12:00 +01:00
Yorick Peterse
79818eb349
Added a convenience class for parsing HTML.
...
This removes the need for users having to set the `:html` option themselves.
2014-03-25 09:40:24 +01:00
Yorick Peterse
eae13d21ed
Namespaced the lexer/parser under Oga::XML.
...
With the upcoming XPath and CSS selector lexers/parsers it will be confusing to
keep these in the root namespace.
2014-03-25 09:34:38 +01:00
Yorick Peterse
8ce76be050
Moved the parser class to Oga::Parser.
...
Oga will use the same parser for XML and HTML so it doesn't make sense to
separate the two into different namespaces (at least for now).
2014-03-11 22:01:50 +01:00
Yorick Peterse
e764ba640a
Basic parser setup without tests.
...
Who needs tests anyway!
2014-02-26 22:17:47 +01:00
Yorick Peterse
5755c325bd
Imported a half-assed lexer.
2014-02-26 19:54:11 +01:00
Yorick Peterse
702477ca28
Basic project layout.
2014-02-26 19:50:16 +01:00