[HTMLTemplateElement] Change template.dat serialization format
authorrafaelw@chromium.org <rafaelw@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Feb 2013 02:20:24 +0000 (02:20 +0000)
committerrafaelw@chromium.org <rafaelw@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Feb 2013 02:20:24 +0000 (02:20 +0000)
https://bugs.webkit.org/show_bug.cgi?id=109635

Reviewed by Eric Seidel.

The serialization format now uses 'content' instead of '#document-fragment' to
denote template contents.

* html5lib/resources/template.dat:
* resources/dump-as-markup.js:
(Markup._get):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142702 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/html5lib/resources/template.dat
LayoutTests/resources/dump-as-markup.js

index f50654c..12e4845 100644 (file)
@@ -1,3 +1,17 @@
+2013-02-12  Rafael Weinstein  <rafaelw@chromium.org>
+
+        [HTMLTemplateElement] Change template.dat serialization format
+        https://bugs.webkit.org/show_bug.cgi?id=109635
+
+        Reviewed by Eric Seidel.
+
+        The serialization format now uses 'content' instead of '#document-fragment' to
+        denote template contents.
+
+        * html5lib/resources/template.dat:
+        * resources/dump-as-markup.js:
+        (Markup._get):
+
 2013-02-12  Nico Weber  <thakis@chromium.org>
 
         Remove webintents from TestExpectations files
index f48f27d..7f9bf59 100644 (file)
@@ -6,7 +6,7 @@
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         "Hello"
 
 #data
@@ -16,7 +16,7 @@
 | <html>
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |         "Hello"
 |   <body>
 
@@ -27,7 +27,7 @@
 | <html>
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |   <body>
 |     <div>
 
@@ -38,7 +38,7 @@
 | <html>
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |         "Hello"
 |   <body>
 
@@ -49,7 +49,7 @@
 | <html>
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |         <div>
 |   <body>
 
@@ -62,7 +62,7 @@
 |   <body>
 |     <div>
 |       <template>
-|         #document-fragment
+|         content
 |           <div>
 |             <span>
 |       <b>
@@ -76,7 +76,7 @@
 |   <body>
 |     <div>
 |       <template>
-|         #document-fragment
+|         content
 |           "Hello"
 
 #data
@@ -97,7 +97,7 @@
 |   <body>
 |     <table>
 |       <template>
-|         #document-fragment
+|         content
 
 #data
 <table><template></template></div>
 |   <body>
 |     <table>
 |       <template>
-|         #document-fragment
+|         content
 
 #data
 <table><div><template></template></div>
 |   <body>
 |     <div>
 |       <template>
-|         #document-fragment
+|         content
 |     <table>
 
 #data
 |     <div>
 |     <table>
 |       <template>
-|         #document-fragment
+|         content
 
 #data
 <table>   <template></template></table>
 |     <table>
 |       "   "
 |       <template>
-|         #document-fragment
+|         content
 
 #data
 <table><tbody><template></template></tbody>
 |     <table>
 |       <tbody>
 |         <template>
-|           #document-fragment
+|           content
 
 #data
 <table><tbody><template></tbody></template>
 |     <table>
 |       <tbody>
 |         <template>
-|           #document-fragment
+|           content
 
 #data
 <table><tbody><template></template></tbody></table>
 |     <table>
 |       <tbody>
 |         <template>
-|           #document-fragment
+|           content
 
 #data
 <table><thead><template></template></thead>
 |     <table>
 |       <thead>
 |         <template>
-|           #document-fragment
+|           content
 
 #data
 <table><tfoot><template></template></tfoot>
 |     <table>
 |       <tfoot>
 |         <template>
-|           #document-fragment
+|           content
 
 #data
 <select><template></template></select>
 |   <body>
 |     <select>
 |       <template>
-|         #document-fragment
+|         content
 
 #data
 <select><template><option></option></template></select>
 |   <body>
 |     <select>
 |       <template>
-|         #document-fragment
+|         content
 |           <option>
 
 #data
 | <html>
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |         <option>
 |         <option>
 |   <body>
 |   <body>
 |     <select>
 |       <template>
-|         #document-fragment
+|         content
 |       <option>
 
 #data
 |     <select>
 |       <option>
 |         <template>
-|           #document-fragment
+|           content
 
 #data
 <select><template>
 |   <body>
 |     <select>
 |       <template>
-|         #document-fragment
+|         content
 
 #data
 <select><option></option><template>
 |     <select>
 |       <option>
 |       <template>
-|         #document-fragment
+|         content
 
 #data
 <select><option></option><template><option>
 |     <select>
 |       <option>
 |       <template>
-|         #document-fragment
+|         content
 |           <option>
 
 #data
 |     <table>
 |       <thead>
 |         <template>
-|           #document-fragment
+|           content
 |             <td>
 
 #data
 |   <body>
 |     <table>
 |       <template>
-|         #document-fragment
+|         content
 |           <thead>
 
 #data
 |   <body>
 |     <table>
 |       <template>
-|         #document-fragment
+|         content
 |           <td>
 |             <div>
 
 |   <body>
 |     <table>
 |       <template>
-|         #document-fragment
+|         content
 |           <thead>
 
 #data
 |     <table>
 |       <thead>
 |         <template>
-|           #document-fragment
+|           content
 |             <tr>
 
 #data
 |   <body>
 |     <table>
 |       <template>
-|         #document-fragment
+|         content
 |           <tr>
 
 #data
 |       <tbody>
 |         <tr>
 |           <template>
-|             #document-fragment
+|             content
 |               <td>
 
 #data
 |   <body>
 |     <table>
 |       <template>
