Commit Graph
126 Commits
Author SHA1 Message Date
serge-sans-paille 53e5242f30 Bug 2041298 - Comply with clang-tidy's modernize-use-nullptr check for parser/ r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D301771
2026-06-10 07:08:36 +00:00
Henri Sivonen d13776d321 Bug 2038124 - Optimize setting attributes on non-custom HTML elements from parser. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D302276
2026-06-02 09:12:39 +00:00
Alexandru Marc 16e384440d Revert "Bug 2038124 addendum - Simplify the attribute holder in the HTML parser. r=smaug" for causing build bustages @ Element.cpp
This reverts commit 82b2e13b45.

Revert "Bug 2038124 - Optimize setting attributes on non-custom HTML elements from parser. r=smaug"

This reverts commit 2d1ee1cd69.
2026-06-02 07:41:40 +00:00
Henri Sivonen 2d1ee1cd69 Bug 2038124 - Optimize setting attributes on non-custom HTML elements from parser. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D302276
2026-06-02 07:07:26 +00:00
Atila Butkovits d68e85e91d Revert "Bug 2038124 addendum - Simplify the attribute holder in the HTML parser. r=smaug" for causing bustages at Element.cpp.
This reverts commit 9dd3f6b595.

Revert "Bug 2038124 - Optimize setting attributes on non-custom HTML elements from parser. r=smaug"

This reverts commit b1774ce65e.
2026-06-01 21:47:14 +00:00
Henri Sivonen b1774ce65e Bug 2038124 - Optimize setting attributes on non-custom HTML elements from parser. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D302276
2026-06-01 20:50:16 +00:00
Henri Sivonen 9986518e26 Bug 2037935 - Special-case the most common element and attribute names in Speedometer3 innerHTML/DOMParser parsing. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D302275
2026-05-27 06:30:15 +00:00
Keith Cirkel 95d7a5a7b1 Bug 2028401 - Part 4 - Resync htmlparser to b09277d r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D299704
2026-05-22 19:34:29 +00:00
rperta e9d08d36dd Revert "Bug 2028401, Bug 2019979 - Part 4 - Resync htmlparser to b09277d r=hsivonen" for causing wpt failures at html5lib_innerHTML_tests_innerHTML_1.html
This reverts commit 9c3f1a9500.

Revert "Bug 2019979 - Clean up dom.lift_select_parser_restrictions.enabled r=hsivonen"

This reverts commit 05ce1fb123.
2026-05-22 16:40:04 +00:00
Keith Cirkel 9c3f1a9500 Bug 2028401 - Part 4 - Resync htmlparser to b09277d r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D299704
2026-05-22 14:52:33 +00:00
Alexandru Marc eef30b2ead Revert (Bug 2028401, Bug 2019979) for causing mochitest failures @ test_bug922681
This reverts commit 9cfeccd372.

Revert "Bug 2019979 - Clean up dom.lift_select_parser_restrictions.enabled r=hsivonen"

This reverts commit 7c2ee56e70.
2026-05-21 21:26:19 +00:00
Keith Cirkel 9cfeccd372 Bug 2028401 - Part 4 - Resync htmlparser to bd7f0f7 r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D299704
2026-05-21 20:15:23 +00:00
Alexandru Marc a74cb95f65 Revert (Bug 2028401, Bug 2019979) for causing mochitest failures @ test_html5_tree_construction_part2
This reverts commit 8cea467d1c.

Revert "Bug 2019979 - Clean up dom.lift_select_parser_restrictions.enabled r=hsivonen"

This reverts commit 03d82311a4.
2026-05-21 18:23:44 +00:00
Keith Cirkel 8cea467d1c Bug 2028401 - Part 4 - Resync htmlparser to bd7f0f7 r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D299704
2026-05-21 16:56:17 +00:00
Keith Cirkel edf2167941 Bug 2023824 - Implement shadowrootslotassignment r=webidl,emilio
Differential Revision: https://phabricator.services.mozilla.com/D288343
2026-04-11 09:14:11 +00:00
Keith Cirkel 32f444692e Bug 2018902 - Part 1: Add shadowrootcustomelementregistry in HTML parser r=hsivonen,dom-core
Differential Revision: https://phabricator.services.mozilla.com/D286874
2026-03-16 15:30:33 +00:00
Alice Boxhall e5cf85c1e4 Bug 1981341 - Add referenceTarget and shadowRootReferenceTarget attributes. r=webidl,emilio,hsivonen
Allows setting referenceTarget when creating shadow roots declaratively or programatically, and also getting the referenceTarget value for a shadow root.

