gecko-dev/parser/html
Edgar Chen 3f791b5050 Bug 1556352 - Part 1: Do not set form owner from parser for form-associated custom element; r=smaug
See steps 14 of https://html.spec.whatwg.org/commit-snapshots/3ad5159be8f27e110a70cefadcb50fc45ec21b05/#create-an-element-for-the-token

From spec perspective, FACE needs this in order to enqueue the formAssociated callback
while FACE is inserted into document. Otherwise it would bail out in
https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#association-of-controls-and-forms:parser-inserted-flag,
and wouldn't run https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#reset-the-form-owner
steps nor https://html.spec.whatwg.org/multipage/custom-elements.html#custom-element-reactions:reset-the-form-owner

From implementation perspective, we don't implement parser inserted flag, but we do
update the form owner from parser. Not doing this would make the subsequent part
which implements formAssociated callback a bit simpler, where we don't need to consider
or handle the case that form owner is set from parser.

Differential Revision: https://phabricator.services.mozilla.com/D129646
2021-10-28 10:29:37 +00:00
..
java Bug 1670357 - Remove `make` targets for cleaning: `clean`, `realclean`, `clobber`, `distclean`, `clobber_all`, `everything` r=firefox-build-system-reviewers,mhentges 2020-10-15 20:37:18 +00:00
javasrc Bug 1724243 - Make text/plain and MediaDocuments use the Standards Mode. r=smaug,emilio 2021-10-01 12:55:28 +00:00
jArray.h
moz.build Backed out 4 changesets (bug 1688452) for assertion and bc failures on browser_translation_bing.js. 2021-09-29 20:13:33 +03:00
nsAHtml5TreeBuilderState.h Bug 1679522 - Fix include directives and forward declarations. r=andi,necko-reviewers,jgilbert 2021-03-25 10:19:44 +00:00
nsAHtml5TreeOpSink.h Bug 1679522 - Fix include directives and forward declarations. r=andi,necko-reviewers,jgilbert 2021-03-25 10:19:44 +00:00
nsHtml5ArrayCopy.h
nsHtml5AtomTable.cpp
nsHtml5AtomTable.h
nsHtml5AttributeEntry.h
nsHtml5AttributeName.cpp
nsHtml5AttributeName.h
nsHtml5AutoPauseUpdate.h
nsHtml5ByteReadable.h
nsHtml5ContentCreatorFunction.h
nsHtml5DependentUTF16Buffer.cpp
nsHtml5DependentUTF16Buffer.h
nsHtml5DocumentBuilder.cpp
nsHtml5DocumentBuilder.h Bug 1673931 - Avoid including Document.h from header files. r=emilio 2020-11-23 16:07:43 +00:00
nsHtml5DocumentMode.h
nsHtml5ElementName.cpp
nsHtml5ElementName.h
nsHtml5Highlighter.cpp Bug 1726374 - Correctly highlight <!-- a <!-->b in View Source. r=smaug 2021-08-20 09:03:33 +00:00
nsHtml5Highlighter.h
nsHtml5HtmlAttributes.cpp
nsHtml5HtmlAttributes.h
nsHtml5Macros.h
nsHtml5MetaScanner.cpp Bug 786797 - Check for integer overflow when computing new buffer sizes. r=smaug 2021-01-21 17:02:58 +00:00
nsHtml5MetaScanner.h Bug 1724920 - Sort headers in the generated parts of the HTML parser. r=smaug 2021-08-11 08:08:52 +00:00
nsHtml5MetaScannerCppSupplement.h
nsHtml5MetaScannerHSupplement.h
nsHtml5Module.cpp
nsHtml5Module.h
nsHtml5NamedCharacters.cpp
nsHtml5NamedCharacters.h
nsHtml5NamedCharactersAccel.cpp
nsHtml5NamedCharactersAccel.h
nsHtml5NamedCharactersInclude.h
nsHtml5OplessBuilder.cpp
nsHtml5OplessBuilder.h
nsHtml5OwningUTF16Buffer.cpp
nsHtml5OwningUTF16Buffer.h Bug 1607762 - Make the refcount of nsHtml5OwningUTF16Buffer atomic. r=mccr8 2020-10-14 15:29:44 +00:00
nsHtml5Parser.cpp Bug 1716290 - Remove protections against the document changing as part of kCharsetFromFinalUserForcedAutoDetection reload. r=emk,emilio 2021-08-26 18:02:15 +00:00
nsHtml5Parser.h Bug 1716290 - Remove protections against the document changing as part of kCharsetFromFinalUserForcedAutoDetection reload. r=emk,emilio 2021-08-26 18:02:15 +00:00
nsHtml5PlainTextUtils.cpp
nsHtml5PlainTextUtils.h
nsHtml5Portability.cpp Bug 786797 - Check for integer overflow when computing new buffer sizes. r=smaug 2021-01-21 17:02:58 +00:00
nsHtml5Portability.h Bug 786797 - Check for integer overflow when computing new buffer sizes. r=smaug 2021-01-21 17:02:58 +00:00
nsHtml5SVGLoadDispatcher.cpp
nsHtml5SVGLoadDispatcher.h
nsHtml5Speculation.cpp
nsHtml5Speculation.h
nsHtml5SpeculativeLoad.cpp Bug 1713489 - Record telemetry for how long we spend waiting on the main thread to process image preload network steps. r=bas,dragana,necko-reviewers 2021-05-31 22:44:18 +00:00
nsHtml5SpeculativeLoad.h Bug 1713489 - Record telemetry for how long we spend waiting on the main thread to process image preload network steps. r=bas,dragana,necko-reviewers 2021-05-31 22:44:18 +00:00
nsHtml5StackNode.cpp
nsHtml5StackNode.h Bug 1724920 - Sort headers in the generated parts of the HTML parser. r=smaug 2021-08-11 08:08:52 +00:00
nsHtml5StateSnapshot.cpp
nsHtml5StateSnapshot.h
nsHtml5StreamListener.cpp Bug 1724101 - Protect nsHtml5StreamListener::mDelegate with a monitor. r=smaug 2021-08-13 12:13:48 +00:00
nsHtml5StreamListener.h Bug 1724101 - Protect nsHtml5StreamListener::mDelegate with a monitor. r=smaug 2021-08-13 12:13:48 +00:00
nsHtml5StreamParser.cpp Bug 1735161 - Update MDN URL in speculation failure message. r=smaug DONTBUILD 2021-10-12 06:49:15 +00:00
nsHtml5StreamParser.h Bug 1727491 - Remove support for BOMless unlabeled Latin1 Supplement-range UTF-16LE|BE. r=emk 2021-09-01 09:13:29 +00:00
nsHtml5StreamParserPtr.h Bug 1724101 - Protect nsHtml5StreamListener::mDelegate with a monitor. r=smaug 2021-08-13 12:13:48 +00:00
nsHtml5StreamParserReleaser.h Bug 1519636 - Reformat recent changes to the Google coding style. r=emilio 2021-08-23 09:30:23 +00:00
nsHtml5String.cpp
nsHtml5String.h
nsHtml5StringParser.cpp
nsHtml5StringParser.h
nsHtml5Tokenizer.cpp Bug 1153920 - Conform ampersand error reporting to HTML spec. r=smaug 2021-09-02 11:13:37 +00:00
nsHtml5Tokenizer.h Bug 1725946 - Conform tokenizer-only U+0000 NUL handling to spec r=smaug 2021-08-17 10:09:10 +00:00
nsHtml5TokenizerCppSupplement.h Bug 1319410 - Make consecutive hyphens in comments a non-error r=smaug 2021-08-16 05:01:09 +00:00
nsHtml5TokenizerHSupplement.h Bug 1319410 - Make consecutive hyphens in comments a non-error r=smaug 2021-08-16 05:01:09 +00:00
nsHtml5TokenizerLoopPolicies.h
nsHtml5TreeBuilder.cpp Bug 1724243 - Make text/plain and MediaDocuments use the Standards Mode. r=smaug,emilio 2021-10-01 12:55:28 +00:00
nsHtml5TreeBuilder.h Bug 1724243 - Make text/plain and MediaDocuments use the Standards Mode. r=smaug,emilio 2021-10-01 12:55:28 +00:00
nsHtml5TreeBuilderCppSupplement.h Bug 1724243 - Make text/plain and MediaDocuments use the Standards Mode. r=smaug,emilio 2021-10-01 12:55:28 +00:00
nsHtml5TreeBuilderHSupplement.h Bug 1650066 preparation - Add errListUnclosedStartTags for HTML tree builder error reporting. r=smaug 2021-08-16 05:16:58 +00:00
nsHtml5TreeOpExecutor.cpp Bug 1718184 - pt 1. IdleTaskRunner now uses TimeDuration r=nika 2021-07-13 01:42:32 +00:00
nsHtml5TreeOpExecutor.h Bug 1713489 - Record telemetry for how long we spend waiting on the main thread to process image preload network steps. r=bas,dragana,necko-reviewers 2021-05-31 22:44:18 +00:00
nsHtml5TreeOpStage.cpp
nsHtml5TreeOpStage.h
nsHtml5TreeOperation.cpp Bug 1556352 - Part 1: Do not set form owner from parser for form-associated custom element; r=smaug 2021-10-28 10:29:37 +00:00
nsHtml5TreeOperation.h Bug 1489437 - Part 1: Make HTML parser distinguish network, document.write and fragments in append operation; r=smaug,hsivonen 2021-01-06 09:29:41 +00:00
nsHtml5UTF16Buffer.cpp
nsHtml5UTF16Buffer.h
nsHtml5UTF16BufferCppSupplement.h
nsHtml5UTF16BufferHSupplement.h
nsHtml5ViewSourceUtils.cpp Bug 737785 - Un-prefix -moz-tab-size (keeping the prefixed version as an alias for now). r=layout-reviewers,dholbert 2021-06-10 09:19:24 +00:00
nsHtml5ViewSourceUtils.h
nsIContentHandle.h
nsIParserUtils.idl
nsParserUtils.cpp Bug 1666300 part 2 - Parse into an inert document. r=smaug 2020-10-23 12:48:52 +00:00
nsParserUtils.h