Changeset 62375 in webkit
- Timestamp:
- Jul 2, 2010 3:14:14 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r62373 r62375 1 2010-07-02 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 Implement AfterAfterBodyMode 6 https://bugs.webkit.org/show_bug.cgi?id=41501 7 8 The AfterAfterBodyMode doesn't seem to be well-covered by the existing 9 HTML5lib tests, so I added a few more tests to cover it. It's somewhat 10 hard to observe. The only way I can figure out to observe it is where 11 the comment elements get attached to the DOM. 12 13 * html5lib/resources/webkit01.dat: 14 * html5lib/runner-expected-html5.txt: 15 * html5lib/runner-expected.txt: 16 * html5lib/webkit-resumer-expected.txt: 17 1 18 2010-07-02 Yury Semikhatsky <yurys@chromium.org> 2 19 -
trunk/LayoutTests/html5lib/resources/webkit01.dat
r62370 r62375 269 269 | <br> 270 270 | foo="bar" 271 272 #data 273 <html><body></body></html><!-- Hi there --> 274 #errors 275 #document 276 | <html> 277 | <head> 278 | <body> 279 | <!-- Hi there --> 280 281 #data 282 <html><body></body></html>x<!-- Hi there --> 283 #errors 284 #document 285 | <html> 286 | <head> 287 | <body> 288 | "x" 289 | <!-- Hi there --> 290 291 #data 292 <html><body></body></html>x<!-- Hi there --></html><!-- Again --> 293 #errors 294 #document 295 | <html> 296 | <head> 297 | <body> 298 | "x" 299 | <!-- Hi there --> 300 | <!-- Again --> 301 302 #data 303 <html><body></body></html>x<!-- Hi there --></body></html><!-- Again --> 304 #errors 305 #document 306 | <html> 307 | <head> 308 | <body> 309 | "x" 310 | <!-- Hi there --> 311 | <!-- Again --> -
trunk/LayoutTests/html5lib/runner-expected-html5.txt
r62370 r62375 1728 1728 | "X" 1729 1729 | "X" 1730 | "X"1731 1730 Expected: 1732 1731 | <!DOCTYPE html> … … 1932 1931 | "X" 1933 1932 | "X" 1934 | "X"1935 1933 Expected: 1936 1934 | <!DOCTYPE html> … … 1948 1946 | <body> 1949 1947 | "X" 1950 | " "1951 1948 | " " 1952 1949 Expected: … … 3741 3738 | <head> 3742 3739 | <body> 3740 | <math> 3741 | <mi> 3742 | "foo" 3743 | <mi> 3744 | "bar" 3745 | <p> 3746 | "baz" 3743 3747 Expected: 3744 3748 | <!DOCTYPE html> … … 4236 4240 | <head> 4237 4241 | <body> 4242 | <svg> 4243 | <g> 4244 | "foo" 4245 | <g> 4246 | "bar" 4247 | <p> 4248 | "baz" 4238 4249 Expected: 4239 4250 | <!DOCTYPE html> … … 5692 5703 17 5693 5704 5694 Test 17 of 2 3in resources/webkit01.dat failed. Input:5705 Test 17 of 27 in resources/webkit01.dat failed. Input: 5695 5706 <A>test< /A> 5696 5707 Got: -
trunk/LayoutTests/html5lib/runner-expected.txt
r62370 r62375 4690 4690 20 4691 4691 22 4692 4693 Test 17 of 23 in resources/webkit01.dat failed. Input: 4692 24 4693 26 4694 27 4695 4696 Test 17 of 27 in resources/webkit01.dat failed. Input: 4694 4697 <A>test< /A> 4695 4698 Got: … … 4707 4710 | "test< /A>" 4708 4711 4709 Test 20 of 2 3in resources/webkit01.dat failed. Input:4712 Test 20 of 27 in resources/webkit01.dat failed. Input: 4710 4713 <body></br foo="bar"></body> 4711 4714 Got: … … 4721 4724 | <br> 4722 4725 4723 Test 22 of 2 3in resources/webkit01.dat failed. Input:4726 Test 22 of 27 in resources/webkit01.dat failed. Input: 4724 4727 <body></body></br foo="bar"> 4725 4728 Got: … … 4734 4737 | <body> 4735 4738 | <br> 4739 4740 Test 24 of 27 in resources/webkit01.dat failed. Input: 4741 <html><body></body></html><!-- Hi there --> 4742 Got: 4743 | <html> 4744 | <head> 4745 | <body> 4746 | <!-- Hi there --> 4747 Expected: 4748 | <html> 4749 | <head> 4750 | <body> 4751 | <!-- Hi there --> 4752 4753 Test 26 of 27 in resources/webkit01.dat failed. Input: 4754 <html><body></body></html>x<!-- Hi there --></html><!-- Again --> 4755 Got: 4756 | <html> 4757 | <head> 4758 | <body> 4759 | "x" 4760 | <!-- Hi there --> 4761 | <!-- Again --> 4762 Expected: 4763 | <html> 4764 | <head> 4765 | <body> 4766 | "x" 4767 | <!-- Hi there --> 4768 | <!-- Again --> 4769 4770 Test 27 of 27 in resources/webkit01.dat failed. Input: 4771 <html><body></body></html>x<!-- Hi there --></body></html><!-- Again --> 4772 Got: 4773 | <html> 4774 | <head> 4775 | <body> 4776 | "x" 4777 | <!-- Hi there --> 4778 | <!-- Again --> 4779 Expected: 4780 | <html> 4781 | <head> 4782 | <body> 4783 | "x" 4784 | <!-- Hi there --> 4785 | <!-- Again --> 4736 4786 resources/doctype01.dat: PASS 4737 4787 -
trunk/LayoutTests/html5lib/webkit-resumer-expected.txt
r62370 r62375 223 223 725.26 224 224 726.27 225 752.1 226 753.2 227 754.3 228 755.4 229 756.5 230 757.6 231 758.7 232 759.8 233 760.9 234 761.10 235 762.11 236 763.12 237 764.13 238 765.14 239 766.15 240 767.16 241 768.17 242 769.18 243 770.19 244 771.20 245 772.21 246 773.22 247 774.23 248 775.24 249 776.25 250 777.26 251 778.27 252 779.28 253 780.29 254 781.30 255 782.31 256 783.32 257 784.33 258 785.34 259 786.35 260 787.36 261 788.37 262 789.38 263 790.39 264 791.40 265 792.41 266 793.42 267 837.1 268 838.2 269 839.3 270 840.4 271 841.5 272 842.6 273 843.7 274 844.8 275 845.9 276 846.10 277 847.11 278 848.12 279 849.13 280 850.14 281 851.15 282 852.16 283 853.17 284 854.18 285 855.19 286 856.20 287 857.21 288 858.22 289 859.23 290 860.24 291 861.25 292 862.26 293 863.27 294 864.28 295 865.29 296 866.30 297 867.31 298 868.32 299 869.33 300 870.34 301 871.35 302 872.36 303 873.37 304 874.38 305 875.39 306 876.40 307 877.41 308 878.42 309 879.43 310 880.44 311 881.45 312 882.46 313 883.47 314 884.48 315 885.49 316 886.50 317 887.51 318 888.52 319 889.53 320 890.54 321 891.55 322 892.56 323 893.57 324 894.58 325 895.59 326 896.60 327 897.61 328 898.62 329 899.63 330 900.64 331 901.1 332 902.2 333 903.3 334 904.4 335 905.5 336 906.6 337 907.7 338 908.8 339 909.9 340 910.10 341 911.11 342 912.12 343 913.13 344 914.14 345 915.15 346 916.16 347 917.17 348 918.18 349 919.19 350 920.20 351 921.21 352 922.22 353 923.23 354 924.24 355 925.25 356 926.26 357 927.27 358 928.28 359 929.29 360 930.30 361 931.31 362 932.32 363 933.33 364 934.34 365 935.35 366 936.36 367 937.37 368 938.38 369 939.39 370 940.40 371 941.41 372 942.42 373 943.43 374 944.44 375 945.45 376 946.46 377 947.47 378 948.48 379 949.49 380 950.50 381 951.51 382 952.52 383 953.53 384 954.54 385 955.55 386 956.56 387 957.57 388 958.58 389 959.59 390 960.60 391 961.61 392 962.62 393 963.63 394 964.64 395 965.65 396 966.66 397 967.67 398 968.68 399 969.69 400 970.70 401 971.71 -
trunk/WebCore/ChangeLog
r62374 r62375 1 2010-07-02 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 Implement AfterAfterBodyMode 6 https://bugs.webkit.org/show_bug.cgi?id=41501 7 8 In implementing this mode, I noticed a bug in the character processing 9 of the AfterBodyMode, which I fixed by adding a break statement. Also, 10 to get one of the new tests to pass, I needed to implement one 11 notImplemented() in the InBody insertion mode. Yay for testing. 12 13 * html/HTMLTreeBuilder.cpp: 14 (WebCore::HTMLTreeBuilder::processStartTag): 15 (WebCore::HTMLTreeBuilder::processEndTag): 16 (WebCore::HTMLTreeBuilder::processComment): 17 (WebCore::HTMLTreeBuilder::processCharacter): 18 (WebCore::HTMLTreeBuilder::processEndOfFile): 19 1 20 2010-07-02 Sheriff Bot <webkit.review.bot@gmail.com> 2 21 -
trunk/WebCore/html/HTMLTreeBuilder.cpp
r62370 r62375 566 566 break; 567 567 case AfterBodyMode: 568 ASSERT(insertionMode() == AfterBodyMode); 568 case AfterAfterBodyMode: 569 ASSERT(insertionMode() == AfterBodyMode || insertionMode() == AfterAfterBodyMode); 569 570 if (token.name() == htmlTag) { 570 571 insertHTMLStartTagInBody(token); … … 660 661 if (token.name() == htmlTag) { 661 662 if (processBodyEndTagForInBody(token)) 662 notImplemented(); // Re-process the curent token.663 processEndTag(token); 663 664 return; 664 665 } … … 783 784 return; 784 785 } 786 // Fall through. 787 case AfterAfterBodyMode: 788 ASSERT(insertionMode() == AfterBodyMode || insertionMode() == AfterAfterBodyMode); 789 parseError(token); 785 790 m_insertionMode = InBodyMode; 786 791 processEndTag(token); … … 822 827 void HTMLTreeBuilder::processComment(AtomicHTMLToken& token) 823 828 { 824 if (m_insertionMode == InitialMode || m_insertionMode == BeforeHTMLMode ) {829 if (m_insertionMode == InitialMode || m_insertionMode == BeforeHTMLMode || m_insertionMode == AfterAfterBodyMode) { 825 830 insertCommentOnDocument(token); 826 831 return; … … 868 873 break; 869 874 case AfterBodyMode: 870 ASSERT(insertionMode() == AfterBodyMode); 875 case AfterAfterBodyMode: 876 ASSERT(insertionMode() == AfterBodyMode || insertionMode() == AfterAfterBodyMode); 877 parseError(token); 871 878 m_insertionMode = InBodyMode; 872 879 processCharacter(token); 880 break; 873 881 case TextMode: 874 882 notImplemented(); … … 913 921 break; 914 922 case AfterBodyMode: 915 ASSERT(insertionMode() == AfterBodyMode); 923 case AfterAfterBodyMode: 924 ASSERT(insertionMode() == AfterBodyMode || insertionMode() == AfterAfterBodyMode); 916 925 notImplemented(); 917 926 break;
Note: See TracChangeset
for help on using the changeset viewer.