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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>13996</bug_id>
          
          <creation_ts>2011-09-01 14:58:06 +0000</creation_ts>
          <short_desc>Don&apos;t wrap invisible nodes when doing inline styling</short_desc>
          <delta_ts>2011-09-21 17:49:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - HTML Editing APIs</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          
          <blocked>14231</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Aryeh Gregor">ayg</reporter>
          <assigned_to name="Aryeh Gregor">ayg</assigned_to>
          <cc>mike</cc>
    
    <cc>public-webapps</cc>
    
    <cc>timdown</cc>
          
          <qa_contact name="HTML Editing APIs spec bugbot">sideshowbarker+html-editing-api</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>56185</commentid>
    <comment_count>0</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-09-01 14:58:06 +0000</bug_when>
    <thetext>Reported by Tim Down by private e-mail.

E.g., if we bold

  &lt;p&gt;foo&lt;/p&gt; &lt;p&gt;bar&lt;/p&gt;

currently we produce

  &lt;p&gt;&lt;b&gt;foo&lt;/b&gt;&lt;/p&gt;&lt;b&gt; &lt;/b&gt;&lt;p&gt;&lt;b&gt;bar&lt;/b&gt;&lt;/p&gt;

The extra &lt;b&gt; in the middle is pointless.  The user can never focus the collapsed whitespace node, after all.  We should abort early in &quot;force the value&quot; if the node is invisible, just like if the value already matches.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56191</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Down">timdown</who>
    <bug_when>2011-09-01 16:05:51 +0000</bug_when>
    <thetext>The extra &lt;b&gt; element is not only pointless but can also change the layout. In the

  &lt;p&gt;&lt;b&gt;foo&lt;/b&gt;&lt;/p&gt;&lt;b&gt; &lt;/b&gt;&lt;p&gt;&lt;b&gt;bar&lt;/b&gt;&lt;/p&gt;

example, if there is a style rule that adds a border to &lt;b&gt; elements, the middle &lt;b&gt; adds an extra unwanted line box in CSS 2.1 compliant browsers such as Firefox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56194</commentid>
    <comment_count>2</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-09-01 17:07:32 +0000</bug_when>
    <thetext>If tags like &lt;b&gt; have any style effects other than the default, all sorts of stuff will get messed up.  All the spec algorithms assume that &lt;b&gt; does nothing except make stuff bold.  So I explicitly don&apos;t care about things like authors adding a border to &lt;b&gt; -- they&apos;re shooting themselves in the foot and I can&apos;t stop it, so I won&apos;t try.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57004</commentid>
    <comment_count>3</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-09-19 22:20:54 +0000</bug_when>
    <thetext>I&apos;ve got a patch to do this now, but it has an undesired side effect I forgot about: after running a command like bold, the command might be indeterminate.  I need to ignore invisible nodes when computing indeterm/state/value for this change to make sense.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57080</commentid>
    <comment_count>4</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-09-21 17:42:12 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/editing/rev/b2d328d179ac

Bug 14231 filed as followup on an issue that arose while fixing this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57082</commentid>
    <comment_count>5</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-09-21 17:49:14 +0000</bug_when>
    <thetext>I checked in some extra tests afterward too:

https://dvcs.w3.org/hg/editing/rev/4321a7e11603</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>