Commit Graph

49 Commits

Author SHA1 Message Date
Henri Sivonen
89dc7f5ddb Bug 1355779 - Skip interned nsHtml5ElementName lookup for Custom Elements (ones with hyphen). r=wchen
MozReview-Commit-ID: 4xQlhExyo7d
2017-04-12 14:28:49 +03:00
Henri Sivonen
6274301b73 Bug 1355769 - Avoid malloc for nsHtml5ElementName when processing a non-interned element name. r=wchen
MozReview-Commit-ID: 4In5wo0flOB
2017-04-12 13:21:03 +03:00
Henri Sivonen
f5eeedfb21 Bug 1309195 - Mark strBuf as empty after the contents have been used or ignored. r=wchen.
MozReview-Commit-ID: 5KU62o2IMPs
2016-10-19 10:38:20 +03:00
Henri Sivonen
4eb7f7145d Bug 1286911. r=wchen.
MozReview-Commit-ID: hzAu0jKAxt
2016-09-27 13:47:53 +03:00
Henri Sivonen
a6fb532484 Bug 1288084 - Expose a line number for each attribute, v2; r=wchen 2016-09-20 16:31:57 +02:00
Henri Sivonen
4d0b61f3f6 Bug 1176698 - Use fallible allocator for attribute values in the HTML parser. r=wchen. 2015-08-25 18:05:46 +03:00
Henri Sivonen
bee2d42d10 Bug 489820 part 2 - Grow buffers to the worst-case size before tokenizing; fix comments. r=wchen. 2015-08-25 18:05:45 +03:00
Henri Sivonen
ee6c94fc31 Bug 489820 part 1 - Make charRefBuf non-growable and have the same lifetime as the tokenizer. r=wchen. 2015-08-25 18:05:45 +03:00
Henri Sivonen
c8c7896633 Bug 1176668 - Fix overflow avoidance in numeric character reference handling. r=wchen. 2015-08-25 18:05:45 +03:00
Henri Sivonen
d1bb36905e Bug 559303 - Consolidate strBuf and longStrBuf in the tokenizer. r=wchen. 2015-08-25 18:05:45 +03:00
Michael[tm] Smith
f9d39da746 Bug 1096172 - Fix position reporting of bad charrefs in RCDATA. r=hsivonen. 2015-04-02 12:48:06 +03:00
Henri Sivonen
a078e918b1 Bug 981279 - Clear the attribute holder after parsing innerHTML. r=smaug 2014-03-10 11:14:16 +02:00
Henri Sivonen
775e097398 Bug 959150 part 5 - Avoid reallocating the attribute holder when parsing with nsHtml5StringParser. r=smaug. 2014-03-05 21:38:50 +02:00
Ryan VanderMeulen
35226d8b0a Backed out 8 changesets (bug 959150) for Linux debug build bustage on a CLOSED TREE.
Backed out changeset 30bdc9b15e8e (bug 959150)
Backed out changeset 630e489aed30 (bug 959150)
Backed out changeset c6874004efe7 (bug 959150)
Backed out changeset ebc67518a962 (bug 959150)
Backed out changeset 14441e528582 (bug 959150)
Backed out changeset 8d0ae8bffb08 (bug 959150)
Backed out changeset 603b63c33e9a (bug 959150)
Backed out changeset 261e2d244c54 (bug 959150)
2014-03-05 15:26:07 -05:00
Henri Sivonen
5cc7ddc8b5 Bug 959150 part 5 - Avoid reallocating the attribute holder when parsing with nsHtml5StringParser. r=smaug. 2014-03-05 21:38:50 +02:00
Henri Sivonen
17c19c799e Bug 870787 HTML parser part - Make <img> a form-associated element in the HTML parser. r=smaug 2013-06-06 11:02:30 +03:00
William Chen
d46f74e162 Bug 818976 - Part 3: Generated code for HTML5 parser. r=hsivonen 2013-03-26 00:15:23 -07:00
Henri Sivonen
0075e1c889 Bug 809956 - Deal with an odd number of ] characters before ]]> in a CDATA section in the HTML parser. r=smaug. 2012-11-12 15:42:23 +02:00
Henri Sivonen
e99efa93f4 Bug 503190 - Include assertions in the C++ translator output. r=smaug. 2012-10-01 11:52:32 +03:00
David Zbarsky
a0e342d0b9 Bug 772758 - Clean up some build warnings in html5 parser r=hsivonen 2012-07-13 11:55:21 -07:00
Henri Sivonen
e2125244e2 Bug 535530 - Transition to the return state eagerly when a semicolon has matched when tokenizing a named character reference in HTML. r=smaug. 2011-11-30 15:11:37 +02:00
Henri Sivonen
2d37e6c0db Bug 704058 - Sync HTML parser .java sources in m-c with the htmlparser repo. rs=smaug. DONTBUILD 2011-11-21 16:12:15 +02:00
Henri Sivonen
3ab6f79a66 Bug 482921 part 11 - Deduplicate the tokenizer loop in .cpp. r=Olli.Pettay. 2011-11-01 13:33:11 +02:00
Henri Sivonen
8153c335a6 Bug 482921 part 4 - Support XML syntax highlighting in the parser core. r=Olli.Pettay. 2011-11-01 13:33:11 +02:00
Henri Sivonen
a42c6e14db Bug 482921 part 1 - Implement HTML syntax highlighting using the new parser. r=Olli.Pettay. 2010-07-30 13:15:38 +03:00
Henri Sivonen
034b529d7e Bug 612527 - Implement spec tweaks to U+0000 handling in the HTML5 parser. rs=jonas, a=blocking2.0-betaN. 2010-12-09 11:27:58 +02:00
Henri Sivonen
d3fc35ebd5 Bug 612529 part 2 - Rework how scopingness and specialness is handled in stack nodes; refresh the set of scoping elements to spec. rs=jonas, a=blocking2.0-betaN. 2010-12-09 11:27:58 +02:00
Henri Sivonen
b40e883623 Bug 612529 part 1 - Pack the dispatch group and the flags of an element into one 32-bit bitfield. r=jonas, a=blocking2.0-betaN. 2010-12-09 11:27:57 +02:00
Henri Sivonen
e4808f1f2e Bug 594730 - Make the content attribute in <meta> act as an encoding declaration only if http-equiv="Content-Type" is present. rs=jonas, a=blocking2.0-betaN. 2010-12-08 14:37:19 +02:00
Henri Sivonen
f794bd9866 Bug 610345 - Add MathML named characters that expand to two code points to the HTML5 parser. rs=jonas, a=blocking2.0-betaN. 2010-11-23 13:49:27 +02:00
Henri Sivonen
6d0b9252cc Bug 502176 bustage fix - Restore the refcount tracing code to nsHtml5Tokenizer. a=orange. 2010-11-10 12:03:48 +02:00
Henri Sivonen
4cb66b631d Bug 555940 - Make named character names use a dedicated data type. r=tglek, a=jst. 2010-09-28 10:32:31 +03:00
Henri Sivonen
a00ca20e07 Bug 502176 - Replace static use of jArray with a plain old data staticJArray, introduce an autoJArray for nicer memory management. r=tglek, a=jst. 2010-09-28 10:32:31 +03:00
Henri Sivonen
13cd90db61 Bug 570309 - Remove the dead code for the "comment end space" state. rs=jonas, a=blocking2.0-betaN. 2010-10-25 12:22:59 +03:00
Henri Sivonen
05c2d6dcf0 Bug 482921 part 0 - Make preparations for enabling transition reporting in the HTML5 tokenizer. rs=jonas, a=jst. 2010-09-28 10:32:31 +03:00
Henri Sivonen
0c29bea23f Bug 601604 - Emit ]] or ] when ]]EOF or ]EOF appears in a CDATA section in text/html. rs=jonas, a=jst. 2010-10-07 10:27:16 +03:00
Henri Sivonen
1fb780a7a1 Bug 595844 - Check the namespace of the current element on the tree builder stack when deciding whether to support CDATA sections in text/html. rs=jonas, a=blocking2.0-betaN. 2010-09-15 11:37:55 +03:00
Henri Sivonen
4288f990af Bug 581944 - Reorder the tokenizer states in the HTML5 tokenizer. rs=sicking. 2010-07-26 16:13:51 +03:00
Henri Sivonen
1174cd44dc Bug 570309 - Experimentally make -- > not terminate a comment in HTML. r=jonas. 2010-06-19 09:38:41 +03:00
Henri Sivonen
ed398af2c1 Bug 555941 - Split HILO_ACCEL out of nsHtml5NamedCharacters. r=jonas, a=benjamin. 2010-06-24 11:54:33 +03:00
Henri Sivonen
425934bd1a Bug 563526 - Ignore U+0000 in element content when the tree builder is not in the "text" mode or the "in foreign" mode. r=jonas. 2010-06-09 09:45:32 +03:00
Henri Sivonen
6a659f4aed Bug 568800 - Make &foo= not expand in an attribute value. r=sicking. 2010-06-02 14:01:57 +03:00
Henri Sivonen
89b94267e1 Bug 566280 - Text run prefixed by U+0000 shows only U+FFFD. r=sicking. 2010-05-27 16:08:19 +03:00
Henri Sivonen
38f1270287 Bug 551344 part 6 - Address more review comments from sicking in the Java parts of the HTML5 parser. r=jonas. 2010-04-19 16:25:13 +03:00
Henri Sivonen
ac559f05b8 Bug 551344 part 5 - Address more sicking's review comments in the Java parts of the HTML5 parser. r=jonas. 2010-04-16 13:52:06 +03:00
Henri Sivonen
9483ad3aa3 Bug 555462 follow-up - Sync HTML5 parser Java sources with the backout. rs=sicking. NPOTB. 2010-03-30 11:21:36 +03:00
Henri Sivonen
faa5ab7153 Bug 554513 - Remove buffer growth limits from the HTML5 parser where the old parser did not have the exact corresponding limits. rs=sicking. 2010-03-26 09:50:21 +02:00
Henri Sivonen
070ff9188e Bug 539434 follow-up - Sync the Java sources of the HTML5 parser with the htmlparser repository. rs=sicking. NPOTB. 2010-03-26 09:50:20 +02:00
Ben Newman
0a1825f5bf Bug 504442 - Remove content/html/parser and land parser/html/javasrc/*.java. 2009-07-17 13:50:20 -07:00