<?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>35348</bug_id>
          
          <creation_ts>2010-02-24 09:09:39 -0800</creation_ts>
          <short_desc>Web Inspector: Adding a style attribute via the Style panel doesn&apos;t update the DOM view</short_desc>
          <delta_ts>2011-01-14 05:06:39 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector (Deprecated)</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>51478</dup_id>
          
          <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>0</everconfirmed>
          <reporter name="Anthony Ricaud">rik</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>apavlov</cc>
    
    <cc>bweinstein</cc>
    
    <cc>joepeck</cc>
    
    <cc>keishi</cc>
    
    <cc>pfeldman</cc>
    
    <cc>phazei</cc>
    
    <cc>pmuellr</cc>
    
    <cc>rik</cc>
    
    <cc>timothy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>193385</commentid>
    <comment_count>0</comment_count>
    <who name="Anthony Ricaud">rik</who>
    <bug_when>2010-02-24 09:09:39 -0800</bug_when>
    <thetext>Steps to reproduce:

1) Open any webpage
2) Add a style attribute in the Styles column (like color: red;)

Actual results:
The body node doesn&apos;t show the style attribute

Expected:
The body node shows the style attribute

Note that the added style is applied to the webpage. Only the DOM view is not updated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267025</commentid>
    <comment_count>1</comment_count>
    <who name="Adam">phazei</who>
    <bug_when>2010-08-19 16:14:49 -0700</bug_when>
    <thetext>What you are adding is css styles, not attributes.  They wouldn&apos;t show up as an attribute in the DOM like &lt;font color=red&gt;.  There isn&apos;t anything that should need to be updated at all on the dom view.

You are editing the properties and values of the selector.  If you want to add an attribute in the dom, you can right click a node and add an attribute, it will be added and reflected upon the page.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267029</commentid>
    <comment_count>2</comment_count>
    <who name="Adam">phazei</who>
    <bug_when>2010-08-19 16:19:41 -0700</bug_when>
    <thetext>Sigh... disregard my entire comment, I&apos;m confused.

It is a valid problem when editing in the &quot;element&apos;s &apos;style&apos; attribute&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267030</commentid>
    <comment_count>3</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-08-19 16:20:00 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; What you are adding is css styles, not attributes.

Actually this bug refers to editing the &quot;Style Attribute&quot; section in
the Styles Sidebar. Those are connected to the DOM Element&apos;s
style=&quot;...&quot; attribute. This is a special section that always exists
in the Styles Sidebar.

For an example:

  &lt;div&gt;
    &lt;p&gt;Text&lt;/p&gt;
  &lt;/div&gt;

  1. Select the &lt;div&gt;
  2. In the &quot;element.style&quot; section, add &quot;color:red&quot;
  -&gt; at this point the div&apos;s style attribute is set. But the DOM wasn&apos;t updated!

If you close and reopen the inspector you will see the correct
styles in DOM:

  &lt;div style=&quot;color:red&quot;&gt;
    &lt;p&gt;Text&lt;/p&gt;
  &lt;/div&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267031</commentid>
    <comment_count>4</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2010-08-19 16:20:50 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Sigh... disregard my entire comment, I&apos;m confused.
&gt; It is a valid problem when editing in the &quot;element&apos;s &apos;style&apos; attribute&quot;.

No problem =). Too bad Bugzilla doesn&apos;t allow deleting comments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>334245</commentid>
    <comment_count>5</comment_count>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2011-01-14 05:06:39 -0800</bug_when>
    <thetext>The symptoms sound like bug 51478, which has been fixed in ToT.

*** This bug has been marked as a duplicate of bug 51478 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>