Changeset 65868 in webkit


Ignore:
Timestamp:
Aug 24, 2010 12:12:50 AM (14 years ago)
Author:
abarth@webkit.org
Message:

2010-08-23 Eric Seidel <eric@webkit.org>

Reviewed by Adam Barth.

Use new HTML5 TreeBuilder for fragment parsing
https://bugs.webkit.org/show_bug.cgi?id=44475

The HTML5 TreeBuilder is ready to be used for all parsing
including fragments! This is the last change to move trunk
off of the LegacyHTMLTreeBuilder. We'll go through and
delete the thousands of lines of code supporting the old
parser in a separate patch.

This is covered by many layout tests.

  • html/HTMLTreeBuilder.cpp:

2010-08-23 Eric Seidel <eric@webkit.org>

Reviewed by Adam Barth.

Use new HTML5 TreeBuilder for fragment parsing
https://bugs.webkit.org/show_bug.cgi?id=44475

The HTML5 TreeBuilder is ready to be used for all parsing
including fragments! This is the last change to move trunk
off of the LegacyHTMLTreeBuilder. We'll go through and
delete the thousands of lines of code supporting the old
parser in a separate patch.

As far as we can tell, all of these are test progressions, see below.

  • editing/pasteboard/paste-noscript-svg-expected.txt: progression.
  • fast/forms/state-restore-to-non-edited-controls-expected.txt: matches minefield.
  • fast/innerHTML/innerHTML-changing-document-properties-expected.txt: new HTML5 exception code, progression.
  • fast/parser/fragment-parser-expected.txt: matches minefield.
  • fast/parser/p-in-scope-expected.txt: matches minefield.
  • fast/parser/p-in-scope-strict-expected.txt: matches minefield.
  • fast/parser/residual-style-close-across-n-blocks-expected.txt: matches minefield.
  • fast/table/incomplete-table-in-fragment-2-expected.txt: matches minefield.
  • fast/table/incomplete-table-in-fragment-hang-expected.txt: matches minefield.
  • html5lib/runner-expected.txt: progression!
  • http/tests/security/xssAuditor/dom-write-innerHTML-expected.txt: Adam will fix this separately.
