1. 13 Nov, 2011 2 commits
    • Andrew Balholm's avatar
      html: auto-close <dd> and <dt> elements · 06ef97e1
      Andrew Balholm authored
      Pass tests2.dat, test 8:
      <!DOCTYPE html><dt><div><dd>
      
      | <!DOCTYPE html>
      | <html>
      |   <head>
      |   <body>
      |     <dt>
      |       <div>
      |     <dd>
      
      Also pass tests through test 9:
      <script></x
      
      R=nigeltao
      CC=golang-dev
      https://golang.org/cl/5373083
      06ef97e1
    • Andrew Balholm's avatar
      html: store the current insertion mode in the parser · 631a575f
      Andrew Balholm authored
      Currently, the state transition functions in the HTML parser
      return the next insertion mode and whether the token is consumed.
      This works well except for when one insertion mode needs to use
      the rules for another insertion mode. Then the useTheRulesFor
      function needs to patch things up. This requires comparing functions
      for equality, which is going to stop working.
      
      Adding a field to the parser structure to store the current
      insertion mode eliminates the need for useTheRulesFor;
      one insertion mode function can now just call the other
      directly. The insertion mode will be changed only if it needs to be.
      
      This CL is an alternative to CL 5372078.
      
      R=nigeltao, rsc
      CC=golang-dev
      https://golang.org/cl/5372079
      631a575f
  2. 12 Nov, 2011 5 commits
  3. 11 Nov, 2011 16 commits
  4. 10 Nov, 2011 8 commits
  5. 09 Nov, 2011 9 commits