<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://microformats.org/wiki/index.php?action=history&amp;feed=atom&amp;title=textcontent-parsing</id>
	<title>textcontent-parsing - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://microformats.org/wiki/index.php?action=history&amp;feed=atom&amp;title=textcontent-parsing"/>
	<link rel="alternate" type="text/html" href="http://microformats.org/wiki/index.php?title=textcontent-parsing&amp;action=history"/>
	<updated>2026-04-04T04:32:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>http://microformats.org/wiki/index.php?title=textcontent-parsing&amp;diff=66939&amp;oldid=prev</id>
		<title>GRegorLove: /* Element to string */ s/value/child/</title>
		<link rel="alternate" type="text/html" href="http://microformats.org/wiki/index.php?title=textcontent-parsing&amp;diff=66939&amp;oldid=prev"/>
		<updated>2018-08-28T01:40:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Element to string: &lt;/span&gt; s/value/child/&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:40, 28 August 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l42&quot;&gt;Line 42:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 42:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#*** Append a string containing a single &amp;lt;code&amp;gt;U+000A LF&amp;lt;/code&amp;gt; code point to '''&amp;lt;var&amp;gt;output&amp;lt;/var&amp;gt;'''&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#*** Append a string containing a single &amp;lt;code&amp;gt;U+000A LF&amp;lt;/code&amp;gt; code point to '''&amp;lt;var&amp;gt;output&amp;lt;/var&amp;gt;'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#** &amp;lt;code&amp;gt;P&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#** &amp;lt;code&amp;gt;P&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#**# Let '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;''' be the result of running [[#Element_to_string|this algorithm]] on '''&amp;lt;var&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;value&lt;/del&gt;&amp;lt;/var&amp;gt;'''&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#**# Let '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;''' be the result of running [[#Element_to_string|this algorithm]] on '''&amp;lt;var&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;child&lt;/ins&gt;&amp;lt;/var&amp;gt;'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#**# Prepend a single &amp;lt;code&amp;gt;U+000A LF&amp;lt;/code&amp;gt; code point to '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;'''&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#**# Prepend a single &amp;lt;code&amp;gt;U+000A LF&amp;lt;/code&amp;gt; code point to '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#**# Append '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;''' to '''&amp;lt;var&amp;gt;output&amp;lt;/var&amp;gt;'''&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#**# Append '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;''' to '''&amp;lt;var&amp;gt;output&amp;lt;/var&amp;gt;'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>GRegorLove</name></author>
	</entry>
	<entry>
		<id>http://microformats.org/wiki/index.php?title=textcontent-parsing&amp;diff=66938&amp;oldid=prev</id>
		<title>GRegorLove: /* Element to string */ formatting fix</title>
		<link rel="alternate" type="text/html" href="http://microformats.org/wiki/index.php?title=textcontent-parsing&amp;diff=66938&amp;oldid=prev"/>
		<updated>2018-08-27T20:43:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Element to string: &lt;/span&gt; formatting fix&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:43, 27 August 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l40&quot;&gt;Line 40:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 40:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#**# Append '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;''' to '''&amp;lt;var&amp;gt;output&amp;lt;/var&amp;gt;'''&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#**# Append '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;''' to '''&amp;lt;var&amp;gt;output&amp;lt;/var&amp;gt;'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#** &amp;lt;code&amp;gt;BR&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#** &amp;lt;code&amp;gt;BR&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#*** Append a string containing a single &amp;lt;code&amp;gt;U+000A &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;L&lt;/del&gt;&amp;lt;/code&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;F &lt;/del&gt;code point to '''&amp;lt;var&amp;gt;output&amp;lt;/var&amp;gt;'''&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#*** Append a string containing a single &amp;lt;code&amp;gt;U+000A &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LF&lt;/ins&gt;&amp;lt;/code&amp;gt; code point to '''&amp;lt;var&amp;gt;output&amp;lt;/var&amp;gt;'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#** &amp;lt;code&amp;gt;P&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#** &amp;lt;code&amp;gt;P&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#**# Let '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;''' be the result of running [[#Element_to_string|this algorithm]] on '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;'''&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#**# Let '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;''' be the result of running [[#Element_to_string|this algorithm]] on '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>GRegorLove</name></author>
	</entry>
	<entry>
		<id>http://microformats.org/wiki/index.php?title=textcontent-parsing&amp;diff=66937&amp;oldid=prev</id>
		<title>GRegorLove: /* whitespace in pre elements */ s/newlines/whitespace/</title>
		<link rel="alternate" type="text/html" href="http://microformats.org/wiki/index.php?title=textcontent-parsing&amp;diff=66937&amp;oldid=prev"/>
		<updated>2018-08-27T20:34:17Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;whitespace in pre elements: &lt;/span&gt; s/newlines/whitespace/&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:34, 27 August 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l61&quot;&gt;Line 61:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 61:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== whitespace in pre elements ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== whitespace in pre elements ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This algorithm doesn't currently preserve &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;newlines &lt;/del&gt;in &amp;lt;code&amp;gt;pre&amp;lt;/code&amp;gt; elements. There's some agreement in [https://github.com/microformats/microformats2-parsing/issues/15#issuecomment-407707386 this issue] that it ''should'' be preserved and mf2py currently does that.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This algorithm doesn't currently preserve &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;whitespace &lt;/ins&gt;in &amp;lt;code&amp;gt;pre&amp;lt;/code&amp;gt; elements. There's some agreement in [https://github.com/microformats/microformats2-parsing/issues/15#issuecomment-407707386 this issue] that it ''should'' be preserved and mf2py currently does that.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== add a new topic ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== add a new topic ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>GRegorLove</name></author>
	</entry>
	<entry>
		<id>http://microformats.org/wiki/index.php?title=textcontent-parsing&amp;diff=66936&amp;oldid=prev</id>
		<title>GRegorLove: /* Brainstorming */ === whitespace in pre elements ===</title>
		<link rel="alternate" type="text/html" href="http://microformats.org/wiki/index.php?title=textcontent-parsing&amp;diff=66936&amp;oldid=prev"/>
		<updated>2018-08-27T20:32:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Brainstorming: &lt;/span&gt; === whitespace in pre elements ===&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:32, 27 August 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l60&quot;&gt;Line 60:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 60:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Discuss issues and improvements to the algorithm here.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Discuss issues and improvements to the algorithm here.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* &lt;/del&gt;...&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=== whitespace in pre elements ===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;This algorithm doesn't currently preserve newlines in &amp;lt;code&amp;gt;pre&amp;lt;/code&amp;gt; elements&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;There's some agreement in [https://github&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;com/microformats/microformats2-parsing/issues/15#issuecomment-407707386 this issue] that it ''should'' be preserved and mf2py currently does that&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=== add a new topic ===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== References ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== References ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>GRegorLove</name></author>
	</entry>
	<entry>
		<id>http://microformats.org/wiki/index.php?title=textcontent-parsing&amp;diff=66935&amp;oldid=prev</id>
		<title>GRegorLove: /* Implementations */ +php-mf2</title>
		<link rel="alternate" type="text/html" href="http://microformats.org/wiki/index.php?title=textcontent-parsing&amp;diff=66935&amp;oldid=prev"/>
		<updated>2018-08-27T20:21:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Implementations: &lt;/span&gt; +php-mf2&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:21, 27 August 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l54&quot;&gt;Line 54:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 54:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;List parsers that have implemented this algorithm. Note any differences as this specification evolves.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;List parsers that have implemented this algorithm. Note any differences as this specification evolves.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* '''php-mf2''' implements the [http://microformats.org/wiki/index.php?title=textcontent-parsing&amp;amp;oldid=66933 initial version] of this algorithm as of [https://github.com/microformats/php-mf2/tree/v0.4.4 v0.4.4]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* ...&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* ...&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>GRegorLove</name></author>
	</entry>
	<entry>
		<id>http://microformats.org/wiki/index.php?title=textcontent-parsing&amp;diff=66933&amp;oldid=prev</id>
		<title>GRegorLove: New page: This is a '''draft''' specification for parsing &lt;code&gt;textContent&lt;/code&gt; based on Martijn van der Ven's algorithm. [https://wiki.zegnat.net/media/textparsing.html]  == Stat...</title>
		<link rel="alternate" type="text/html" href="http://microformats.org/wiki/index.php?title=textcontent-parsing&amp;diff=66933&amp;oldid=prev"/>
		<updated>2018-08-27T20:17:19Z</updated>

		<summary type="html">&lt;p&gt;New page: This is a &amp;#039;&amp;#039;&amp;#039;draft&amp;#039;&amp;#039;&amp;#039; specification for parsing &amp;lt;code&amp;gt;textContent&amp;lt;/code&amp;gt; based on &lt;a href=&quot;/wiki/User:Zegnat&quot; title=&quot;User:Zegnat&quot;&gt;Martijn van der Ven&lt;/a&gt;&amp;#039;s algorithm. [https://wiki.zegnat.net/media/textparsing.html]  == Stat...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is a '''draft''' specification for parsing &amp;lt;code&amp;gt;textContent&amp;lt;/code&amp;gt; based on [[User:Zegnat|Martijn van der Ven]]'s algorithm. [https://wiki.zegnat.net/media/textparsing.html]&lt;br /&gt;
&lt;br /&gt;
== Status ==&lt;br /&gt;
This is a draft specification.&lt;br /&gt;
&lt;br /&gt;
== Algorithm ==&lt;br /&gt;
=== Plain text of element ===&lt;br /&gt;
To get the plain text for an [https://dom.spec.whatwg.org/#interface-element Element] '''&amp;lt;var&amp;gt;input&amp;lt;/var&amp;gt;''':&lt;br /&gt;
&lt;br /&gt;
# Let '''&amp;lt;var&amp;gt;output&amp;lt;/var&amp;gt;''' be the result of running [[#Element_to_string|Element to string]] on '''&amp;lt;var&amp;gt;input&amp;lt;/var&amp;gt;'''&lt;br /&gt;
# Remove any sequence of one or more consecutive &amp;lt;code&amp;gt;U+0020 SPACE&amp;lt;/code&amp;gt; [https://infra.spec.whatwg.org/#code-point code points] directly before and after an &amp;lt;code&amp;gt;U+000A LF&amp;lt;/code&amp;gt; code point from '''&amp;lt;var&amp;gt;output&amp;lt;/var&amp;gt;'''&lt;br /&gt;
# [https://infra.spec.whatwg.org/#strip-leading-and-trailing-ascii-whitespace Strip leading and trailing ASCII whitespace] from '''&amp;lt;var&amp;gt;output&amp;lt;/var&amp;gt;'''&lt;br /&gt;
# Replace any sequence of one or more consecutive &amp;lt;code&amp;gt;U+0020 SPACE&amp;lt;/code&amp;gt; code points in '''&amp;lt;var&amp;gt;output&amp;lt;/var&amp;gt;''' with a single &amp;lt;code&amp;gt;U+0020 SPACE&amp;lt;/code&amp;gt; code point&lt;br /&gt;
# Return '''&amp;lt;var&amp;gt;output&amp;lt;/var&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
=== Element to string ===&lt;br /&gt;
To get the string value for an [https://dom.spec.whatwg.org/#interface-element Element] '''&amp;lt;var&amp;gt;input&amp;lt;/var&amp;gt;''':&lt;br /&gt;
&lt;br /&gt;
# Let '''&amp;lt;var&amp;gt;output&amp;lt;/var&amp;gt;''' be an empty [https://infra.spec.whatwg.org/#list list]&lt;br /&gt;
# Let '''&amp;lt;var&amp;gt;children&amp;lt;/var&amp;gt;''' be the [https://dom.spec.whatwg.org/#concept-tree-child children] of '''&amp;lt;var&amp;gt;input&amp;lt;/var&amp;gt;''' in [https://dom.spec.whatwg.org/#concept-tree-order tree order]&lt;br /&gt;
# [https://infra.spec.whatwg.org/#list-iterate For each] '''&amp;lt;var&amp;gt;child&amp;lt;/var&amp;gt;''' in '''&amp;lt;var&amp;gt;children&amp;lt;/var&amp;gt;''':&lt;br /&gt;
#* If '''&amp;lt;var&amp;gt;child&amp;lt;/var&amp;gt;''' is a [https://dom.spec.whatwg.org/#interface-text Text] node:&lt;br /&gt;
#*# Let '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;''' be the [https://dom.spec.whatwg.org/#dom-node-textcontent textContent] of '''&amp;lt;var&amp;gt;child&amp;lt;/var&amp;gt;'''&lt;br /&gt;
#*# Replace any &amp;lt;code&amp;gt;U+0009 TAB&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;U+000A LF&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;U+000D CR&amp;lt;/code&amp;gt; code points in '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;''' with a single &amp;lt;code&amp;gt;U+0020 SPACE&amp;lt;/code&amp;gt; code point&lt;br /&gt;
#*# [https://infra.spec.whatwg.org/#list-append Append] '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;''' to output&lt;br /&gt;
#* If '''&amp;lt;var&amp;gt;child&amp;lt;/var&amp;gt;''' is an Element, switch on its [https://dom.spec.whatwg.org/#dom-element-tagname tagName]:&lt;br /&gt;
#** &amp;lt;code&amp;gt;SCRIPT&amp;lt;/code&amp;gt;&lt;br /&gt;
#** &amp;lt;code&amp;gt;STYLE&amp;lt;/code&amp;gt;&lt;br /&gt;
#*** [https://infra.spec.whatwg.org/#iteration-continue Continue]&lt;br /&gt;
#** &amp;lt;code&amp;gt;IMG&amp;lt;/code&amp;gt;&lt;br /&gt;
#**# If '''&amp;lt;var&amp;gt;child&amp;lt;/var&amp;gt;''' has an alt attribute, then:&lt;br /&gt;
#**## Let '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;''' be the contents of the alt attribute&lt;br /&gt;
#**## Strip leading and trailing ASCII whitespace from '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;'''&lt;br /&gt;
#**# Else if '''&amp;lt;var&amp;gt;child&amp;lt;/var&amp;gt;''' has a src attribute, then:&lt;br /&gt;
#**## Let '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;''' be the contents of the src attribute&lt;br /&gt;
#**## Strip leading and trailing ASCII whitespace from '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;'''&lt;br /&gt;
#**## Set '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;''' to the absolute URL created by resolving '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;''' following the containing document’s language’s rules&lt;br /&gt;
#**# Else continue&lt;br /&gt;
#**# Append and prepend a single &amp;lt;code&amp;gt;U+0020 SPACE&amp;lt;/code&amp;gt; code point to '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;'''&lt;br /&gt;
#**# Append '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;''' to '''&amp;lt;var&amp;gt;output&amp;lt;/var&amp;gt;'''&lt;br /&gt;
#** &amp;lt;code&amp;gt;BR&amp;lt;/code&amp;gt;&lt;br /&gt;
#*** Append a string containing a single &amp;lt;code&amp;gt;U+000A L&amp;lt;/code&amp;gt;F code point to '''&amp;lt;var&amp;gt;output&amp;lt;/var&amp;gt;'''&lt;br /&gt;
#** &amp;lt;code&amp;gt;P&amp;lt;/code&amp;gt;&lt;br /&gt;
#**# Let '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;''' be the result of running [[#Element_to_string|this algorithm]] on '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;'''&lt;br /&gt;
#**# Prepend a single &amp;lt;code&amp;gt;U+000A LF&amp;lt;/code&amp;gt; code point to '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;'''&lt;br /&gt;
#**# Append '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;''' to '''&amp;lt;var&amp;gt;output&amp;lt;/var&amp;gt;'''&lt;br /&gt;
#** Any other value&lt;br /&gt;
#**# Let '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;''' be the result of running [[#Element_to_string|this algorithm]] on '''&amp;lt;var&amp;gt;child&amp;lt;/var&amp;gt;'''&lt;br /&gt;
#**# Append '''&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;''' to '''&amp;lt;var&amp;gt;output&amp;lt;/var&amp;gt;'''&lt;br /&gt;
#* Else continue&lt;br /&gt;
# Return the [https://infra.spec.whatwg.org/#string-concatenate concatenation] of '''&amp;lt;var&amp;gt;output&amp;lt;/var&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
== Implementations ==&lt;br /&gt;
List parsers that have implemented this algorithm. Note any differences as this specification evolves.&lt;br /&gt;
&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
== Brainstorming ==&lt;br /&gt;
Discuss issues and improvements to the algorithm here.&lt;br /&gt;
&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* &amp;lt;dfn&amp;gt;Element&amp;lt;/dfn&amp;gt;: https://dom.spec.whatwg.org/#interface-element&lt;br /&gt;
* &amp;lt;dfn&amp;gt;Code point&amp;lt;/dfn&amp;gt;: https://infra.spec.whatwg.org/#code-point&lt;br /&gt;
* &amp;lt;dfn&amp;gt;Strip leading and trailing ASCII whitespace&amp;lt;/dfn&amp;gt;: https://infra.spec.whatwg.org/#strip-leading-and-trailing-ascii-whitespace&lt;br /&gt;
* &amp;lt;dfn&amp;gt;Children&amp;lt;/dfn&amp;gt;: https://dom.spec.whatwg.org/#concept-tree-child&lt;br /&gt;
* &amp;lt;dfn&amp;gt;Tree order&amp;lt;/dfn&amp;gt;: https://dom.spec.whatwg.org/#concept-tree-order&lt;br /&gt;
* &amp;lt;dfn&amp;gt;For each&amp;lt;/dfn&amp;gt;: https://infra.spec.whatwg.org/#list-iterate&lt;br /&gt;
* &amp;lt;dfn&amp;gt;Text node&amp;lt;/dfn&amp;gt;: https://dom.spec.whatwg.org/#interface-text&lt;br /&gt;
* &amp;lt;dfn&amp;gt;textContent&amp;lt;/dfn&amp;gt;: https://dom.spec.whatwg.org/#dom-node-textcontent&lt;br /&gt;
* &amp;lt;dfn&amp;gt;Append&amp;lt;/dfn&amp;gt;: https://infra.spec.whatwg.org/#list-append&lt;br /&gt;
* &amp;lt;dfn&amp;gt;tagName&amp;lt;/dfn&amp;gt;: https://dom.spec.whatwg.org/#dom-element-tagname&lt;br /&gt;
* &amp;lt;dfn&amp;gt;Continue&amp;lt;/dfn&amp;gt;: https://infra.spec.whatwg.org/#iteration-continue&lt;br /&gt;
* &amp;lt;dfn&amp;gt;Concatenation&amp;lt;/dfn&amp;gt;: https://infra.spec.whatwg.org/#string-concatenate&lt;/div&gt;</summary>
		<author><name>GRegorLove</name></author>
	</entry>
</feed>