<?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>31454</bug_id>
          
          <creation_ts>2009-11-12 20:28:01 -0800</creation_ts>
          <short_desc>WebKit Coding Style Guidelines should say not to use &quot;using namespace&quot; statements in header files</short_desc>
          <delta_ts>2009-11-14 11:13:35 -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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://lists.webkit.org/pipermail/webkit-dev/2009-November/010434.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>Trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Chris Jerdonek">cjerdonek</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>darin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>163190</commentid>
    <comment_count>0</comment_count>
      <attachid>43130</attachid>
    <who name="Chris Jerdonek">cjerdonek</who>
    <bug_when>2009-11-12 20:28:01 -0800</bug_when>
    <thetext>Created attachment 43130
Patch submitted

On the webkit-dev e-mail list, Darin Adler said that &quot;using namespace&quot; statements are not permitted in header files (see this report&apos;s URL for the e-mail).  He said we should clarify that -- hence this report.  A patch to the Coding Style Guidelines is attached.  Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163210</commentid>
    <comment_count>1</comment_count>
      <attachid>43130</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2009-11-12 21:19:47 -0800</bug_when>
    <thetext>Comment on attachment 43130
Patch submitted

Need a &lt;/li&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163229</commentid>
    <comment_count>2</comment_count>
      <attachid>43136</attachid>
    <who name="Chris Jerdonek">cjerdonek</who>
    <bug_when>2009-11-12 23:06:23 -0800</bug_when>
    <thetext>Created attachment 43136
New patch: added some closing &lt;/li&gt;&apos;s

The surrounding sections did not have closing &lt;/li&gt;&apos;s, which is what I was going by.  (The entire document is inconsistent in this regard.)

I am attaching a new patch with closing &lt;/li&gt;&apos;s for the three list items in the &quot;using namespace&quot; section.  Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163231</commentid>
    <comment_count>3</comment_count>
      <attachid>43136</attachid>
    <who name="Chris Jerdonek">cjerdonek</who>
    <bug_when>2009-11-12 23:08:22 -0800</bug_when>
    <thetext>Comment on attachment 43136
New patch: added some closing &lt;/li&gt;&apos;s

Marking previous attachment as a patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163319</commentid>
    <comment_count>4</comment_count>
      <attachid>43136</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2009-11-13 08:40:02 -0800</bug_when>
    <thetext>Comment on attachment 43136
New patch: added some closing &lt;/li&gt;&apos;s

Someone should run the file through an HTML validator and fix issues they find.

r=me on this change</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163447</commentid>
    <comment_count>5</comment_count>
      <attachid>43130</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-11-13 12:32:58 -0800</bug_when>
    <thetext>Comment on attachment 43130
Patch submitted

Be sure to mark your old patches as obsolete when uploading replacement patches.  Some tools, like bugzilla-tool post-diff or bugzilla-tool post-commits will do this automatically for you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163493</commentid>
    <comment_count>6</comment_count>
      <attachid>43136</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-11-13 13:59:49 -0800</bug_when>
    <thetext>Comment on attachment 43136
New patch: added some closing &lt;/li&gt;&apos;s

Rejecting patch 43136 from commit-queue.

Failed to run &quot;[&apos;WebKitTools/Scripts/run-webkit-tests&apos;, &apos;--no-launch-safari&apos;, &apos;--quiet&apos;, &apos;--exit-after-n-failures=1&apos;]&quot; exit_code: 1
Running build-dumprendertree
Running tests from /Users/eseidel/Projects/CommitQueue/LayoutTests
Testing 11621 test cases.
fast/workers/worker-terminate.html -&gt; crashed

Exiting early after 1 failures. 8405 tests run.
361.78s total testing time

8404 test cases (99%) succeeded
1 test case (&lt;1%) crashed
3 test cases (&lt;1%) had stderr output</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163494</commentid>
    <comment_count>7</comment_count>
      <attachid>43136</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-11-13 14:01:18 -0800</bug_when>
    <thetext>Comment on attachment 43136
New patch: added some closing &lt;/li&gt;&apos;s

