--- a/autoimplementation.html Mon May 30 12:26:20 2011 -0600
+++ b/autoimplementation.html Mon May 30 12:44:32 2011 -0600
@@ -1160,6 +1160,12 @@
'<pre>foo[]<br></pre>',
'<pre>foo[]bar</pre>',
+ '<pre>foo[]<br><br></pre>',
+ '<pre>foo<br>{}<br></pre>',
+ '<pre>foo []</pre>',
+ '<pre>foo[] </pre>',
+ '<pre>foo [] </pre>',
+
'<ol><li>{}<br></li></ol>',
'foo<ol><li>{}<br></li></ol>',
'<ol><li>{}<br></li></ol>foo',
--- a/editcommands.html Mon May 30 12:26:20 2011 -0600
+++ b/editcommands.html Mon May 30 12:44:32 2011 -0600
@@ -4337,10 +4337,8 @@
<a class=external data-anolis-spec=domrange href=http://html5.org/specs/dom-range.html#context-object>context object</a>, then call <code class=external data-anolis-spec=domrange title=dom-Range-insertNode><a href=http://html5.org/specs/dom-range.html#dom-range-insertnode>insertNode(<var title="">br</var>)</a></code> on
<var title="">range</var>.
<!-- Necessary because adding a br to the end of a block element does
- nothing. -->
-
- <p class=XXX>Need to handle the case where there are two consecutive br's
- at the end of the block.
+ nothing if there wasn't one there already. A single newline immediately
+ preceding a block boundary does nothing. -->
<li>Abort these steps.
</ol>
@@ -4348,7 +4346,7 @@
<li>If <var title="">container</var>'s <a class=external data-anolis-spec=domcore href=http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-element-local-name title=concept-element-local-name>local name</a> is "li", "dt", or "dd"; and
either it has no <a class=external data-anolis-spec=domcore href=http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-tree-child title=concept-tree-child>children</a> or it has a single <a class=external data-anolis-spec=domcore href=http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-tree-child title=concept-tree-child>child</a> and that <a class=external data-anolis-spec=domcore href=http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-tree-child title=concept-tree-child>child</a>
is a <code class=external data-anolis-spec=html title="the br element"><a href=http://www.whatwg.org/html/#the-br-element>br</a></code>:
- <!-- Including dt/dd here follows Firefox 5.0b2, as with the special dt/dd
+ <!-- Including dt/dd here follows Firefox 5.0a2, as with the special dt/dd
handling below. -->
<ol>
--- a/source.html Mon May 30 12:26:20 2011 -0600
+++ b/source.html Mon May 30 12:44:32 2011 -0600
@@ -4372,10 +4372,8 @@
[[contextobject]], then call [[insertnode|<var>br</var>]] on
<var>range</var>.
<!-- Necessary because adding a br to the end of a block element does
- nothing. -->
-
- <p class=XXX>Need to handle the case where there are two consecutive br's
- at the end of the block.
+ nothing if there wasn't one there already. A single newline immediately
+ preceding a block boundary does nothing. -->
<li>Abort these steps.
</ol>
@@ -4383,7 +4381,7 @@
<li>If <var>container</var>'s [[localname]] is "li", "dt", or "dd"; and
either it has no [[children]] or it has a single [[child]] and that [[child]]
is a [[br]]:
- <!-- Including dt/dd here follows Firefox 5.0b2, as with the special dt/dd
+ <!-- Including dt/dd here follows Firefox 5.0a2, as with the special dt/dd
handling below. -->
<ol>