<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>9661</bug_id>
          
          <creation_ts>2006-06-29 23:49:19 -0700</creation_ts>
          <short_desc>textContent returns &quot;\n&quot; for a &lt;br&gt; or a &apos;\n&apos; even if it is collapsed</short_desc>
          <delta_ts>2023-09-01 04:40:32 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>adele</cc>
    
    <cc>annevk</cc>
    
    <cc>ap</cc>
    
    <cc>darin</cc>
    
    <cc>ian</cc>
    
    <cc>justin.garcia</cc>
    
    <cc>mitz</cc>
    
    <cc>sullivan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>47803</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-06-29 23:49:19 -0700</bug_when>
    <thetext>When the last character in a text input field is deleted, a &lt;br&gt; placeholder is inserted.  The problem is that textContent returns &quot;\n&quot; for a &lt;br&gt; even if it&apos;s collapsed.  In HTMLInputElement:setValueFromRenderer(), value = &quot;\n&quot; and constrainValue(value) = &quot;&quot;.

See Bug 9358 for the original issue (an assertion failure).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49520</commentid>
    <comment_count>1</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2006-10-26 18:45:26 -0700</bug_when>
    <thetext>textContent also returns &apos;\n&apos; for a &apos;\n&apos; even if it is collapsed.  Renaming.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36325</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-01-08 10:02:27 -0800</bug_when>
    <thetext>I believe the behavior of textContent is correct, and it&apos;s the client that has a problem. I believe this bug report may be INVALID.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1974963</commentid>
    <comment_count>3</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2023-09-01 04:40:32 -0700</bug_when>
    <thetext>Resolving this per comment 2 as INVALID as without a test case proving otherwise it seems highly unlikely that textContent has a bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>