Not your fault. :(  Bug 31461 again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163513</commentid>
    <comment_count>8</comment_count>
      <attachid>43136</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-11-13 14:12:42 -0800</bug_when>
    <thetext>Comment on attachment 43136
New patch: added some closing &lt;/li&gt;&apos;s

Rejecting patch 43136 from commit-queue.

Failed to run &quot;WebKitTools/Scripts/build-webkit&quot; exit_code: 1
Last 500 characters of output:
ld/WebCore.build/Release/WebCore.build/Objects-normal/i386/JSCompositionEvent.o /Users/eseidel/Projects/CommitQueue/WebKitBuild/Release/DerivedSources/WebCore/JSCompositionEvent.cpp normal i386 c++ com.apple.compilers.gcc.4_2
	Distributed-CompileC /Users/eseidel/Projects/CommitQueue/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/i386/JSEventCustom.o /Users/eseidel/Projects/CommitQueue/WebCore/bindings/js/JSEventCustom.cpp normal i386 c++ com.apple.compilers.gcc.4_2
(2 failures)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163516</commentid>
    <comment_count>9</comment_count>
      <attachid>43136</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-11-13 14:14:16 -0800</bug_when>
    <thetext>Comment on attachment 43136
New patch: added some closing &lt;/li&gt;&apos;s

I&apos;m in the process of moving the commit-queue to a new machine and it&apos;s had hiccups.  Sorry. :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163582</commentid>
    <comment_count>10</comment_count>
      <attachid>43136</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-11-13 16:25:43 -0800</bug_when>
    <thetext>Comment on attachment 43136
New patch: added some closing &lt;/li&gt;&apos;s

Clearing flags on attachment: 43136

Committed r50978: &lt;http://trac.webkit.org/changeset/50978&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163583</commentid>
    <comment_count>11</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-11-13 16:25:47 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163612</commentid>
    <comment_count>12</comment_count>
    <who name="Chris Jerdonek">cjerdonek</who>
    <bug_when>2009-11-13 17:51:25 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (From update of attachment 43136 [details])
&gt; Someone should run the file through an HTML validator and fix issues they find.
&gt; 
&gt; r=me on this change

I did this while preparing the patch, and there was only one issue.  The &lt;style&gt; tag specifying a style unique to this page (the style for code excerpts) occurs in the &lt;body&gt; rather than the &lt;head&gt;.  This is partly a consequence of how the site is structured in source control with the &lt;body&gt; of each page being included, the &lt;head&gt; lying in another file, etc.  So I didn&apos;t try addressing it in this patch.

By the way, the document type for the page is HTML 4.01 strict, which doesn&apos;t really require closing &lt;li&gt;&apos;s.  If we want to switch to XHTML for the site, perhaps that should be made as a decision.  It would be like deciding on a style guideline for the HTML in addition to the code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163619</commentid>
    <comment_count>13</comment_count>
    <who name="Chris Jerdonek">cjerdonek</who>
    <bug_when>2009-11-13 18:00:20 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; (From update of attachment 43130 [details])
&gt; Be sure to mark your old patches as obsolete when uploading replacement
&gt; patches.  Some tools, like bugzilla-tool post-diff or bugzilla-tool
&gt; post-commits will do this automatically for you.

I wanted to give the reviewer the option of selecting either patch, given the extra information I supplied with the second patch.  Is there a better way for me to do that?

Also, I apologize in advance if I shouldn&apos;t be adding comments to a closed bug report.  Let me know if there is a better way to handle that as well.  Thanks for your help as I learn the ropes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163673</commentid>
    <comment_count>14</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2009-11-14 11:13:35 -0800</bug_when>
    <thetext>(In reply to comment #12)
&gt; By the way, the document type for the page is HTML 4.01 strict, which doesn&apos;t
&gt; really require closing &lt;li&gt;&apos;s.

I was surprised to learn this.

&gt; If we want to switch to XHTML for the site, perhaps that should be made as a decision.

Absolutely not! My desire to close an &lt;li&gt; element was not driven at all by a desire to use XHTML. I just have a habit of closing elements that are not self-closing. My ignorance -- sorry.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>43130</attachid>
            <date>2009-11-12 20:28:01 -0800</date>
            <delta_ts>2009-11-13 12:32:58 -0800</delta_ts>
            <desc>Patch submitted</desc>
            <filename>patch.diff</filename>
            <type>text/plain</type>
            <size>1063</size>
            <attacher name="Chris Jerdonek">cjerdonek</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdFNpdGUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYktpdFNpdGUvQ2hh
bmdlTG9nCShyZ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IGEgbmVzdGVkIG5hbWVzcGFjZSB3aG9zZSBwYXJl
bnQgbmFtZXNwYWNlIAogaXMgYWxzbyBkZWZpbmVkIGluIGEgZmlsZSBtdXN0IGJlIGRlY2xhcmVk
IHdpdGhpbiB0aGF0IG5hbWVzcGFjZSBkZWZpbml0aW9uLgogCg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>43136</attachid>
            <date>2009-11-12 23:06:23 -0800</date>
            <delta_ts>2009-11-13 16:25:42 -0800</delta_ts>
            <desc>New patch: added some closing &lt;/li&gt;&apos;s</desc>
            <filename>patch2.diff</filename>
            <type>text/plain</type>
            <size>1285</size>
            <attacher name="Chris Jerdonek">cjerdonek</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdFNpdGUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYktpdFNpdGUvQ2hh
bmdlTG9nCShyZXZpc2lvbiA1MDkyNCkKKysrIFdlYktpdFNpdGUvQ2hhbmdlTG9nCSh3b3JraW5n
IGNvcHkpCkBAIC0xLDMgKzEsMTIgQEAKKzIwMDktMTEtMTIgIENocmlzIEplcmRvbmVrICA8Y2hy
aXMuamVyZG9uZWtAZ21haWwuY29tPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09Q
UyEpLgorCisgICAgICAgIEFkZGVkIHRvIHRoZSBXZWJLaXQgQ29kaW5nIFN0eWxlIEd1aWRlbGlu
ZXMgbm90IHRvIHVzZSAKKyAgICAgICAgInVzaW5nIG5hbWVzcGFjZSIgc3RhdGVtZW50cyBpbiBo
ZWFkZXIgZmlsZXMuCisKKyAgICAgICAgKiBjb2RpbmcvY29kaW5nLXN0eWxlLmh0bWw6CisKIDIw
MDktMTEtMTAgIE9saXZlciBIdW50ICA8b2xpdmVyQGFwcGxlLmNvbT4KIAogICAgICAg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