Differential Revision: https://phabricator.services.mozilla.com/D260140
2025-09-08 13:39:34 +00:00
Tom Schuster ffeb0d2ce6 Bug 1975392 - More consistently use underscore in StaticAtom identifier. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D255935
2025-07-03 12:26:51 +00:00
Tom Schuster 4027a199b5 Bug 1951893 - Update the HTML5 parser. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D240597
2025-03-11 11:36:09 +00:00
Makoto Kato fcc8e73e7e Bug 1725806 - Part 1. Add autocorrect attribute in html parser. r=dom-core,hsivonen
Implement https://html.spec.whatwg.org/#autocorrection for HTML parser.

Differential Revision: https://phabricator.services.mozilla.com/D221569
2024-10-28 17:06:49 +00:00
serge-sans-paille 262f78c07f Bug 1922838 - Replace ArrayLength, ArrayEnd and MOZ_ARRAY_LENGTH by standard alternative r=glandium,necko-reviewers,jgilbert,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,bytesized,janv,dimi,daisuke,karlt,gstoll,canaltinova,timhuang
Namely std::size, std::end and std::size. This drops C support for
MOZ_ARRAY_LENGTH but it wasn't used anyway.

Differential Revision: https://phabricator.services.mozilla.com/D224611
2024-10-28 08:21:19 +00:00
Alexandru Marc a5eb905bf4 Backed out changeset d92f391b3b0c (bug 1922838) for backing out bug 1915351 2024-10-25 16:42:33 +03:00
serge-sans-paille 07101ac24d Bug 1922838 - Replace ArrayLength, ArrayEnd and MOZ_ARRAY_LENGTH by standard alternative r=glandium,necko-reviewers,jgilbert,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,bytesized,janv,dimi,daisuke,karlt,gstoll,canaltinova,timhuang
Namely std::size, std::end and std::size. This drops C support for
MOZ_ARRAY_LENGTH but it wasn't used anyway.

Differential Revision: https://phabricator.services.mozilla.com/D224611
2024-10-24 09:06:01 +00:00
Alexandru Marc 004e704b22 Backed out changeset 448597bce69d (bug 1922838) for causing build bustages. CLOSED TREE 2024-10-24 11:37:49 +03:00
serge-sans-paille 2c916d4973 Bug 1922838 - Replace ArrayLength, ArrayEnd and MOZ_ARRAY_LENGTH by standard alternative r=glandium,necko-reviewers,jgilbert,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,bytesized,janv,dimi,daisuke,karlt,gstoll,canaltinova,timhuang
Namely std::size, std::end and std::size. This drops C support for
MOZ_ARRAY_LENGTH but it wasn't used anyway.

