1. 02 Nov, 2011 1 commit
    • Andrew Balholm's avatar
      html: stop at scope marker node when generating implied </a> tags · 22ee5ae2
      Andrew Balholm authored
      A <a> tag generates implied end tags for any open <a> elements.
      But it shouldn't do that when it is inside a table cell the the open <a>
      is outside the table.
      So stop the search for an open <a> when we reach a scope marker node.
      
      Pass tests1.dat, test 78:
      <a href="blah">aba<table><tr><td><a href="foo">br</td></tr>x</table>aoe
      
      | <html>
      |   <head>
      |   <body>
      |     <a>
      |       href="blah"
      |       "abax"
      |       <table>
      |         <tbody>
      |           <tr>
      |             <td>
      |               <a>
      |                 href="foo"
      |                 "br"
      |       "aoe"
      
      Also pass test 79:
      <table><a href="blah">aba<tr><td><a href="foo">br</td></tr>x</table>aoe
      
      R=nigeltao
      CC=golang-dev
      https://golang.org/cl/5320063
      22ee5ae2
  2. 01 Nov, 2011 11 commits
  3. 31 Oct, 2011 13 commits
  4. 29 Oct, 2011 1 commit
    • Dave Cheney's avatar
      exp/ssh: fix length header leaking into channel data streams. · 0f6b80c6
      Dave Cheney authored
      The payload of a data message is defined as an SSH string type,
      which uses the first four bytes to encode its length. When channelData
      and channelExtendedData were added I defined Payload as []byte to
      be able to use it directly without a string to []byte conversion. This
      resulted in the length data leaking into the payload data.
      
      This CL fixes the bug, and restores agl's original fast path code.
      
      Additionally, a bug whereby s.lock was not released if a packet arrived
      for an invalid channel has been fixed.
      
      Finally, as they were no longer used, I have removed
      the channelData and channelExtedendData structs.
      
      R=agl, rsc
      CC=golang-dev
      https://golang.org/cl/5330053
      0f6b80c6
  5. 28 Oct, 2011 14 commits