-|         #document-fragment
+|         content
 |           <tr>
 |             <template>
-|               #document-fragment
+|               content
 |                 <td>
 
 #data
 |   <body>
 |     <table>
 |       <template>
-|         #document-fragment
+|         content
 |           <tr>
 |             <template>
-|               #document-fragment
+|               content
 |                 <td>
 
 #data
 |   <body>
 |     <table>
 |       <template>
-|         #document-fragment
+|         content
 |           <td>
 
 #data
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <td>
 
 #data
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <template>
-|           #document-fragment
+|           content
 |             <tr>
 |         <td>
 
 |     <table>
 |       <colgroup>
 |         <template>
-|           #document-fragment
+|           content
 |             <col>
 
 #data
 |   <head>
 |   <frameset>
 |     <template>
-|       #document-fragment
+|       content
 |         <frame>
 
 #data
 | <html>
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |         <frame>
 |         <frame>
 |   <body>
 | <html>
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |         <div>
 |           <span>
 |         <span>
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <div>
 |           <span>
 |         <span>
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <script>
 |           "var i = 1;"
 |         <td>
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <tr>
 |         <div>
 
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <tr>
 |         <tr>
 |           <td>
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <td>
 |         <td>
 
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <td>
 |         <td>
 
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <td>
 |         <td>
 
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <td>
 |         <td>
 
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <td>
 |         <td>
 
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <tr>
 |         <tr>
 
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <tr>
 |         <tr>
 
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <tr>
 |         <tr>
 
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <thead>
 |         <caption>
 |         <tbody>
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <thead>
 |         <tbody>
 
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <div>
 
 #data
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <em>
 |           "Hello"
 
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <!-- comment -->
 
 #data
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <style>
 |         <td>
 
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <meta>
 |         <td>
 
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <link>
 |         <td>
 
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <template>
-|           #document-fragment
+|           content
 |             <tr>
 |         <td>
 
 |     <table>
 |       <colgroup>
 |         <template>
-|           #document-fragment
+|           content
 |             <col>
 
 #data
 |   <body>
 |     a="b"
 |     <template>
-|       #document-fragment
+|       content
 |         <div>
 |         <div>
 
 |   a="b"
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |         <div>
 |           <span>
 |   <body>
 |   a="b"
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |         <col>
 |         <col>
 |   <body>
 |   a="b"
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |         <frame>
 |         <frame>
 |   <body>
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <tr>
 |         <template>
-|           #document-fragment
+|           content
 |         <tr>
 |           <td>
 
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <thead>
 |         <template>
-|           #document-fragment
+|           content
 |             <tr>
 |         <tbody>
 |           <tr>
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <template>
-|           #document-fragment
+|           content
 |             <b>
 |               <template>
-|                 #document-fragment
+|                 content
 |         "text"
 
 #data
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <col>
 
 #data
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <col>
 
 #data
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <col>
 
 #data
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <col>
 
 #data
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <col>
 
 #data
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <col>
 
 #data
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <i>
 |         <menu>
 |           <i>
 |   <head>
 |   <body>
 |     <template>
-|       #document-fragment
+|       content
 |         <div>
 |           "Foo"
 |         <template>
-|           #document-fragment
+|           content
 
 #data
 <body><div><template></div><tr><td>Foo</td></tr></template>
 |   <body>
 |     <div>
 |       <template>
-|         #document-fragment
+|         content
 |           <tr>
 |             <td>
 |               "Foo"
 | <html>
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |         <sub>
 |           <table>
 |   <body>
 | <html>
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |         <template>
-|           #document-fragment
+|           content
 |   <body>
 
 #data
 | <html>
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |         <div>
 |   <body>
 
 | <html>
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |         <template>
-|           #document-fragment
+|           content
 |             <div>
 |   <body>
 
 | <html>
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |         <template>
-|           #document-fragment
+|           content
 |             <table>
 |   <body>
 
 | <html>
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |         <template>
-|           #document-fragment
+|           content
 |             <tbody>
 |   <body>
 
 | <html>
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |         <template>
-|           #document-fragment
+|           content
 |             <tr>
 |   <body>
 
 | <html>
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |         <template>
-|           #document-fragment
+|           content
 |             <td>
 |   <body>
 
 | <html>
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |         <template>
-|           #document-fragment
+|           content
 |             <caption>
 |   <body>
 
 | <html>
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |         <template>
-|           #document-fragment
+|           content
 |             <colgroup>
 |   <body>
 
 | <html>
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |         <template>
-|           #document-fragment
+|           content
 |             <col>
 |   <body>
 
 | <html>
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |         <template>
-|           #document-fragment
+|           content
 |             <tbody>
 |             <select>
 |   <body>
 | <html>
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |         <template>
-|           #document-fragment
+|           content
 |             <table>
 |             "Foo"
 |   <body>
 | <html>
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |         <template>
-|           #document-fragment
+|           content
 |             <frame>
 |   <body>
 
 | <html>
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |         <template>
-|           #document-fragment
+|           content
 |             <script>
 |               "var i"
 |   <body>
 | <html>
 |   <head>
 |     <template>
-|       #document-fragment
+|       content
 |         <template>
-|           #document-fragment
+|           content
 |             <style>
 |               "var i"
 |   <body>
index e2a6975..0ddfc32 100644 (file)
@@ -222,7 +222,7 @@ Markup._get = function(node, depth, shadowRootList)
         if (shadowRootList && internals.address(node) in shadowRootList)
           str += "<shadow:root>";
         else
-          str += "#document-fragment";
+          str += "content";
     }
 
     if (node.namespaceURI = 'http://www.w3.org/1999/xhtml' && node.tagName == 'TEMPLATE')