Differential Revision: https://phabricator.services.mozilla.com/D224611
2024-10-24 07:38:30 +00:00
Adam Vandolder 1a930c2506 Bug 1890428 - Add shadowrootserializable attribute. r=dom-core,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D206954
2024-05-15 16:40:20 +00:00
Tamas Szentpeteri 2b8d8ca135 Backed out 2 changesets (bug 1890428) for causing wpt failures on idlharness.https.html. CLOSED TREE
Backed out changeset 1954ce9669b8 (bug 1890428)
Backed out changeset 3e45e3d15eed (bug 1890428)
2024-05-15 11:19:46 +03:00
Adam Vandolder b04d4d4a7c Bug 1890428 - Add shadowrootserializable attribute. r=dom-core,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D206954
2024-05-15 03:01:18 +00:00
Cristian Tuns badab1c1b7 Backed out 2 changesets (bug 1890428) for causing failures in idlharness.window.html?exclude=Node CLOSED TREE
Backed out changeset f9cf0740eef2 (bug 1890428)
Backed out changeset 37e2a10a9022 (bug 1890428)
2024-05-14 19:42:37 -04:00
Adam Vandolder 7c3aa4aeb8 Bug 1890428 - Add shadowrootserializable attribute. r=dom-core,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D206954
2024-05-14 16:43:27 +00:00
Henri Sivonen 8912e2899e Bug 1884108 - Add interned attribute "event" to the HTML parser. r=dom-core,peterv
Differential Revision: https://phabricator.services.mozilla.com/D203902
2024-03-08 11:51:56 +00:00
Adam Vandolder f6565c9ebc Bug 1880188 - Add shadowrootclonable attribute support. r=webidl,emilio
Differential Revision: https://phabricator.services.mozilla.com/D202357
2024-02-28 19:00:34 +00:00
Adam Vandolder 41253c9010 Bug 1712140 - Part 1: Add Declarative ShadowDOM template attributes to parser. r=dom-core,emilio,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D193673
2023-12-07 21:27:09 +00:00
Iulian Moraru 8d186a8450 Backed out 6 changesets (bug 1712140) for causing sanitizer failures on nsHtml5TreeBuilder.cpp. CLOSED TREE
Backed out changeset b374469160e9 (bug 1712140)
Backed out changeset dfc44cccff32 (bug 1712140)
Backed out changeset 3a35e1401130 (bug 1712140)
Backed out changeset a93481858c38 (bug 1712140)
Backed out changeset a861fd445f56 (bug 1712140)
Backed out changeset dc1dc389f2dc (bug 1712140)
2023-12-07 08:16:23 +02:00
Adam Vandolder df29580266 Bug 1712140 - Part 1: Add Declarative ShadowDOM template attributes to parser. r=dom-core,emilio,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D193673
2023-12-06 22:50:48 +00:00
Stanca Serban 34d35a19ee Backed out 6 changesets (bug 1712140) for causing Linux related wpt failures in nsHtml5TreeBuilder.cpp. CLOSED TREE
Backed out changeset 3d799b386f3e (bug 1712140)
Backed out changeset 2ed53d545d6d (bug 1712140)
Backed out changeset 6f50077df42a (bug 1712140)
Backed out changeset e7c5449482f9 (bug 1712140)
Backed out changeset 5490dad148ef (bug 1712140)
Backed out changeset 50828058065e (bug 1712140)
2023-12-06 00:18:38 +02:00
Adam Vandolder a84c60dcca Bug 1712140 - Part 1: Add Declarative ShadowDOM template attributes to parser. r=dom-core,emilio,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D193673
2023-12-05 18:18:15 +00:00
Iulian Moraru 80baabd575 Backed out 6 changesets (bug 1712140) for causing wpt failures on declarative-shadow-dom-opt-in.html.
Backed out changeset 78e3a33470ae (bug 1712140)
Backed out changeset 8601fce480ef (bug 1712140)
Backed out changeset 4d2749962c5f (bug 1712140)
Backed out changeset b65511d17150 (bug 1712140)
Backed out changeset 8ae1f766f1f9 (bug 1712140)
Backed out changeset 4ffe7a6ad366 (bug 1712140)
2023-12-04 22:30:04 +02:00
Adam Vandolder 093a1c208c Bug 1712140 - Part 1: Add Declarative ShadowDOM template attributes to parser. r=dom-core,emilio,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D193673
2023-12-04 17:35:48 +00:00
Stanca Serban 3fa8347485 Backed out 6 changesets (bug 1712140) for causing wpt failures in declarative-shadow-dom-opt-in.html.
Backed out changeset 554a46ed8046 (bug 1712140)
Backed out changeset 14ebbfca2e84 (bug 1712140)
Backed out changeset 98dd5766dd46 (bug 1712140)
Backed out changeset 4241a7241a9b (bug 1712140)
Backed out changeset 59ee434d503e (bug 1712140)
Backed out changeset ff3bb42f91d1 (bug 1712140)
2023-12-01 03:26:27 +02:00
Adam Vandolder 25e193dc4a Bug 1712140 - Part 1: Add Declarative ShadowDOM attributes to parser. r=dom-core,emilio,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D193673
2023-11-30 23:17:14 +00:00
Emilio Cobos Álvarez 990106b121 Bug 1861068 - Make nsHTML5AttributeName constructors allocate less. r=hsivonen
This removes a bunch of allocations on startup.

Java changes: https://github.com/validator/htmlparser/pull/90

Differential Revision: https://phabricator.services.mozilla.com/D191870
2023-10-25 18:26:49 +00:00
Emilio Cobos Álvarez b0151878a9 Bug 1861010 - Avoid leaking on the nsHtml5AttributeName constructor. rpending=hsivonen CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D191865
2023-10-25 14:04:40 +00:00
Emilio Cobos Álvarez 7aa7edbcb0 Bug 1861010 - Improve nsHtml5AttributeName. r=hsivonen
In particular:

 * Store local names, namespaces, etc inline.
 * Avoid taking unnecessary atom references for non-interned atoms.

As a follow-up, we can look into making the input data truly static,
which would be nice.

Depends on D191853

Differential Revision: https://phabricator.services.mozilla.com/D191854
2023-10-25 12:37:26 +00:00
Henri Sivonen aeec0d45b1 Bug 1859527 - Update the generated includes in the HTML parser. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D191186
2023-10-18 08:40:49 +00:00
Mirko Brodesser 8d5b09646a Bug 1845073: add "fetchpriority" attribute to HTML parser. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D184458
2023-08-01 06:47:51 +00:00
Tom Schuster 9800e4119b Bug 1842199 - Add nonce attribute to HTML parser. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D182777
2023-07-10 12:48:23 +00:00
Cristina Horotan 47466e06c7 Backed out changeset 24e6bd152417 (bug 1627263) as requested because it landed with the wrong bug number 2023-07-10 14:31:32 +03:00
Tom Schuster a07c2d992f Bug 1627263 - Add nonce attribute to HTML parser. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D182777
2023-07-10 10:39:45 +00:00
Noemi Erli b00c4f8caf Backed out changeset dd6b4605ab60 (bug 1627263) for causing bustages in nsHtml5StackNode.h CLOSED TREE 2023-07-07 15:01:27 +03:00