Bug 20250
Summary: | Assertion failure in appendStartMarkup() when serializing an attribute node | ||
---|---|---|---|
Product: | WebKit | Reporter: | Alexey Proskuryakov <ap> |
Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | annevk, cdumez |
Priority: | P3 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Mac | ||
OS: | OS X 10.5 |
Alexey Proskuryakov
XMLSerializer can be called on certain types of nodes that would never occur when serializing a document, and doing so results in an assertion failure:
(new XMLSerializer).serializeToString(document.createAttribute("myAttrib"));
case Node::ATTRIBUTE_NODE:
case Node::ENTITY_NODE:
case Node::ENTITY_REFERENCE_NODE:
case Node::NOTATION_NODE:
case Node::XPATH_NAMESPACE_NODE:
ASSERT_NOT_REACHED();
This does not cause any problems in release builds
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Anne van Kesteren
*** This bug has been marked as a duplicate of bug 247096 ***