Location:
trunk
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r65865 r65868  
     12010-08-23  Eric Seidel  <eric@webkit.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        Use new HTML5 TreeBuilder for fragment parsing
     6        https://bugs.webkit.org/show_bug.cgi?id=44475
     7
     8        The HTML5 TreeBuilder is ready to be used for all parsing
     9        including fragments!  This is the last change to move trunk
     10        off of the LegacyHTMLTreeBuilder.  We'll go through and
     11        delete the thousands of lines of code supporting the old
     12        parser in a separate patch.
     13
     14        As far as we can tell, all of these are test progressions, see below.
     15
     16        * editing/pasteboard/paste-noscript-svg-expected.txt: progression.
     17        * fast/forms/state-restore-to-non-edited-controls-expected.txt: matches minefield.
     18        * fast/innerHTML/innerHTML-changing-document-properties-expected.txt: new HTML5 exception code, progression.
     19        * fast/parser/fragment-parser-expected.txt: matches minefield.
     20        * fast/parser/p-in-scope-expected.txt: matches minefield.
     21        * fast/parser/p-in-scope-strict-expected.txt: matches minefield.
     22        * fast/parser/residual-style-close-across-n-blocks-expected.txt: matches minefield.
     23        * fast/table/incomplete-table-in-fragment-2-expected.txt: matches minefield.
     24        * fast/table/incomplete-table-in-fragment-hang-expected.txt: matches minefield.
     25        * html5lib/runner-expected.txt: progression!
     26        * http/tests/security/xssAuditor/dom-write-innerHTML-expected.txt: Adam will fix this separately.
     27
    1282010-08-23  Hironori Bono  <hbono@chromium.org>
    229
  • trunk/LayoutTests/editing/pasteboard/paste-noscript-svg-expected.txt

    r53707 r65868  
    33Hello
    44world
    5 <div id="div1">Hello</div><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="5cm" height="3cm" viewbox="0 0 5 3" version="1.1"><a xlink:href=""><ellipse cx="2.5" cy="1.5" rx="2" ry="1" fill="red"></ellipse></a></svg><div id="div2">world</div>
     5<div id="div1">Hello</div><svg xmlns="http://www.w3.org/2000/svg" xlink="http://www.w3.org/1999/xlink" width="5cm" height="3cm" viewBox="0 0 5 3" version="1.1"><a href=""><ellipse cx="2.5" cy="1.5" rx="2" ry="1" fill="red"></ellipse></a></svg><div id="div2">world</div>
  • trunk/LayoutTests/fast/forms/state-restore-to-non-edited-controls-expected.txt

    r57013 r65868  
    66PASS document.getElementById("reset").value is "2"
    77PASS document.getElementById("submit1").value is "2"
    8 PASS document.getElementById("text1").value is "edit"
     8FAIL document.getElementById("text1").value should be edit. Was 2.
    99PASS document.getElementById("text2").value is "2"
    1010PASS document.getElementById("textarea").value is "2"
  • trunk/LayoutTests/fast/innerHTML/innerHTML-changing-document-properties-expected.txt

    r26356 r65868  
    33document.xmlStandalone : true
    44document.readyState : loading
    5 div.innerHTML = threw exception: Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7
     5div.innerHTML = threw exception: Error: INVALID_STATE_ERR: DOM Exception 11
    66document.xmlEncoding : UTF-8
    77document.xmlVersion : 1.0
  • trunk/LayoutTests/fast/parser/fragment-parser-expected.txt

    r55203 r65868  
    66PASS parse('<span><body bgcolor=red>') is ['<span></span>','<html><body></body></html>']
    77PASS parse('<span><html bgcolor=red>') is ['<span></span>','<html><body></body></html>']
    8 PASS parse('<span><meta>') is ['<span></span>','<html><body></body></html>']
    9 PASS parse('<span><base>') is ['<span></span>','<html><body></body></html>']
    10 PASS parse('<html><script>') is ['','<html><body></body></html>']
    11 PASS parse('<html><style>') is ['','<html><body></body></html>']
    12 PASS parse('<html><meta>') is ['','<html><body></body></html>']
    13 PASS parse('<html><link>') is ['','<html><body></body></html>']
     8FAIL parse('<span><meta>') should be <span></span>,<html><body></body></html>. Was <span><meta></span>,<html><body></body></html>.
     9FAIL parse('<span><base>') should be <span></span>,<html><body></body></html>. Was <span><base></span>,<html><body></body></html>.
     10FAIL parse('<html><script>') should be ,<html><body></body></html>. Was <script></script>,<html><body></body></html>.
     11FAIL parse('<html><style>') should be ,<html><body></body></html>. Was <style></style>,<html><body></body></html>.
     12FAIL parse('<html><meta>') should be ,<html><body></body></html>. Was <meta>,<html><body></body></html>.
     13FAIL parse('<html><link>') should be ,<html><body></body></html>. Was <link>,<html><body></body></html>.
    1414PASS parse('<html><object>') is ['<object></object>','<html><body></body></html>']
    1515PASS parse('<html><embed>') is ['<embed>','<html><body></body></html>']
    16 PASS parse('<html><title>') is ['','<html><body></body></html>']
    17 PASS parse('<html><isindex>') is ['<div><hr>This is a searchable index. Enter search keywords: <isindex type="khtml_isindex"><hr></div>','<html><body></body></html>']
    18 PASS parse('<html><base>') is ['','<html><body></body></html>']
     16FAIL parse('<html><title>') should be ,<html><body></body></html>. Was <title></title>,<html><body></body></html>.
     17FAIL parse('<html><isindex>') should be <div><hr>This is a searchable index. Enter search keywords: <isindex type="khtml_isindex"><hr></div>,<html><body></body></html>. Was <form><hr><label>This is a searchable index. Enter search keywords: <input name="isindex"></label><hr></form>,<html><body></body></html>.
     18FAIL parse('<html><base>') should be ,<html><body></body></html>. Was <base>,<html><body></body></html>.
    1919PASS parse('<html><div>') is ['<div></div>','<html><body></body></html>']
    20 PASS parse('<frameset>') is ['<frameset></frameset>','<html><body></body></html>']
     20FAIL parse('<frameset>') should be <frameset></frameset>,<html><body></body></html>. Was ,<html><body></body></html>.
    2121PASS parse('<html>x', true) is ['x','no document element']
    2222PASS successfullyParsed is true
  • trunk/LayoutTests/fast/parser/p-in-scope-expected.txt

    r34507 r65868  
    22
    33Leaf            a       b       big     em      i       s       small   strike  strong  tt      u       abbr    acronym bdo     cite    code    dfn     kbd     q       samp    sub     sup     var     font    nobr    button  applet  object  span    del     ins     marquee
    4 address -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    5 blockquote      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    6 center  -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    7 dir     -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    8 div     -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    9 dl      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    10 fieldset        -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    11 h1      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    12 h2      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    13 h3      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    14 h4      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    15 h5      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    16 h6      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    17 menu    -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    18 ol      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    19 p       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    20 ul      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    21 pre     -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    22 listing -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    23 form    -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    24 hr      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    25 li      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    26 dd      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    27 dt      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    28 plaintext       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    29 table   +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       -
     4address -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     5blockquote      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     6center  -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     7dir     -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     8div     -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     9dl      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     10fieldset        -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     11h1      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     12h2      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     13h3      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     14h4      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     15h5      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     16h6      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     17menu    -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     18ol      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     19p       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     20ul      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     21pre     -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     22listing -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     23form    -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     24hr      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     25li      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     26dd      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     27dt      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     28plaintext       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     29table   +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +       +
    3030
  • trunk/LayoutTests/fast/parser/p-in-scope-strict-expected.txt

    r34507 r65868  
    22
    33Leaf            a       b       big     em      i       s       small   strike  strong  tt      u       abbr    acronym bdo     cite    code    dfn     kbd     q       samp    sub     sup     var     font    nobr    button  applet  object  span    del     ins     marquee
    4 address -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    5 blockquote      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    6 center  -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    7 dir     -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    8 div     -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    9 dl      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    10 fieldset        -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    11 h1      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    12 h2      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    13 h3      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    14 h4      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    15 h5      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    16 h6      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    17 menu    -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    18 ol      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    19 p       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    20 ul      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    21 pre     -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    22 listing -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    23 form    -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    24 hr      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    25 li      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    26 dd      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    27 dt      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    28 plaintext       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
    29 table   -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       +       -       -       -       -
     4address -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     5blockquote      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     6center  -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     7dir     -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     8div     -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     9dl      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     10fieldset        -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     11h1      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     12h2      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     13h3      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     14h4      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     15h5      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     16h6      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     17menu    -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     18ol      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     19p       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     20ul      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     21pre     -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     22listing -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     23form    -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     24hr      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     25li      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     26dd      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     27dt      -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     28plaintext       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
     29table   -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       -       +       +       +       -       -       -       +
    3030
  • trunk/LayoutTests/fast/parser/residual-style-close-across-n-blocks-expected.txt

    r25236 r65868  
    77PASS: 1<i>2<div>3<pre>4<p>5</i>6</p>7</pre>8</div>9 parsed as 1<i>2</i><div><i>3</i><pre><i>4</i><p><i>5</i>6</p>7</pre>8</div>9 as expected.
    88PASS: 1<i>2<div>3<object>4<p>5</i>6</p>7</object>8</div>9 parsed as 1<i>2<div>3<object>4<p>56</p>7</object>8</div>9</i> as expected.
    9 PASS: <a href="#1"><div><div><a href="#2"></a><p>Shouldn't be a link</p></div><p>Shouldn't be a link</p></div><p>Shouldn't be a link</p></a> parsed as <a href="#1"></a><div><a href="#1"></a><div><a href="#2"></a><p>Shouldn't be a link</p></div><p>Shouldn't be a link</p></div><p>Shouldn't be a link</p> as expected.
     9FAIL: <a href="#1"><div><div><a href="#2"></a><p>Shouldn't be a link</p></div><p>Shouldn't be a link</p></div><p>Shouldn't be a link</p></a> parsed as <a href="#1"></a><div><a href="#1"></a><div><a href="#1"></a><a href="#2"></a><p>Shouldn't be a link</p></div><p>Shouldn't be a link</p></div><p>Shouldn't be a link</p> instead of <a href="#1"></a><div><a href="#1"></a><div><a href="#2"></a><p>Shouldn't be a link</p></div><p>Shouldn't be a link</p></div><p>Shouldn't be a link</p>
    1010PASS: <p><a>RED</p>RED<div>RED<p>RED<a>RED</a>BLACK</p>BLACK</div>BLACK parsed as <p><a>RED</a></p><a>RED</a><div><a>RED</a><p><a>RED</a><a>RED</a>BLACK</p>BLACK</div>BLACK as expected.
    11 PASS: <a href="#outside"><p>Outside link.</p><div><div><a href="#inside">Inside link.</a></div></div><p>After all links</p> parsed as <a href="#outside"><p>Outside link.</p></a><div><a href="#outside"></a><div><a href="#inside">Inside link.</a></div></div><p>After all links</p> as expected.
    12 PASS: <a href="http://webkit.org"><div><h3><a href="about:blank">This is a link.</a></h3>This is not a link under Firefox, but it is under Safari. parsed as <a href="http://webkit.org"></a><div><a href="http://webkit.org"></a><h3><a href="about:blank">This is a link.</a></h3>This is not a link under Firefox, but it is under Safari.</div> as expected.
     11FAIL: <a href="#outside"><p>Outside link.</p><div><div><a href="#inside">Inside link.</a></div></div><p>After all links</p> parsed as <a href="#outside"><p>Outside link.</p></a><div><a href="#outside"></a><div><a href="#outside"></a><a href="#inside">Inside link.</a></div></div><p>After all links</p> instead of <a href="#outside"><p>Outside link.</p></a><div><a href="#outside"></a><div><a href="#inside">Inside link.</a></div></div><p>After all links</p>
     12FAIL: <a href="http://webkit.org"><div><h3><a href="about:blank">This is a link.</a></h3>This is not a link under Firefox, but it is under Safari. parsed as <a href="http://webkit.org"></a><div><a href="http://webkit.org"></a><h3><a href="http://webkit.org"></a><a href="about:blank">This is a link.</a></h3>This is not a link under Firefox, but it is under Safari.</div> instead of <a href="http://webkit.org"></a><div><a href="http://webkit.org"></a><h3><a href="about:blank">This is a link.</a></h3>This is not a link under Firefox, but it is under Safari.</div>
    1313
  • trunk/LayoutTests/fast/table/incomplete-table-in-fragment-2-expected.txt

    r25617 r65868  
    11Test error handling for incomplete tables inside a document fragment. These should not crash or hang.
    22
    3 <tbody></tbody>
    4 <thead></thead>
    5 <tfoot></tfoot>
    6 <tr></tr>
    7 <td>text</td>
    8 <th>text</th>
    9 <tbody></tbody>
    10 <tbody><tr></tr></tbody>
     3<tbody></tbody>text
     4<thead></thead>text
     5<tfoot></tfoot>text
     6<tbody><tr></tr></tbody>text
    117<tbody><tr><td>text</td></tr></tbody>
    128<tbody><tr><th>text</th></tr></tbody>
    13 <tr><td>text</td></tr>
    14 <th>text</th>
    15 <td>text</td>
    16 <tbody><tr><td><div></div></td></tr></tbody>
    17 <thead><tr><td><div></div></td></tr></thead>
    18 <tfoot><tr><td><div></div></td></tr></tfoot>
    19 <tr><td><div></div></td></tr>
    20 <td><div></div></td>
    21 <th><div></div></th>
    22 <tbody><tr><td><div></div></td></tr></tbody>
    23 <tbody><tr><td><div></div></td></tr></tbody>
     9<tbody></tbody>text
     10<tbody><tr></tr></tbody>text
     11<tbody><tr><td>text</td></tr></tbody>
     12<tbody><tr><th>text</th></tr></tbody>
     13<tbody><tr></tr></tbody><tbody></tbody>text
     14<tbody><tr><th></th></tr></tbody><tbody></tbody>text
     15<tbody><tr><td></td></tr></tbody><tbody></tbody>text
     16<tbody></tbody><div></div>
     17<thead></thead><div></div>
     18<tfoot></tfoot><div></div>
     19<tbody><tr></tr></tbody><div></div>
    2420<tbody><tr><td><div></div></td></tr></tbody>
    2521<tbody><tr><th><div></div></th></tr></tbody>
    26 <tr><td><div></div></td></tr>
    27 <th><div></div></th>
    28 <td><div></div></td>
     22<tbody></tbody><div></div>
     23<tbody><tr></tr></tbody><div></div>
     24<tbody><tr><td><div></div></td></tr></tbody>
     25<tbody><tr><th><div></div></th></tr></tbody>
     26<tbody><tr></tr></tbody><tbody></tbody><div></div>
     27<tbody><tr><th></th></tr></tbody><tbody></tbody><div></div>
     28<tbody><tr><td></td></tr></tbody><tbody></tbody><div></div>
  • trunk/LayoutTests/fast/table/incomplete-table-in-fragment-hang-expected.txt

    r25617 r65868  
    11Test error handling for incomplete tables inside a document fragment. These should not crash or hang.
    22
    3 <tbody></tbody><table></table>
    4 <thead></thead><table></table>
    5 <tfoot></tfoot><table></table>
    6 <tr></tr><table></table>
    7 <td><table></table></td>
    8 <th><table></table></th>
    9 <tbody><tr></tr></tbody><table></table>
    10 <tbody><tr><th><table></table></th></tr></tbody>
    11 <tbody><tr><td><table></table></td></tr></tbody>
    12 <tr><td><table></table></td></tr>
    13 <th><table></table></th>
    14 <td><table></table></td>
    15 <tbody><tr><td><table></table></td></tr></tbody>
    16 <option></option><table><tbody></tbody></table><table></table>
     3<table></table>
     4<table></table>
     5<table></table>
     6<table></table>
     7<table></table>
     8<table></table>
     9<table></table>
     10<table></table>
     11<table></table>
     12<table></table>
     13<table></table>
     14<table></table>
     15<option><table></table></option>
     16<option></option><table></table><table></table>
  • trunk/LayoutTests/html5lib/runner-expected.txt

    r65769 r65868  
    1616resources/tests3.dat: PASS
    1717
    18 resources/tests4.dat:
    19 6
    20 7
    21 
    22 Test 6 of 7 in resources/tests4.dat failed. Input:
    23 setting html's innerHTML
    24 Got:
    25 | "setting html's innerHTML"
    26 Expected:
    27 | <head>
    28 | <body>
    29 |   "setting html's innerHTML"
    30 
    31 Test 7 of 7 in resources/tests4.dat failed. Input:
    32 <title>setting head's innerHTML</title>
    33 Got:
    34 |
    35 Expected:
    36 | <title>
    37 |   "setting head's innerHTML"
     18resources/tests4.dat: PASS
     19
    3820resources/tests5.dat: PASS
    3921
    40 resources/tests6.dat:
    41 27
     22resources/tests6.dat: PASS
     23
     24resources/tests7.dat:
    422530
    43 37
    44 44
    45 45
    46 
    47 Test 27 of 51 in resources/tests6.dat failed. Input:
    48 foo<col>
    49 Got:
    50 |
    51 Expected:
    52 | <col>
    53 
    54 Test 30 of 51 in resources/tests6.dat failed. Input:
    55 </frameset><frame>
    56 Got:
    57 |
    58 Expected:
    59 | <frame>
    60 
    61 Test 37 of 51 in resources/tests6.dat failed. Input:
    62 <caption><col><colgroup><tbody><tfoot><thead><tr>
    63 Got:
    64 | <caption>
    65 | <colgroup>
    66 | <tbody>
    67 | <tfoot>
    68 | <thead>
    69 |   <tr>
    70 Expected:
    71 | <tr>
    72 
    73 Test 44 of 51 in resources/tests6.dat failed. Input:
    74 </table><tr>
    75 Got:
    76 | <tr>
    77 Expected:
    78 | <tbody>
    79 |   <tr>
    80 
    81 Test 45 of 51 in resources/tests6.dat failed. Input:
    82 <body></body></html>
    83 Got:
    84 |
    85 Expected:
    86 | <head>
    87 | <body>
    88 resources/tests7.dat:
    89 24
    90 30
    91 
    92 Test 24 of 30 in resources/tests7.dat failed. Input:
    93 <body>X</body></body>
    94 Got:
    95 | "X"
    96 Expected:
    97 | <head>
    98 | <body>
    99 |   "X"
    10026
    10127Test 30 of 30 in resources/tests7.dat failed. Input:
  • trunk/LayoutTests/http/tests/security/xssAuditor/dom-write-innerHTML-expected.txt

    r45314 r65868  
    1 CONSOLE MESSAGE: line 1: Refused to execute a JavaScript script. Source code of script found within request.
    21
    3 
  • trunk/WebCore/ChangeLog

    r65864 r65868  
     12010-08-23  Eric Seidel  <eric@webkit.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        Use new HTML5 TreeBuilder for fragment parsing
     6        https://bugs.webkit.org/show_bug.cgi?id=44475
     7
     8        The HTML5 TreeBuilder is ready to be used for all parsing
     9        including fragments!  This is the last change to move trunk
     10        off of the LegacyHTMLTreeBuilder.  We'll go through and
     11        delete the thousands of lines of code supporting the old
     12        parser in a separate patch.
     13
     14        This is covered by many layout tests.
     15
     16        * html/HTMLTreeBuilder.cpp:
     17
    1182010-08-23  Adam Barth  <abarth@webkit.org>
    219
  • trunk/WebCore/html/HTMLElement.cpp

    r65681 r65868  
    276276}
    277277
    278 static bool useLegacyTreeBuilder(Document* document)
    279 {
    280     return !document || !document->settings() || !document->settings()->html5TreeBuilderEnabled();
     278static bool useLegacyTreeBuilder(Document*)
     279{
     280    return false;
    281281}
    282282
  • trunk/WebCore/html/HTMLTreeBuilder.cpp

    r65843 r65868  
    9999}
    100100
    101 bool shouldUseLegacyTreeBuilder(Document* document)
    102 {
    103     return !document->settings() || !document->settings()->html5TreeBuilderEnabled();
     101bool shouldUseLegacyTreeBuilder(Document*)
     102{
     103    // Never use the LegacyHTMLTreeBuilder.  We'll remove the 10k+ lines of
     104    // code supporting this bool in later commits.
     105    return false;
    104106}
    105107
  • trunk/WebCore/page/Settings.cpp

    r65410 r65868  
    134134    , m_tiledBackingStoreEnabled(false)
    135135    , m_html5ParserEnabled(true)
    136     , m_html5TreeBuilderEnabled(false) // Will be deleted soon, do not use.
    137136    , m_paginateDuringLayoutEnabled(false)
    138137    , m_dnsPrefetchingEnabled(true)
  • trunk/WebCore/page/Settings.h

    r65410 r65868  
    311311        void setHTML5ParserEnabled(bool flag) { m_html5ParserEnabled = flag; }
    312312        bool html5ParserEnabled() const { return m_html5ParserEnabled; }
    313 
    314         // NOTE: This code will be deleted once the HTML5TreeBuilder is ready
    315         // to replace LegacyHTMLTreeBuilder.  Using the HTML5DocumentParser
    316         // with LegacyHTMLTreeBuilder will not be supported long-term.
    317         // Setting is only for testing the new tree builder in DumpRenderTree.
    318         void setHTML5TreeBuilderEnabled_DO_NOT_USE(bool flag) { m_html5TreeBuilderEnabled = flag; }
    319         bool html5TreeBuilderEnabled() const { return m_html5TreeBuilderEnabled; }
    320313
    321314        void setPaginateDuringLayoutEnabled(bool flag) { m_paginateDuringLayoutEnabled = flag; }
     
    412405        bool m_tiledBackingStoreEnabled : 1;
    413406        bool m_html5ParserEnabled: 1;
    414         bool m_html5TreeBuilderEnabled: 1; // Will be deleted soon, do not use.
    415407        bool m_paginateDuringLayoutEnabled : 1;
    416408        bool m_dnsPrefetchingEnabled : 1;
  • trunk/WebKit/mac/WebView/WebView.mm

    r65697 r65868  
    14391439    settings->setFrameFlatteningEnabled([preferences isFrameFlatteningEnabled]);
    14401440    settings->setHTML5ParserEnabled([preferences html5ParserEnabled]);
    1441     settings->setHTML5TreeBuilderEnabled_DO_NOT_USE([preferences html5TreeBuilderEnabled]);
    14421441    settings->setPaginateDuringLayoutEnabled([preferences paginateDuringLayoutEnabled]);
    14431442    settings->setMemoryInfoEnabled([preferences memoryInfoEnabled]);
Note: See TracChangeset for help on using the changeset viewer.