<?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>14932</bug_id>
          
          <creation_ts>2007-08-10 11:50:00 -0700</creation_ts>
          <short_desc>Display Elements Attributes in Styles pane</short_desc>
          <delta_ts>2007-10-28 15:46:22 -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>Web Inspector (Deprecated)</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Sascha">saschast</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2607</commentid>
    <comment_count>0</comment_count>
    <who name="Sascha">saschast</who>
    <bug_when>2007-08-10 11:50:00 -0700</bug_when>
    <thetext>In the actual builds each element attributes are shown in the Styles pane as separated block.
I would prefer to see all attributes as a single block, like the inline style displayed as &quot;Elements &apos;style&apos; Attribute&quot;.
For this i have patched the Webinspector File: &quot;ResourcePanels.js&quot; with following code.
It*s a quick and dirty hack i think you make this better.

File: ResourcePanels.js
Function: updateStyles
Start Line: 588

            var styleNodeName = styleNode.nodeName.toLowerCase();
		var ss_attrName = &quot;&quot;;
		var ss_hasAttrStyles = false;
            for (var i = 0; i &lt; styleNode.attributes.length; ++i) {
            	var attr = styleNode.attributes[i];
            	if (attr.style) {
				if (!ss_hasAttrStyles) {
					var ss_attrStyles = attr.style;
					ss_hasAttrStyles = true;
				} else {
					ss_attrStyles.setProperty(attr.style[0], attr.style.getPropertyValue(attr.style[0]), attr.style.getPropertyPriority(attr.style[0]) ); 
				}
            	}
            }
		if (ss_hasAttrStyles) {
            	var attrStyle = {style: ss_attrStyles };
     		      attrStyle.subtitle = &quot;Elements Attributes&quot;;
     	      	attrStyle.selectorText = styleNodeName + &quot;\u2019s attributes&quot;;
                  styleRules.push(attrStyle);
		}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59726</commentid>
    <comment_count>1</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2007-10-28 15:46:22 -0700</bug_when>
    <thetext>We show the mapped style attributes separately to better show where they originated. Grouping them together would make it somewhat ambiguous what attribute caused what styles to be applied, since they can map to more than one style property. (The contenteditable attribute is a good example.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>