Commit Graph

12 Commits

Author SHA1 Message Date
Max Brunsfeld 30b7bf0f46 Make distinct nodes for style/script, set up injection 2018-12-14 17:43:41 -08:00
Max Brunsfeld 0f2d7e1083 Always serialize the full depth of the tag stack 2018-08-29 11:01:00 -07:00
Max Brunsfeld 3ba95dbf3e Represent tag name map as a std::map
This doesn't seem to affect performance, and unordered_map requires
C++11.
2018-06-18 10:05:44 -07:00
Max Brunsfeld 331b0a4b00 Include tag stack size when serializing external scanner 2018-06-18 10:04:59 -07:00
Max Brunsfeld 2a3ef3b7b1 Build tag map with a static method instead of an initializer list 2018-06-15 16:09:46 -07:00
Max Brunsfeld 8e6d71bd54 Don't use fancy enum features 2018-06-15 16:09:46 -07:00
Max Brunsfeld 3fce691fae Use a regular constructor instead of aggregate initialization 2018-06-15 16:09:46 -07:00
Max Brunsfeld 8afd99e35e Use explicit types instead of auto 2018-06-15 16:09:45 -07:00
Max Brunsfeld b4153cd431 Avoid designated initializer syntax for static array
Clang seems to allow this, but it's only for C, not C++
2018-06-12 13:49:54 -07:00
Max Brunsfeld 7cfe147792 Handle elements with optional end tags (li, p, etc)
Co-Authored-By: Ashi Krishnan <queerviolet@github.com>
2018-06-12 10:51:03 -07:00
Max Brunsfeld 21b5fad6f0 Add raw text elements and doctypes
Co-Authored-By: Ashi Krishnan <queerviolet@github.com>
2018-06-11 16:59:44 -07:00
Max Brunsfeld 6ee8f55084 Start tracking element nesting in external scanner
Co-Authored-By: Ashi Krishan <queerviolet@github.com>
2018-06-11 16:59:44 -07:00