- Fixed http://bugzilla.opendarwin.org/post_bug.cgi
REGRESSION (r14048): Google calendar not parsing
* html/HTMLParser.cpp:
(WebCore::HTMLParser::handleError): Rolling out grandparent NULL check
because it caused this regression and there's no test case
justifying it.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14081
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-04-26 Geoffrey Garen <ggaren@apple.com>
+
+ Reviewed by Hyatt.
+
+ - Fixed http://bugzilla.opendarwin.org/post_bug.cgi
+ REGRESSION (r14048): Google calendar not parsing
+
+ * html/HTMLParser.cpp:
+ (WebCore::HTMLParser::handleError): Rolling out grandparent NULL check
+ because it caused this regression and there's no test case
+ justifying it.
+
2006-04-26 Justin Garcia <justin.garcia@apple.com>
Reviewed by hyatt
if (possiblyMoveStrayContent) {
Node *node = current;
Node *parent = node->parentNode();
- // It is allowed for nodes on the node stack to have been removed from the tree, thus we have to check (parentNode() == NULL) first
+ // A script may have removed the current node's parent from the DOM
// http://bugzilla.opendarwin.org/show_bug.cgi?id=7137
+ // FIXME: we should do real recovery here and re-parent with the correct node.
if (!parent)
return false;
Node *grandparent = parent->parentNode();
- if (!grandparent)
- return false;
if (n->isTextNode() ||
(h->hasLocalName(trTag) &&