NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 132 - Redefine how 'append a character' works, and rename it to 'insert a character'.
Redefine how 'append a character' works, and rename it to 'insert a character'.
Status: RESOLVED INTENTIONAL
Product: Validator.nu
Classification: Unclassified
Component: HTML parser
HEAD
All All
: P2 normal
Assigned To: Henri Sivonen
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-04 11:20 CET by Nobody
Modified: 2008-03-07 16:31 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nobody 2008-03-04 11:20:57 CET
Index: source
===================================================================
--- source	(revision 1333)
+++ source	(revision 1334)
@@ -37738,11 +37738,13 @@
   has to render the <code>Document</code> so that it is available to
   the user, or when it has to begin accepting user input.</p>
 
-  <p>When the steps below require the UA to <dfn>append a
-  character</dfn> to a node, the UA must collect it and all subsequent
-  consecutive characters that would be appended to that node, and
-  insert one <code>Text</code> node whose data is the concatenation of
-  all those characters.</p>
+  <p>When the steps below require the UA to <dfn>insert a
+  character</dfn> into a node, if that node has a child immediately
+  before where the character is to be inserted, and that child is a
+  <code>Text</code> node, then the character must be appended to that
+  <code>Text</code> node; otherwise, a new <code>Text</code> node
+  whose data is just that character must be inserted in the
+  appropriate place.</p>
 
   <p id="mutation-during-parsing">DOM mutation events must not fire
   for changes caused by the UA parsing the document. (Conceptually,
@@ -38650,7 +38652,7 @@
    TABULATION, U+000C FORM FEED (FF), <!--U+000D CARRIAGE RETURN (CR),-->
    or U+0020 SPACE</dt>
    <dd>
-    <p><span title="append a character">Append the character</span> to
+    <p><span title="insert a character">Insert the character</span> into
     the <span>current node</span>.</p>
    </dd>
 
@@ -38978,7 +38980,7 @@
    TABULATION, U+000C FORM FEED (FF), <!--U+000D CARRIAGE RETURN (CR),-->
    or U+0020 SPACE</dt>
    <dd>
-    <p><span title="append a character">Append the character</span> to
+    <p><span title="insert a character">Insert the character</span> into
     the <span>current node</span>.</p>
    </dd>
 
@@ -39069,8 +39071,8 @@
     <p><span>Reconstruct the active formatting elements</span>, if
     any.</p>
 
-    <p><span title="append a character">Append the token's
-    character</span> to the <span>current node</span>.</p>
+    <p><span title="insert a character">Insert the token's
+    character</span> into the <span>current node</span>.</p>
 
    </dd>
 
@@ -40108,8 +40110,8 @@
     <p>If the <span>current table</span> is <span>tainted</span>, then
     act as described in the "anything else" entry below.</p>
 
-    <p>Otherwise, <span title="append a character">append the
-    character</span> to the <span>current node</span>.</p>
+    <p>Otherwise, <span title="insert a character">insert the
+    character</span> into the <span>current node</span>.</p>
 
    </dd>
 
@@ -40386,7 +40388,7 @@
    TABULATION, U+000C FORM FEED (FF), <!--U+000D CARRIAGE RETURN (CR),-->
    or U+0020 SPACE</dt>
    <dd>
-    <p><span title="append a character">Append the character</span> to
+    <p><span title="insert a character">Insert the character</span> into
     the <span>current node</span>.</p>
    </dd>
 
@@ -40760,8 +40762,8 @@
 
    <dt>A character token</dt>
    <dd>
-    <p><span title="append a character">Append the token's
-    character</span> to the <span>current node</span>.</p>
+    <p><span title="insert a character">Insert the token's
+    character</span> into the <span>current node</span>.</p>
    </dd>
 
    <dt>A comment token</dt>
@@ -40967,7 +40969,7 @@
    TABULATION, U+000C FORM FEED (FF), <!--U+000D CARRIAGE RETURN (CR),-->
    or U+0020 SPACE</dt>
    <dd>
-    <p><span title="append a character">Append the character</span> to
+    <p><span title="insert a character">Insert the character</span> into
     the <span>current node</span>.</p>
    </dd>
 
@@ -41054,7 +41056,7 @@
    TABULATION, U+000C FORM FEED (FF), <!--U+000D CARRIAGE RETURN (CR),-->
    or U+0020 SPACE</dt>
    <dd>
-    <p><span title="append a character">Append the character</span> to
+    <p><span title="insert a character">Insert the character</span> into
     the <span>current node</span>.</p>
    </dd>
Comment 1 Henri Sivonen 2008-03-07 16:31:00 CET
Editorial.