Commit Graph

15 Commits

Author SHA1 Message Date
Max Brunsfeld 5d8c68c137 Fix range of script tag content 2018-06-28 20:32:27 -07:00
Max Brunsfeld 6222cd9127 Use NULL instead of nullptr 2018-06-18 10:17:38 -07:00
Max Brunsfeld 331b0a4b00 Include tag stack size when serializing external scanner 2018-06-18 10:04:59 -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 6923b13394 Remove one range-based for loop 2018-06-15 16:09:45 -07:00
Max Brunsfeld 5def8f2a86 Use string methods for copying bytes, not loops 2018-06-15 16:09:45 -07:00
Max Brunsfeld 43f84098b8 Fix crash on unexpected closing tag after error 2018-06-15 15:36:30 -07:00
Max Brunsfeld 95b8b772d5 Handle void tags at EOF 2018-06-12 14:06:16 -07:00
Max Brunsfeld 5f2a122de7 Parse tag names as separate tokens 2018-06-12 12:20:13 -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 43e4826bb7 Use toupper, iswspace from cwctype header 2018-06-11 17:22:50 -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 e56df0fc7f Add comments, allow slashes in unquoted attribute values
Co-Authored-By: Ashi Krishan <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