Fix assert when foster parenting self-closing elements
authorabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Jan 2012 07:03:47 +0000 (07:03 +0000)
committerabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Jan 2012 07:03:47 +0000 (07:03 +0000)
commit2a121e40dc4c0faf9a644dae8e7e6a75ab8617db
tree6874d4ae9e095fa0659cd730b886a82666ce848f
parenta0ca9b7c50abf4400d6d08a37ef5371ccf326f62
Fix assert when foster parenting self-closing elements
https://bugs.webkit.org/show_bug.cgi?id=75527

Unreviewed.

Source/WebCore:

* html/parser/HTMLConstructionSite.cpp:
(WebCore::HTMLConstructionSite::fosterParent):
    - We can't execute this task immediately because the code for
      self-closing elements wants to set the self-closing flag.
      Instead, we queue the task.

LayoutTests:

Add a test case that used to case an assert.

* html5lib/resources/webkit02.dat:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@104014 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/html5lib/resources/webkit02.dat
Source/WebCore/ChangeLog
Source/WebCore/html/parser/HTMLConstructionSite.cpp